Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1260

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2.0
    • 5.2.1
    • documentation
    • 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.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            ap@sapida.de Andy Pahne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: