Uploaded image for project: 'SR Platform'
  1. SR Platform
  2. SRPLAT-1453

Script Editor: Users cannot view or create files where the file path is not a valid Java fully qualified name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • L3
    • Resolution: Done
    • 6.18.0
    • 6.19.0
    • Script Editor
    • 8.1

    Description

      Users are unable to view, or create files in the Script Editor after upgrading to ScriptRunner 6.18.0. 

      This seems to happen when the directory that the script is contained within contains a hyphen, underscore or space in its name. 

      Customers who have upgraded are no longer able to view their scripts if they have carried them through to version 6.18.0 from an earlier version of ScriptRunner. 

      Here's an example of the Script Editor screen and error: 

      Steps to Reproduce

      • In ScriptRunner 6.18.0, open Script Editor
      • Try to create a script & directory with a hyphen, space or underscore in it e.g. 01-Fields/ADM/Test.groovy

      – or –

      • In ScriptRunner 6.17.0, create a file tree in the Script Editor like so: my-folder/my-script.groovy
      • Upgrade to ScriptRunner 6.18.0
      • Open the Script Editor and try to view the script file you created earlier.

      Expected Behaviour

      • Scripts can be created or viewed

      Actual Behaviour

      • Scripts cannot be created or viewed

       

      Attachments

        Activity

          People

            twozniak Tomasz Wozniak [X] (Inactive)
            jbaldwin Joe Baldwin
            Votes:
            2 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: