Document "Assets", Section "Securing Assets" is outdated
--------------------------------------------------------

                 Key: TAP5-1260
                 URL: https://issues.apache.org/jira/browse/TAP5-1260
             Project: Tapestry 5
          Issue Type: Bug
          Components: documentation
    Affects Versions: 5.2.0
            Reporter: Andy Pahne
            Priority: Minor


The Tapestry 5.2 documentation about assets is inaccurate, see
    http://tapestry.apache.org/tapestry5.2-dev/guide/assets.html

In section "Securing Assets" a code fragment is shown:

        public void contributeRegexAuthorizer(final Configuration<String>  
configuration)
        {
                String pattern = 
"([^/.]+/)*[^/.]+\\.((css)|(js)|(jpg)|(jpeg)|(png)|(gif))$";

                configuration.add("^org/resources/" + pattern);
        } 

However, if one adds this method to a tapestry AppModule class, the application 
won't start. The reason is that the current Tapestry source does not contain a 
class RegexAuthorizer anymore. It use to, but not anymore.



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

Reply via email to