Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1593

JIRA plugin - bad issue in checkin message breaks build

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: other
    • Labels:
      None
    • Environment:
      Platform: Macintosh, OS: Mac OS X
    • Similar Issues:

      Description

      Using Hudson 1.210, JIRA plugin 1.11, in an otherwise successful build, if an
      svn checkin messsage contains a nonexistent JIRA issue id, the build fails when
      JIRA throws a RemotePermissionException during the JIRA plugin's updating.
      Perhaps a preference could control whether this would be treated as a failure,
      instability or ignore it altogether. Some Subversion users don't allow checkin
      messages to be edited, so JIRA updating would have to be disabled once a bad
      issue id slipped past.

        Attachments

          Activity

          Hide
          montsean montsean added a comment -

          Sample of console output:

          Updating DS-2439
          Updating DS-2436
          Updating DS-24245
          FATAL: null
          AxisFault
          faultCode:

          {http://schemas.xmlsoap.org/soap/envelope/}

          Server.userException
          faultSubcode:
          faultString: com.atlassian.jira.rpc.exception.RemotePermissionException: This
          issue does not exist or you don't have permission to view it.
          faultActor:
          faultNode:
          faultDetail:
          {}com.atlassian.jira.rpc.exception.RemotePermissionException:null

          {http://xml.apache.org/axis/}

          hostname:foo.bar

          com.atlassian.jira.rpc.exception.RemotePermissionException: This issue does not
          exist or you don't have permission to view it.
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at
          sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
          at
          sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
          at java.lang.Class.newInstance0(Class.java:350)
          at java.lang.Class.newInstance(Class.java:303)
          at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
          at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
          at
          hudson.plugins.jira.soap.RemotePermissionException.getDeserializer(RemotePermissionException.java:75)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at
          org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
          at
          org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
          at
          org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
          at
          org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
          at
          org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
          at
          org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
          at
          com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
          at
          com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
          at
          com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:322)
          at
          com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
          at
          com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
          at
          com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
          at
          com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
          at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
          at
          com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
          at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
          at
          org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
          at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
          at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
          at
          org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
          at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
          at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
          at org.apache.axis.client.Call.invoke(Call.java:2767)
          at org.apache.axis.client.Call.invoke(Call.java:2443)
          at org.apache.axis.client.Call.invoke(Call.java:2366)
          at org.apache.axis.client.Call.invoke(Call.java:1812)
          at
          hudson.plugins.jira.soap.JirasoapserviceV2SoapBindingStub.addComment(JirasoapserviceV2SoapBindingStub.java:3773)
          at hudson.plugins.jira.JiraSession.addComment(JiraSession.java:70)
          at hudson.plugins.jira.Updater.perform(Updater.java:69)
          at hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:24)
          at
          hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:302)
          at
          hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:290)
          at hudson.model.Build$RunnerImpl.post2(Build.java:135)
          at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:275)
          at hudson.model.Run.run(Run.java:769)
          at hudson.model.Build.run(Build.java:102)
          at hudson.model.ResourceController.execute(ResourceController.java:70)
          at hudson.model.Executor.run(Executor.java:71)

          Show
          montsean montsean added a comment - Sample of console output: Updating DS-2439 Updating DS-2436 Updating DS-24245 FATAL: null AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException faultSubcode: faultString: com.atlassian.jira.rpc.exception.RemotePermissionException: This issue does not exist or you don't have permission to view it. faultActor: faultNode: faultDetail: {}com.atlassian.jira.rpc.exception.RemotePermissionException:null {http://xml.apache.org/axis/} hostname:foo.bar com.atlassian.jira.rpc.exception.RemotePermissionException: This issue does not exist or you don't have permission to view it. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104) at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90) at hudson.plugins.jira.soap.RemotePermissionException.getDeserializer(RemotePermissionException.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154) at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84) at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464) at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547) at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:322) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at hudson.plugins.jira.soap.JirasoapserviceV2SoapBindingStub.addComment(JirasoapserviceV2SoapBindingStub.java:3773) at hudson.plugins.jira.JiraSession.addComment(JiraSession.java:70) at hudson.plugins.jira.Updater.perform(Updater.java:69) at hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:24) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:302) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:290) at hudson.model.Build$RunnerImpl.post2(Build.java:135) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:275) at hudson.model.Run.run(Run.java:769) at hudson.model.Build.run(Build.java:102) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:71)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/Updater.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=8871
          Log:
          [fixed] failing to update an issue shouldn't cause the build to fail, or else Hudson would end up failing to build forever. (issue #1593)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/Updater.java http://fisheye4.cenqua.com/changelog/hudson/?cs=8871 Log: [fixed] failing to update an issue shouldn't cause the build to fail, or else Hudson would end up failing to build forever. (issue #1593)

            People

            • Assignee:
              Unassigned
              Reporter:
              montsean montsean
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: