Uploaded image for project: 'JIRA Server (including JIRA Core)'
  1. JIRA Server (including JIRA Core)
  2. JRASERVER-14576

Running Jelly service should handler error message properly if there is an invalid password being defined in Jelly Script

    Details

    • Feedback Policy:

      JIRA feedback is collected from a number of different sources and is evaluated when planning the product roadmap. If you would like to know more about how JIRA Product Management uses customer input during the planning process, please see our post on Atlassian Answers.

      Description

      JIRA does not display the error message properly while it's trying to run the Jelly service with the following script. 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 this issue is not updated in the next 7 days, it will be automatically closed.</core:set>
      <core:set var="workflowStep" value="Resolve Issue" />
      <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>
      

      The filter with the id 10000 does exist in JIRA. However, it displays the following error messages after the Jelly Service is executed.

      ...
      org.apache.commons.jelly.JellyTagException: file:/C:/Documents and Settings/cychan/Desktop/Text1.txt:16:65: <jira:RunSearchRequest> Search
       Filter with id 10000 did not exist
              at com.atlassian.jira.jelly.tag.RunSearchRequest.buildSearchRequestFromFilter(RunSearchRequest.java:116)
      ...
      

      If the user password is correctly defined, Jelly Service is executed successfully. Hence, JIRA should display the invalid login error message whenever the user password is not correct.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: