[ActivityPub C2S] JsonLdError: recursive context inclusion (users outbox)
Environment
- Tested against https://social.liberta.vip/
Bug description
I managed to post activites to pleroma. When I query my outbox afterwards, I get a json.
When I run this through my parser, I get:
...java.core.JsonLdError: recursive context inclusion: https://www.w3.org/ns/activitystreams
Error occurs in Line 194 of the parser
See also the following id's in this document
- #ter02
- #ter03
That was the response:
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"id": "https://xxxxxxxxxxxxx/users/someUser/outbox?page=true",
"next": "https://xxxxxxxxxxxxx/users/someUser/outbox?max_id=A44dlfyWEJVINC6ZiS&page=true",
"orderedItems": [
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser"
],
"context": "https://xxxxxxxxxxxxx/contexts/d9c2d382-14f9-4a04-a836-5ca6c12e4431",
"context_id": 1156,
"id": "https://xxxxxxxxxxxxx/activities/ebfc5aa4-e44c-4d02-bc17-588905cd7fed",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser"
],
"content": "TestTest2",
"context": "https://xxxxxxxxxxxxx/contexts/d9c2d382-14f9-4a04-a836-5ca6c12e4431",
"conversation": "https://xxxxxxxxxxxxx/contexts/d9c2d382-14f9-4a04-a836-5ca6c12e4431",
"id": "https://xxxxxxxxxxxxx/objects/02acc5b8-9d4a-434d-b9b8-b3757ce4779d",
"object": {
"content": "TestTest4",
"type": "Note"
},
"published": "2021-02-25T19:21:24.995120Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [],
"type": "Note"
},
"published": "2021-02-25T19:21:24.983486Z",
"to": [],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser"
],
"context": "https://xxxxxxxxxxxxx/contexts/4afb888e-62bf-49aa-9530-7812a041aa18",
"context_id": 1154,
"id": "https://xxxxxxxxxxxxx/activities/781b56f7-fcbe-404d-b09e-8fd01552859b",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser"
],
"content": "TestTest2",
"context": "https://xxxxxxxxxxxxx/contexts/4afb888e-62bf-49aa-9530-7812a041aa18",
"conversation": "https://xxxxxxxxxxxxx/contexts/4afb888e-62bf-49aa-9530-7812a041aa18",
"id": "https://xxxxxxxxxxxxx/objects/dfb1392d-9cef-499d-8bf0-925f5f494afc",
"published": "2021-02-25T19:21:01.185592Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [],
"type": "Note"
},
"published": "2021-02-25T19:21:01.172389Z",
"to": [],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser"
],
"context": "https://xxxxxxxxxxxxx/contexts/d61ff03f-7d61-4f0e-8353-e455bb50a06b",
"context_id": 1152,
"id": "https://xxxxxxxxxxxxx/activities/f6b494fb-fb44-456a-a9fb-fed4bb60168c",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser"
],
"content": "TestTest",
"context": "https://xxxxxxxxxxxxx/contexts/d61ff03f-7d61-4f0e-8353-e455bb50a06b",
"conversation": "https://xxxxxxxxxxxxx/contexts/d61ff03f-7d61-4f0e-8353-e455bb50a06b",
"id": "https://xxxxxxxxxxxxx/objects/7110f65b-12af-4f1b-ac38-37b578b360a2",
"published": "2021-02-25T19:19:58.098123Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [],
"type": "Note"
},
"published": "2021-02-25T19:19:58.086593Z",
"to": [],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser"
],
"context": "https://xxxxxxxxxxxxx/contexts/4551882b-ba69-4fbc-a664-bd84543bc017",
"context_id": 1150,
"id": "https://xxxxxxxxxxxxx/activities/e1b25d66-b40d-47ad-a006-6507a2445507",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser"
],
"content": "TestTest",
"context": "https://xxxxxxxxxxxxx/contexts/4551882b-ba69-4fbc-a664-bd84543bc017",
"conversation": "https://xxxxxxxxxxxxx/contexts/4551882b-ba69-4fbc-a664-bd84543bc017",
"id": "https://xxxxxxxxxxxxx/objects/d122e350-a5ae-4631-875e-3dec0b7003c2",
"published": "2021-02-25T19:19:36.407971Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [],
"type": "Note"
},
"published": "2021-02-25T19:19:36.398099Z",
"to": [],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser"
],
"context": "https://xxxxxxxxxxxxx/contexts/1281327d-3a6c-4eb2-8ca7-bc4bd1f3e871",
"context_id": 1148,
"id": "https://xxxxxxxxxxxxx/activities/c2c6ce4c-c48e-4f8e-a84e-65bd5e77598f",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser"
],
"content": "TestTest",
"context": "https://xxxxxxxxxxxxx/contexts/1281327d-3a6c-4eb2-8ca7-bc4bd1f3e871",
"conversation": "https://xxxxxxxxxxxxx/contexts/1281327d-3a6c-4eb2-8ca7-bc4bd1f3e871",
"id": "https://xxxxxxxxxxxxx/objects/eadf5adb-9420-4a50-bd40-38dfbc9ba3ab",
"published": "2021-02-25T19:19:24.832691Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [],
"type": "Note"
},
"published": "2021-02-25T19:19:24.821445Z",
"to": [],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser"
],
"context": "https://xxxxxxxxxxxxx/contexts/8a4a3a33-05d4-4d9d-a131-cfe81587985d",
"context_id": 1146,
"id": "https://xxxxxxxxxxxxx/activities/fecacbdc-0574-44b8-9c0d-9291cbcf3d0a",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser"
],
"content": "TestTest",
"context": "https://xxxxxxxxxxxxx/contexts/8a4a3a33-05d4-4d9d-a131-cfe81587985d",
"conversation": "https://xxxxxxxxxxxxx/contexts/8a4a3a33-05d4-4d9d-a131-cfe81587985d",
"id": "https://xxxxxxxxxxxxx/objects/177b8165-afed-4694-816c-fa9ff56686a0",
"published": "2021-02-25T19:19:04.554987Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [],
"type": "Note"
},
"published": "2021-02-25T19:19:04.543644Z",
"to": [],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser"
],
"context": "https://xxxxxxxxxxxxx/contexts/ef782927-1673-4481-a5a9-6f18ac2a40bd",
"context_id": 1143,
"id": "https://xxxxxxxxxxxxx/activities/63bcbf67-9bec-4486-b07d-d5ce0ebff52d",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser"
],
"content": "TestTest",
"context": "https://xxxxxxxxxxxxx/contexts/ef782927-1673-4481-a5a9-6f18ac2a40bd",
"conversation": "https://xxxxxxxxxxxxx/contexts/ef782927-1673-4481-a5a9-6f18ac2a40bd",
"id": "https://xxxxxxxxxxxxx/objects/d8b512d3-493c-48bb-befa-386d0972dc42",
"published": "2021-02-25T19:17:39.505594Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [],
"type": "Note"
},
"published": "2021-02-25T19:17:39.495583Z",
"to": [],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser",
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"context": "https://xxxxxxxxxxxxx/contexts/bd1fd81b-c942-4035-a1b5-78ce94b5979f",
"context_id": 1141,
"id": "https://xxxxxxxxxxxxx/activities/eca464d9-dea5-4d87-9af8-a6602cbfd1ce",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser",
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"content": "TestTest",
"context": "https://xxxxxxxxxxxxx/contexts/bd1fd81b-c942-4035-a1b5-78ce94b5979f",
"conversation": "https://xxxxxxxxxxxxx/contexts/bd1fd81b-c942-4035-a1b5-78ce94b5979f",
"id": "https://xxxxxxxxxxxxx/objects/e984aab9-985e-41ce-8730-d5044283f4a5",
"published": "2021-02-25T19:17:33.867834Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Note"
},
"published": "2021-02-25T19:17:33.857501Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser",
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"context": "https://xxxxxxxxxxxxx/contexts/595b4d61-89ba-4a03-9628-1406b7c56feb",
"context_id": 1139,
"id": "https://xxxxxxxxxxxxx/activities/71e4f5bd-afb5-440f-9d87-ce468120ce05",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser",
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"content": "TestTest",
"context": "https://xxxxxxxxxxxxx/contexts/595b4d61-89ba-4a03-9628-1406b7c56feb",
"conversation": "https://xxxxxxxxxxxxx/contexts/595b4d61-89ba-4a03-9628-1406b7c56feb",
"id": "https://xxxxxxxxxxxxx/objects/d1a4873f-ac35-46bc-b3ef-66e9731cfb57",
"published": "2021-02-25T19:17:25.696919Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Note"
},
"published": "2021-02-25T19:17:25.685776Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser",
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"context": "https://xxxxxxxxxxxxx/contexts/882b7a42-8b57-4e4e-be45-a140bc3e8494",
"context_id": 1137,
"id": "https://xxxxxxxxxxxxx/activities/e6331e68-9c28-4ba9-aa85-a91c15ace07f",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser",
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"content": "TestTest",
"context": "https://xxxxxxxxxxxxx/contexts/882b7a42-8b57-4e4e-be45-a140bc3e8494",
"conversation": "https://xxxxxxxxxxxxx/contexts/882b7a42-8b57-4e4e-be45-a140bc3e8494",
"id": "https://xxxxxxxxxxxxx/objects/e83bbeeb-8c98-4925-b0c1-e1713ac01b93",
"published": "2021-02-25T19:17:19.324819Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Note"
},
"published": "2021-02-25T19:17:19.313294Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://chaos.social/users/anotherUser",
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"context": "https://xxxxxxxxxxxxx/contexts/40796757-ca94-49e3-a121-b998fc5be98d",
"context_id": 1135,
"id": "https://xxxxxxxxxxxxx/activities/9c6e3f43-1e7b-4928-b9e1-9fa2ea4de740",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://chaos.social/users/anotherUser",
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"content": "Dayum~",
"context": "https://xxxxxxxxxxxxx/contexts/40796757-ca94-49e3-a121-b998fc5be98d",
"conversation": "https://xxxxxxxxxxxxx/contexts/40796757-ca94-49e3-a121-b998fc5be98d",
"id": "https://xxxxxxxxxxxxx/objects/7f2fc80a-f574-4c3c-8e6d-7a7107dbbc83",
"published": "2021-02-25T19:16:14.837535Z",
"sensitive": false,
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Note"
},
"published": "2021-02-25T19:16:14.833971Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"context": "https://xxxxxxxxxxxxx/contexts/0e9e45c2-6ec4-4549-9a45-482f4588271e",
"context_id": 1132,
"id": "https://xxxxxxxxxxxxx/activities/4301ae7a-17a9-4de4-a119-caeb8ec407b4",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"bcc": [],
"bto": [],
"cc": [
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"content": "Dayum~",
"context": "https://xxxxxxxxxxxxx/contexts/0e9e45c2-6ec4-4549-9a45-482f4588271e",
"conversation": "https://xxxxxxxxxxxxx/contexts/0e9e45c2-6ec4-4549-9a45-482f4588271e",
"id": "https://xxxxxxxxxxxxx/objects/5d9b4ff1-610b-4ea3-8b38-f95772a6bb39",
"published": "2021-02-25T19:14:13.844106Z",
"sensitive": false,
"summary": "",
"tag": [],
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Note"
},
"published": "2021-02-25T19:14:13.833406Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"type": "Create"
},
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://xxxxxxxxxxxxx/schemas/litepub-0.1.jsonld",
{
"@language": "und"
}
],
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"context": "https://xxxxxxxxxxxxx/contexts/309cf4ec-d2c4-4df2-b787-60d46eacf233",
"context_id": 705,
"directMessage": false,
"id": "https://xxxxxxxxxxxxx/activities/9abaa5e8-8f8d-4349-934b-433bcf517c19",
"object": {
"actor": "https://xxxxxxxxxxxxx/users/someUser",
"attachment": [],
"attributedTo": "https://xxxxxxxxxxxxx/users/someUser",
"cc": [
"https://xxxxxxxxxxxxx/users/someUser/followers"
],
"content": "<p><span class=\"h-card\"><a class=\"u-url mention\" data-user=\"A44QkxSEST2stGKYQi\" href=\"https://chaos.social/@anotherUser\" rel=\"ugc\">@<span>anotherUser</span></a></span> TEST</p>",
"context": "https://xxxxxxxxxxxxx/contexts/309cf4ec-d2c4-4df2-b787-60d46eacf233",
"conversation": "https://xxxxxxxxxxxxx/contexts/309cf4ec-d2c4-4df2-b787-60d46eacf233",
"id": "https://xxxxxxxxxxxxx/objects/75b0d1ea-91a3-4d43-b9dc-ad8a4a77e8e7",
"published": "2021-02-08T19:35:38.188410Z",
"sensitive": false,
"source": "@anotherUser@chaos.social TEST",
"summary": "",
"tag": [
{
"href": "https://chaos.social/users/anotherUser",
"name": "@anotherUser@chaos.social",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"https://chaos.social/users/anotherUser"
],
"type": "Note"
},
"published": "2021-02-08T19:35:38.176460Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"https://chaos.social/users/anotherUser"
],
"type": "Create"
}
],
"partOf": "https://xxxxxxxxxxxxx/users/someUser/outbox",
"prev": "https://xxxxxxxxxxxxx/users/someUser/outbox?min_id=A4drEYNldbDn9vc288&page=true",
"type": "OrderedCollectionPage"
}```
Edited by naturzukunft