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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.6
    • Fix Version/s: 5.2.0, 5.1.0.7
    • Component/s: tapestry-core
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: