Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-19025

Updating stored script by name does not update type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.16.0
    • Fix Version/s: None
    • Component/s: Documentation, REST, Scripting
    • Labels:

      Description

      Updating stored script using API PUT service/rest/v1/script/<script name> does not update the script's type.

      1. Create a script:

      {
        "name": "foo",
        "content": "return 'fizzbuzz'",
        "type": "string"
      }

      2. Update the script to:

      {
        "name": "foo",
        "content": "return 'fizzbuzz'",
        "type": "groovy"
      }
      

      3. Execute the script to see a message

      {
          "name": "foo",
          "result": "Missing engine for language: string"
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dsawa Dawid Sawa
            Last Updated By:
            Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title