Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.2.0
-
None
Description
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.