abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r629150 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java
Date Tue, 19 Feb 2008 16:31:47 GMT
Author: jmsnell
Date: Tue Feb 19 08:31:45 2008
New Revision: 629150

URL: http://svn.apache.org/viewvc?rev=629150&view=rev
Log:
if target == null or targettype == TYPE_NOT_FOUND, return 404

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java?rev=629150&r1=629149&r2=629150&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractProvider.java
Tue Feb 19 08:31:45 2008
@@ -105,6 +105,9 @@
   public ResponseContext process(
     RequestContext request) {    
       Target target = request.getTarget();
+      if (target == null || 
+          target.getType() == TargetType.TYPE_NOT_FOUND)
+        return ProviderHelper.notfound(request);
       String method = request.getMethod();
       TargetType type = target.getType();
       if (type == TargetType.TYPE_SERVICE && 



Mime
View raw message