Tapestry
  1. Tapestry
  2. TAPESTRY-2074

Tapestry fails with URISyntaxException when the project folder contains spaces

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.0.7
    • Fix Version/s: 5.0.9
    • Component/s: tapestry-core
    • Labels:
      None
    • Environment:
      windows

      Description

      URLChangeTracker should be changed to convert a URI to a file in the way described at :
      http://weblogs.java.net/blog/kohsuke/archive/2007/04/how_to_convert.html

      As is, if folders contain spaces (and the default checkout/create folder that most IDEs use do so in wondows), we get

      java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/Administrator/nbprojects/tap5test/src/main/webapp/Start.tml

      1. java.net.URL.toURI(URL.java:918)
      2. org.apache.tapestry.internal.util.URLChangeTracker.add(URLChangeTracker.java:72)
      3. org.apache.tapestry.internal.services.ComponentTemplateSourceImpl.parseTemplate(ComponentTemplateSourceImpl.java:138)
      4. org.apache.tapestry.internal.services.ComponentTemplateSourceImpl.getTemplate(ComponentTemplateSourceImpl.java:122)
      5. org.apache.tapestry.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:406)
      6. org.apache.tapestry.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:784)
      7. org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:367)
      8. org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:60)
      9. org.apache.tapestry.internal.services.PagePoolCache.checkout(PagePoolCache.java:188)
      10. org.apache.tapestry.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:107)
      11. org.apache.tapestry.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:43)
      12. org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:47)
      13. org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:66)
      14. org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.java:921)

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development