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

Allow access to static resources (css, js, jpg, jpeg, png, gif) inside the app package

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.0.6
    • 5.2.0, 5.1.0.7
    • tapestry-core
    • None

    Description

      Following should be sufficient:

      • add a contribution like:

      public void contributeRegexAuthorizer(
      final Configuration<String> regex,
      @Symbol(InternalConstants.TAPESTRY_APP_PACKAGE_PARAM) final String appPackageName)

      { final String pattern = "([^/.]+/)*[^/.]+\\.((css)|(js)|(jpg)|(jpeg)|(png)|(gif))$"; regex.add("^" + appPackageName.replace(".", "/") + "/" + pattern); }

      • document how to make further resources accessible (e.g. outside the app package)
      • document how to override asset protection defaults

      Attachments

        Activity

          People

            igor.drobiazko Igor Drobiazko
            igor.drobiazko Igor Drobiazko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: