Wicket
  1. Wicket
  2. WICKET-4509

Spaces in path cause ModifcationWatcher to fail

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.5
    • Fix Version/s: 1.5.6, 6.0.0-beta2
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      Windows 7

      Description

      The ModificationWatcher isn't able to reload resource files if there's a space in the path.

      The problem is that Files#getLocalFileFromUrl(String) receives an URL encoded String in which spaces are encoded to %20. They are never decoded and passed to File(). The fix is not to use the external representation of an URL but the file representation.

      1. WICKET-4509.patch
        0.6 kB
        Christoph Leiter

        Activity

        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.5.6 [ 12319053 ]
        Fix Version/s 6.0.0-RC1 [ 12320343 ]
        Resolution Fixed [ 1 ]
        Sven Meier made changes -
        Assignee Sven Meier [ svenmeier ]
        Christoph Leiter made changes -
        Field Original Value New Value
        Attachment WICKET-4509.patch [ 12523677 ]
        Christoph Leiter created issue -

          People

          • Assignee:
            Sven Meier
            Reporter:
            Christoph Leiter
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development