tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Drobiazko (JIRA)" <j...@apache.org>
Subject [jira] Created: (TAP5-963) RegexAuthorizer should allow access to static resources (css, js, jpg, jpeg, png, gif) inside the app package
Date Wed, 30 Dec 2009 08:41:29 GMT
RegexAuthorizer should allow access to static resources (css, js, jpg, jpeg, png, gif) inside
the app package
-------------------------------------------------------------------------------------------------------------

                 Key: TAP5-963
                 URL: https://issues.apache.org/jira/browse/TAP5-963
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.1.0.6
            Reporter: Igor Drobiazko


Following should be sufficient:

- add a contribution like:

public void contributeRegexAuthorizer(
                final Configuration<String> regex, 
               @Symbol(InternalConstants.TAPESTRY_APP_PACKAGE_PARAM) final String appPackageName)
{

        final String pattern = "([^/.]+/)*[^/.]+\\.((css)|(js)|(jpg)|(jpeg)|(png)|(gif))$";

         regex.add("^" + appPackageName.replace(".", "/") + "/" + pattern);

} 

- document how to make further resources accessible (e.g. outside the app package)
- document how to override asset protection defaults

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message