Uploaded image for project: 'ActivityPub Application'
  1. ActivityPub Application
  2. XAP-63

$services.activitypub.getActor($doc.documentReference) is not working properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 1.2.1
    • 1.2
    • None
    • Unit
    • Unknown
    • N/A
    • N/A
    • Awaiting Committer feedback

    Description

      The ScriptService API apparently expect a serialized reference without the wiki part, right now it leads to the following stack trace:

      Caused by: java.lang.IllegalStateException: unsupported protocol: 'xwiki'
       at org.apache.commons.httpclient.protocol.Protocol.lazyRegisterProtocol(Protocol.java:149)
       at org.apache.commons.httpclient.protocol.Protocol.getProtocol(Protocol.java:117)
       at org.apache.commons.httpclient.HttpHost.<init>(HttpHost.java:107)
       at org.apache.commons.httpclient.HttpMethodBase.setURI(HttpMethodBase.java:280)
       at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:220)
       at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
       at org.xwiki.contrib.activitypub.internal.DefaultActivityPubClient.get(DefaultActivityPubClient.java:137)
       at org.xwiki.contrib.activitypub.internal.DefaultActorHandler.getRemoteActor(DefaultActorHandler.java:460)
       at org.xwiki.contrib.activitypub.internal.DefaultActorHandler.getActor(DefaultActorHandler.java:405)
       at org.xwiki.contrib.activitypub.script.ActivityPubScriptService.getActor(ActivityPubScriptService.java:196)
      

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: