Groovy
  1. Groovy
  2. GROOVY-5125

GroovyScriptEngine load from jarURL fail

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0, 1.8.4
    • Fix Version/s: 1.8.8, 2.0.2
    • Component/s: GroovyScriptEngine
    • Labels:
      None

      Description

      GroovyScriptEngine loadScriptByName from jarURL, first time is ok, second time fail, GroovyScriptEngine attempts to load from a fileURL.
      For fix this, change this:

      String path = conn.getURL().getPath();
      

      to

      String path = conn.getURL().toString();
      

        Activity

        lwh created issue -
        Guillaume Delcroix made changes -
        Field Original Value New Value
        Fix Version/s 1.8.5 [ 18071 ]
        Fix Version/s 1.8.6 [ 18245 ]
        Guillaume Delcroix made changes -
        Fix Version/s 1.8.6 [ 18245 ]
        Fix Version/s 1.8.7 [ 18317 ]
        Guillaume Delcroix made changes -
        Description GroovyScriptEngine loadScriptByName from jarURL, first time is ok, second time fail, GroovyScriptEngine attempts to load from a fileURL.
        For fix this, change this:
        String path = conn.getURL().getPath();
        to
        String path = conn.getURL().toString();
        GroovyScriptEngine loadScriptByName from jarURL, first time is ok, second time fail, GroovyScriptEngine attempts to load from a fileURL.
        For fix this, change this:
        {code}
        String path = conn.getURL().getPath();
        {code}
        to
        {code}
        String path = conn.getURL().toString();
        {code}
        Guillaume Delcroix made changes -
        Fix Version/s 1.8.8 [ 18684 ]
        Fix Version/s 1.8.7 [ 18317 ]
        Jochen Theodorou made changes -
        Fix Version/s 2.0.2 [ 18685 ]
        Assignee blackdrag blackdrag [ blackdrag ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12734049 ] Default workflow, editable Closed status [ 12745678 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971410 ] Default workflow, editable Closed status [ 12979226 ]

          People

          • Assignee:
            Jochen Theodorou
            Reporter:
            lwh
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development