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

PlasticUtilsTests."Do not urlencode file paths" fails when using openjdk7

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: plastic
    • Labels:
      None

      Description

      PlasticUtilsTests."Do not urlencode file paths" fails on Ubuntu 14.04 (using openjdk7):

      java.lang.IllegalArgumentException: URI is not hierarchical
      	at java.io.File.<init>(File.java:418)
      	at org.apache.tapestry5.internal.plastic.PlasticUtilsTests.Do not urlencode file paths(PlasticUtilsTests.groovy:28)
      

      getClass().getClassLoader().getResource(".") returns
      "jar:file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/pulse-java.jar!/" which is obvisiouly not the expected result.

      I am not sure but I think pulse-java.jar was not part of openjdk6 in ealier versions of Ubuntu. Removing pulse-java.jar solves the problem but I dont think that's a good solution.

      I think there are two issues here:
      a) There's something wrong with pulse-java.jar even though I have absolutely no clue what it is.
      b) Calling getResource(".") looks like a hack to me. "." is not a real resource.

      For more information on this issue:

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jkemnade Jochen Kemnade
                Reporter:
                fscheffer Felix Scheffer
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: