groovy
  1. groovy
  2. GROOVY-5125

GroovyScriptEngine load from jarURL fail

    Details

    • Type: Bug Bug
    • Status: Closed 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
    • Number of attachments :
      0

      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

        Guillaume Laforge made changes -
        Field Original Value New Value
        Fix Version/s 1.8.6 [ 18245 ]
        Fix Version/s 1.8.5 [ 18071 ]
        Guillaume Laforge made changes -
        Fix Version/s 1.8.7 [ 18317 ]
        Fix Version/s 1.8.6 [ 18245 ]
        Guillaume Laforge 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 Laforge made changes -
        Fix Version/s 1.8.8 [ 18684 ]
        Fix Version/s 1.8.7 [ 18317 ]
        blackdrag blackdrag made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee blackdrag blackdrag [ blackdrag ]
        Fix Version/s 2.0.2 [ 18685 ]
        Resolution Fixed [ 1 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: