Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: jira
Created: 11/Mar/13 4:49 PM
Description:

If the user does not have the appropriate permissions (in our case somebody referred to a read only issue), it crashes and will try again for the next build (it will post some more comments into the tickets that the user has permissions to and once it reaches the read-only issue ID, it will crash again, and so on)

The problem lies here:
https://github.com/jenkinsci/jira-plugin/blob/master/src/main/java/hudson/plugins/jira/Updater.java#L138

According to the JIRA documentation, it should catch a RemoteException instead:

com.atlassian.jira.rpc.soap.addComment

Throws:

  • RemotePermissionException - If the user is not permitted to perform this operation in this context.
  • RemoteAuthenticationException - If the token is invalid or the SOAP session has timed out
  • RemoteException - If the issue does not exist or your dont have permission to see it

Source:
http://docs.atlassian.com/rpc-jira-plugin/latest/com/atlassian/jira/rpc/soap/JiraSoapService.html#addComment(java.lang.String, java.lang.String, com.atlassian.jira.rpc.soap.beans.RemoteComment)

Project: Jenkins
Priority: Blocker Blocker
Reporter: Paul Muller
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to