Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-3347

"Illegal Character in Path" in EFSUtils.getAbsolutePath()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Aptana Studio 3.0.5
    • Component/s: None
    • Labels:
      None

      Description

      Found in a user's log file:

      !ENTRY com.aptana.core.io 4 0 2011-08-20 09:43:22.588
      !MESSAGE (Build 3.0.3.1312062042) [ERROR]  Illegal character in path at index 74: workspace:/Test%20SIte/members/_OLD%20FILES/Copy%20of%20messages-tagger%20[2008-09-21].php
      !STACK 0
      java.net.URISyntaxException: Illegal character in path at index 74: workspace:/Test%20SIte/members/_OLD%20FILES/Copy%20of%20messages-tagger%20[2008-09-21].php
      	at java.net.URI$Parser.fail(Unknown Source)
      	at java.net.URI$Parser.checkChars(Unknown Source)
      	at java.net.URI$Parser.parseHierarchical(Unknown Source)
      	at java.net.URI$Parser.parse(Unknown Source)
      	at java.net.URI.<init>(Unknown Source)
      	at com.aptana.core.io.efs.WorkspaceFile.toURI(WorkspaceFile.java:217)
      	at com.aptana.core.io.efs.EFSUtils.getAbsolutePath(EFSUtils.java:112)
      	at com.aptana.ide.syncing.core.old.Synchronizer.getCanonicalPath(Synchronizer.java:159)
      	at com.aptana.ide.syncing.core.old.Synchronizer.createSyncItems(Synchronizer.java:426)
      	at com.aptana.ide.syncing.core.old.Synchronizer.getSyncItems(Synchronizer.java:385)
      	at com.aptana.ide.syncing.ui.old.views.SmartSyncDialog$14.run(SmartSyncDialog.java:1233)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

      From this SO message thread: http://stackoverflow.com/questions/749709/how-to-deal-with-the-urisyntaxexception

      It suggests we should be making a URL first to do the encoding. It appears WorkspaceFile doesn't URL-encode first in toURI()

        Attachments

          Activity

            People

            • Assignee:
              mstepanov Max Stepanov
              Reporter:
              ingo Ingo Muschenetz
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code