Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-2478

InvalidCharacterException in JIRA logs when application link to Stash is persent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 1.0.1
    • 1.0
    • None

    Description

      This is caused by the activity streams plugin failing to parse the (empty) activity streams feed from Stash. The feed contains several spaces in its self link:

      <feed xmlns="http://www.w3.org/2005/Atom">
      <title type="text">Activity Streams</title>
      <subtitle type="text">Activity Streams</subtitle>
      <link href="https://stash.atlassian.com        /plugins/servlet/streams" rel="self"/>
      </feed>
      

      The stacktrace in the JIRA logs looks like:

      2012-05-01 13:30:11,138 StreamsCompletionService::thread-10 ERROR admin 810x646x1 1bubxpm 0:0:0:0:0:0:0:1%0 /plugins/servlet/streams [atlassian.streams.internal.FeedBuilder] Error fetching feed
      org.apache.abdera.i18n.iri.IRISyntaxException: org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x20( )
      	at org.apache.abdera.i18n.iri.IRI.parse(IRI.java:572)
      	at org.apache.abdera.i18n.iri.IRI.<init>(IRI.java:64)
      	at org.apache.abdera.parser.stax.FOMElement._getUriValue(FOMElement.java:293)
      	at org.apache.abdera.parser.stax.FOMLink.getHref(FOMLink.java:77)
      	at com.atlassian.streams.internal.atom.abdera.AbderaAtomFeedParser.readFeed(AbderaAtomFeedParser.java:60)
      	at com.atlassian.streams.internal.AppLinksActivityProvider$FeedResponseHandler.readStream(AppLinksActivityProvider.java:547)
      	at com.atlassian.streams.internal.AppLinksActivityProvider$FeedResponseHandler.handle(AppLinksActivityProvider.java:528)
      	at com.atlassian.streams.internal.AppLinksActivityProvider$FeedResponseHandler.handle(AppLinksActivityProvider.java:508)
      	at com.atlassian.applinks.core.auth.ApplicationLinkRequestAdaptor$1.handle(ApplicationLinkRequestAdaptor.java:88)
      	at com.atlassian.plugins.rest.module.jersey.JerseyRequest$2.handle(JerseyRequest.java:163)
      	at com.atlassian.sal.core.net.HttpClientRequest.executeAndReturn(HttpClientRequest.java:307)
      	at com.atlassian.plugins.rest.module.jersey.JerseyRequest.executeAndReturn(JerseyRequest.java:158)
      	at com.atlassian.applinks.core.auth.ApplicationLinkRequestAdaptor.execute(ApplicationLinkRequestAdaptor.java:85)
      	at com.atlassian.streams.internal.AppLinksActivityProvider.fetch(AppLinksActivityProvider.java:416)
      	at com.atlassian.streams.internal.AppLinksActivityProvider.access$200(AppLinksActivityProvider.java:96)
      	at com.atlassian.streams.internal.AppLinksActivityProvider$1.call(AppLinksActivityProvider.java:178)
      	at com.atlassian.streams.internal.AppLinksActivityProvider$1.call(AppLinksActivityProvider.java:170)
      	at com.atlassian.streams.internal.FeedBuilder$ToFeedCallable$1.call(FeedBuilder.java:115)
      	at com.atlassian.streams.internal.FeedBuilder$ToFeedCallable$1.call(FeedBuilder.java:110)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at com.atlassian.util.concurrent.LimitedExecutor$Runner.run(LimitedExecutor.java:96)
      	at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:34)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x20( )
      	at org.apache.abdera.i18n.text.CodepointIterator$RestrictedCodepointIterator.next(CodepointIterator.java:476)
      	at org.apache.abdera.i18n.text.CharUtils.verify(CharUtils.java:820)
      	at org.apache.abdera.i18n.text.CharUtils.verify(CharUtils.java:838)
      	at org.apache.abdera.i18n.iri.IRI.parse(IRI.java:568)
      	... 28 more
      

      Attachments

        Activity

          People

            tim@atlassian.com TimP
            tim@atlassian.com TimP
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: