Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16725

camel-jira - Jira newIssues endpoint can fail if an issue was deleted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.10.0
    • 3.12.0
    • camel-jira
    • None
    • Unknown

    Description

      If an issue with lastestId was deleted then the Jira client fails the jql generated by the endpoint. https://github.com/apache/camel/blob/main/components/camel-jira/src/main/java/org/apache/camel/component/jira/consumer/NewIssuesConsumer.java#L75

      With stacktrace

      Caused by: RestClientException{statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors={}, errorMessages=[A value with ID '13383056' does not exist for the field 'id'.]}]}
      	at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$2.apply(AbstractAsynchronousRestClient.java:176)
      	at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$2.apply(AbstractAsynchronousRestClient.java:170)
      	at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:49)
      	at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:10)
      	at io.atlassian.util.concurrent.Promises$OfStage.lambda$fold$4(Promises.java:332)
      	at io.atlassian.util.concurrent.Promises.lambda$biFunction$7(Promises.java:422)
      	at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930)
      	at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:907)
      	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
      	at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
      	at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$1.lambda$doCompleted$0(SettableFuturePromiseHttpPromiseAsyncClient.java:37)
      	at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient.runInContext(SettableFuturePromiseHttpPromiseAsyncClient.java:61)
      	at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.run(SettableFuturePromiseHttpPromiseAsyncClient.java:129)
      	... 3 more
      

      This gets the newIssues endpoint always failing not being able to recover.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              mmuzikar Martin Muzikar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: