Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-25096

Jelly Runner crashes if there's a RemoveUser tag between two CreateUser

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • None
    • 4.3, 4.3.3

    Description

      Symptoms

      Please, check out this script:

      <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib">
      
      <jira:CreateUser username="test001" password="test001" confirm="test001" fullname="test001" email="test001@example.com" />
      <jira:RemoveUser name="test001" />
      
      <jira:CreateUser username="test002" password="test002" confirm="test002" fullname="test002" email="test002@example.com" />
      <jira:RemoveUser name="test002" />
      
      </JiraJelly>

      It's supposed to work like a charm, creating two new users and removing these soon after. However, it simply doesn't work. The first user is created and removed fine, but the second one is created but not removed. Also, the following exception is thrown on the screen:

      There's no reference for this error.

      Workaround

      Change the order of the tags inside the script. Firstly, dispose all CreateUser tasks and only after the RemoveUser ones. Taking in consideration the sample above:

      <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib">
      
      <jira:CreateUser username="test001" password="test001" confirm="test001" fullname="test001" email="test001@example.com" />
      <jira:CreateUser username="test002" password="test002" confirm="test002" fullname="test002" email="test002@example.com" />
      
      <jira:RemoveUser name="test001" />
      <jira:RemoveUser name="test002" />
      
      </JiraJelly>

      Please, advice soon.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lnunes Leandro Fanese Nunes [Atlassian]
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: