ODE
  1. ODE
  2. ODE-881

SchemaCaptureTest fails locally with spaces in path

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.4
    • Fix Version/s: 1.3.5
    • Component/s: Test environment
    • Labels:
      None
    • Environment:
      Project setup at a path with spaces (e.g. "/srv/dev/apache ode/...")

      Description

      The SchemaCaptureTest test in ODE Utilities fails when someone uses a path with spaces locally. In that case the following line returns a file path containing "%20" instead of " " in the file path:

      InputStream xsdStream = new FileInputStream(TestResources.getRetailerSchema().getFile());

      I fixed mine here for spaces, but in generally the problem exists for any character that is escaped in a URL:

      InputStream xsdStream = new FileInputStream(TestResources.getRetailerSchema().getFile().replaceAll("%20", " "));

        Activity

        Hide
        Tammo van Lessen added a comment -

        fixed, thanks!

        Show
        Tammo van Lessen added a comment - fixed, thanks!
        Hide
        Hudson added a comment -

        Integrated in ODE-trunk-jdk6 #390 (See https://hudson.apache.org/hudson/job/ODE-trunk-jdk6/390/)
        fixing ODE-881.

        Show
        Hudson added a comment - Integrated in ODE-trunk-jdk6 #390 (See https://hudson.apache.org/hudson/job/ODE-trunk-jdk6/390/ ) fixing ODE-881 .
        Hide
        Hudson added a comment -

        Integrated in ODE-trunk #401 (See https://hudson.apache.org/hudson/job/ODE-trunk/401/)
        fixing ODE-881.

        Show
        Hudson added a comment - Integrated in ODE-trunk #401 (See https://hudson.apache.org/hudson/job/ODE-trunk/401/ ) fixing ODE-881 .

          People

          • Assignee:
            Tammo van Lessen
            Reporter:
            Ancoron Luciferis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development