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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.1
    • Component/s: documentation
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: