Author: glen
Date: Fri Feb 8 06:47:39 2008
New Revision: 13480
Log:
Uncomment 404 code, rename APPTests so it runs to confirm 404 behavior.
Added:
branches/registry/1_0/modules/core/src/test/java/org/wso2/registry/app/APPProtocolTest.java
- copied unchanged from r13479,
trunk/registry/modules/core/src/test/java/org/wso2/registry/app/APPProtocolTest.java
Removed:
branches/registry/1_0/modules/core/src/test/java/org/wso2/registry/app/APPTests.java
Modified:
branches/registry/1_0/modules/core/src/main/java/org/wso2/registry/secure/SecureRegistry.java
Modified:
branches/registry/1_0/modules/core/src/main/java/org/wso2/registry/secure/SecureRegistry.java
==============================================================================
---
branches/registry/1_0/modules/core/src/main/java/org/wso2/registry/secure/SecureRegistry.java
(original)
+++
branches/registry/1_0/modules/core/src/main/java/org/wso2/registry/secure/SecureRegistry.java
Fri Feb 8 06:47:39 2008
@@ -142,11 +142,11 @@
public Resource get(String path) throws RegistryException {
-// if (!path.contains(RegistryConstants.URL_SEPARATOR) &&
-// !path.contains("?") &&
-// !registry.resourceExists(path)) {
-// throw new ResourceNotFoundException(path);
-// }
+ if (!path.contains(RegistryConstants.URL_SEPARATOR) &&
+ !path.contains("?") &&
+ !registry.resourceExists(path)) {
+ throw new ResourceNotFoundException(path);
+ }
// if the user has permission to the current version, he will get
permission to all
// previous versions of the same resource
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev