Author: robertdzeigler
Date: Thu Dec 10 20:21:14 2009
New Revision: 889409

URL: http://svn.apache.org/viewvc?rev=889409&view=rev
Log:
TAP5-815: Asset dispatcher allows any file inside the webapp visible and 
downloadable
More code-style fixes.

Modified:
    
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
    
tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/services/AppModule.java

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java?rev=889409&r1=889408&r2=889409&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
 Thu Dec 10 20:21:14 2009
@@ -2529,7 +2529,8 @@
         //allow access to virtual assets. Critical for tapestry-combined js 
files.
         regex.add("virtual/" + pathPattern);
 
-        if (contextAvailable) {
+        if (contextAvailable) 
+        {
             regex.add(RequestConstants.CONTEXT_FOLDER + appVersion + "/" + 
pathPattern);
         }
     }

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/services/AppModule.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/services/AppModule.java?rev=889409&r1=889408&r2=889409&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/services/AppModule.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/services/AppModule.java
 Thu Dec 10 20:21:14 2009
@@ -261,7 +261,8 @@
 
     public static void contributeWhitelistAuthorizer(
             Configuration<String> configuration,
-            @Symbol(SymbolConstants.APPLICATION_VERSION) String appVersion) {
+            @Symbol(SymbolConstants.APPLICATION_VERSION) String appVersion) 
+    {
         configuration.add("ctx/" + appVersion + "/availablefile.txt");
     }
 }


Reply via email to