-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FetchAtomService does not properly support AS2 mime type #8773
Comments
Shouldn't Then again currently the request doesn't seem to have the profile set in the first place... |
it should, but the spec actually requires understanding |
I thought the spec required producing that and suggested understanding both? It should be fixed Mastodon side if it's not produced correctly, but aren't you being too strict on the receiving side? Do I understand correctly that the issue is the call to |
the PR you fixed is also true, but the spec also requires you *understand* it too, which is the real reason i opened the issue. If i reply with The easy fix would be just removing the profile from the |
Oh I see. I'll look into sorting that out too. |
@puckipedia I pushed a fix and added a test case for it too |
@Gargron then this should be reopened. Considering what happened, the solution's probably @puckipedia's suggestion of just removing the profile from the comparison altogether. Not worth the trouble it'd take otherwise. I'll push a fix out for that later today if suitable. |
@valerauko we should make sure that the specs actually reflect real-world requests this time though |
(the problem was that the actual Content-Type served my mastodon is my preference is not to use the Content-Type header directly. Instead, we should patch the upstream HTTP library to provide access to the profile of the returned information where available, the same way it parses out encoding In the short term, let's just do the thing puck suggested in the first case and ignore the profile for now |
Yeah, using Ignoring it probably has the best ROI |
Put up a new PR |
From quick researching turns out: the HTTP gem actually strips anything after the semicolon from the mime type. This causes things to break horribly on newer Kroeg, as it doesn't recognize "application/ld+json" as appropriate AS2 json, since it wants a profile.
master
(If you're a user, don't worry about this).The text was updated successfully, but these errors were encountered: