You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Igor Drobiazko (JIRA)" <ji...@apache.org> on 2010/01/02 19:17:54 UTC

[jira] Commented: (TAP5-963) Allow access to static resources (css, js, jpg, jpeg, png, gif) inside the app package

    [ https://issues.apache.org/jira/browse/TAP5-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795881#action_12795881 ] 

Igor Drobiazko commented on TAP5-963:
-------------------------------------

Can you think of any images or css file that are not meant to be public? I can't and suppose it is ok to open up all path under app package.

> 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
>            Assignee: Igor Drobiazko
>             Fix For: 5.2.0, 5.1.0.7
>
>
> 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.