Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2286

Application does not start when the context path contains spaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.11
    • 2.1.12
    • Blocks: Serializers
    • None

    Description

      When the CharsetFactory loads charsets from jar, the file path constructed from the jar URL may contains "%20" or other encoded special characters.
      An exception is thrown when the jar file is being accessed :


      Root cause: java.io.FileNotFoundException: D:\cocoon%20build\WEB-INF\lib\cocoon-serializers-charsets-2.1.11.jar (Le chemin d'accès spécifié est introuvable)
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:114)
      at java.util.zip.ZipFile.<init>(ZipFile.java:75)
      at org.apache.cocoon.components.serializers.encoding.CharsetFactory.loadCharsetsFromJar(CharsetFactory.java:130)

      Attachments

        1. CharsetFactory.java.patch
          1 kB
          Cédric Damioli

        Activity

          People

            Unassigned Unassigned
            cdamioli Cédric Damioli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: