[bug] .jsonld files are not set the proper content-type #716

Closed
opened 2024-03-02 14:29:35 +00:00 by shadowjonathan · 1 comment

Your setup

From source

Extra details

Debian 12

Version

3.11

PostgreSQL version

15

What were you trying to do?

a.gup.pe is a groups activitypub service that works by receiving incoming mentions and converting them into boosts.

What did you expect to happen?

A mentioned post to properly work.

What actually happened?

https://github.com/immers-space/activitypub-express/issues/113

On akkoma's side; the /schemas/litepub-0.1.jsonld file is set the content-type: application/octet-stream

This makes the (strict) activitypub-express server reject the post, as it cannot fetch the above referenced context, due to it not being recognised as valid JSON.

Strongarming the reverse proxy into setting the correct content type for the file fixes it.

I've tried to find where file extensions and file types are associated, but I couldn't.

Logs

No response

Severity

I cannot use it as easily as I'd like

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup From source ### Extra details Debian 12 ### Version 3.11 ### PostgreSQL version 15 ### What were you trying to do? `a.gup.pe` is a groups activitypub service that works by receiving incoming mentions and converting them into boosts. ### What did you expect to happen? A mentioned post to properly work. ### What actually happened? https://github.com/immers-space/activitypub-express/issues/113 On akkoma's side; the `/schemas/litepub-0.1.jsonld` file is set the `content-type: application/octet-stream` This makes the (strict) `activitypub-express` server reject the post, as it cannot fetch the above referenced context, due to it not being recognised as valid JSON. Strongarming the reverse proxy into setting the correct content type for the file fixes it. I've tried to find where file extensions and file types are associated, but I couldn't. ### Logs _No response_ ### Severity I cannot use it as easily as I'd like ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
shadowjonathan added the
bug
label 2024-03-02 14:29:35 +00:00

fixed via e88d0a2853

fixed via e88d0a28536c10c24abd9f66ad8bc552b82fe99e
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#716
No description provided.