Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
pleroma
pleroma
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 406
    • Issues 406
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 59
    • Merge Requests 59
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Pleroma
  • pleromapleroma
  • Issues
  • #792

Closed
Open
Opened Apr 07, 2019 by Feufochmar@feufochmar

ActivityPub C2S: Error 400 when posting non-activity objects not wrapped into a Create activity

When posting an object that is not an activity to the user's outbox, it is expected that the server wraps it in a Create activity (See https://www.w3.org/TR/activitypub/#object-without-create ).

Currently, Pleroma responds with an error 400 (Bad Request), with the message "Unhandled activity type". When wrapping the same item inside a Create activity, Pleroma accepts the request.

Ex: Unwrapped note causing an error:

{"@context":"https://www.w3.org/ns/activitystreams","type":"Note","to":["http://localhost:4000/users/test"],"cc":[],"summary":"Test note","content":"A small note"}

When wrapped in a Create activity, no error, the note is created:

{"@context":"https://www.w3.org/ns/activitystreams","type":"Create","to":["http://localhost:4000/users/test"],"cc":[],"object":{"@context":"https://www.w3.org/ns/activitystreams","type":"Note","to":["http://localhost:4000/users/test"],"cc":[],"summary":"Test note","content":"A small note"}}

Tested on commit 54997500 from develop.

Edited Apr 07, 2019 by Feufochmar
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: pleroma/pleroma#792