Tapestry 5
  1. Tapestry 5
  2. TAP5-1260

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

        Activity

        Andy Pahne created issue -
        Hide
        Howard M. Lewis Ship added a comment -

        Updated on the Conflucence wiki.

        Show
        Howard M. Lewis Ship added a comment - Updated on the Conflucence wiki.
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Howard M. Lewis Ship [ hlship ]
        Fix Version/s 5.2.1 [ 12315230 ]
        Resolution Fixed [ 1 ]
        Hide
        Howard M. Lewis Ship added a comment -

        Stripped out the old RegexAuthorizer stuff and discussed MD5 checksums for protection.

        Show
        Howard M. Lewis Ship added a comment - Stripped out the old RegexAuthorizer stuff and discussed MD5 checksums for protection.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development