Wicket
  1. Wicket
  2. WICKET-5251

Minified name resolves incorrectly if default resource reference is used

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.8.0
    • Fix Version/s: 6.10.0, 7.0.0
    • Component/s: wicket
    • Labels:
      None

      Description

      In PackageResourceReference.

      When a default reference to a minified resource is used (i.e. the resource wasn't mounted) the resource reference name includes '.min'.

      When trying to resolve the minified name, another '.min' is appended, resulting in the minified name resolving to 'html5.min.min.js'.

      As a result, the PackageResourceReference concludes that the resource was not minified, and adds compression.

        Activity

        Hide
        Martin Grigorov added a comment -

        Thanks, Cedric!

        Show
        Martin Grigorov added a comment - Thanks, Cedric!
        Hide
        Cedric Gatay added a comment -

        You can find a fix for already minified resources by name detection at the following URL : https://github.com/CedricGatay/wicket/compare/WICKET-5251?expand=1

        Show
        Cedric Gatay added a comment - You can find a fix for already minified resources by name detection at the following URL : https://github.com/CedricGatay/wicket/compare/WICKET-5251?expand=1
        Hide
        Cedric Gatay added a comment -

        I'm taking this one.

        Show
        Cedric Gatay added a comment - I'm taking this one.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Johannes Odland
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development