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

when running the Jelly Script in Jelly Runner, the Login tag is being ignored if there is an incorrect user password being defined

    XMLWordPrintable

Details

    Description

      Try to run the following Jelly Script in Jelly Runner. This is the screenshot-1 of the Jelly Runner before the script is executed. This script contains the invalid user password:

      <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log" >
      <jira:Login username="admin" password="password">
      <!-- Properties for the script -->
      <core:set var="comment">This issue has not been updated for 7 days or more.
      
          * If you have no other questions, please select "Close Issue"
          * If you want to continue discussion, please select "Reopen Issue"
          * If you need more time, please select "Freeze Issue"
      
      If this issue is not updated in the next 7 days, it will be automatically closed.</core:set>
      <core:set var="workflowStep" value="5" />
      <core:set var="workflowUser" value="admin" />
      <core:set var="filter7Days" value="10000" />
      
      <!-- Run the SearchRequestFilter -->
      <jira:RunSearchRequest filterid="${filter7Days}" var="issues" />
      
      <core:forEach var="issue" items="${issues}">
      <jira:TransitionWorkflow key="${issue.key}" user="${workflowUser}" workflowAction="${workflowStep}" comment="${comment}"/>
      </core:forEach>
      </jira:Login>
      </JiraJelly>
      

      As the result, this is the screenshot-2 of the browser just after the Jelly Script is executed. By clicking on any link will restore back the menus correctly. Please see the screenshot-3 for a clearer picture. JIRA is successfully perform the workflow transition.

      However, with this invalid password, JIRA should fail the Jelly Runner and display the related error message.

      Attachments

        1. screenshot-1.JPG
          screenshot-1.JPG
          115 kB
        2. screenshot-2.JPG
          screenshot-2.JPG
          32 kB
        3. screenshot-3.JPG
          screenshot-3.JPG
          65 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cychan Chai Ying Chan [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: