Opened 10 years ago
Closed 10 years ago
#945 closed defect (fixed)
Host metadata does not confirm to spec (/.well-known/meta-data)
Reported by: | Jessica Tallon | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | programming | Keywords: | federation, pump.io, well-known, host meta, rfc6415, waiting-upstream |
Cc: | Parent Tickets: |
Description (last modified by )
The /.well-known/host-meta endpoint is providing JSON when it should by default provide XML. According to the spec XML should be the default and JSON and lrdd should be given if requested.
This seems to be a problem with upstream pump.io as they only provide JOSN and not XML. As we're providing a upstream compatible interface this should be decided upstream and we will implement whatever is decided upstream.
The specific part of rfc6415 which deals with Host Meta is under section 2:
The host-meta document SHOULD be served with the
"application/xrd+xml" media type.
The JSON/JRD should be provided at /.well-known/host-meta.json (as per 6.2).
Upstream bug is: https://github.com/e14n/pump.io/issues/1048
Change History (3)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Description: | modified (diff) |
---|---|
Keywords: | waiting-upstream added |
Status: | new → accepted |
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
I have written a fix to this which provides the lrdd lookup and XRD+XML output when JSON is not in the 'Accept' header as upstream. The fix and in master as of 899830.
Note, section 3 allows for the json document on the host-meta (not .json) endpoint, if explicitly asked by the client: