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

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

    XMLWordPrintable

Details

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    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

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

              Dates

                Created:
                Updated:
                Resolved: