-
Notifications
You must be signed in to change notification settings - Fork 15
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
TG Download Services - Relax content-type requirement for ATOM feed resources #26
Comments
|
Yes, that was also my impression, good to have established that. I just double-checked my proposal and found that I missed the following relevant parts to the TG for Download Services and the ATOM RFC: Wording in the ATOM RFC indicates that the link type attribute can differ from the actual media type returned for that resource.
If that is the case Requirement 7 can remain unchanged, with the provision that actual media type returned for ATOM Feed resources can also be Or is not necessary for the TG for Download service to explicitly allow for this, because the TG in combination with RFC already implicitly allows this? |
A few more comments from my side:
That indication can also been in the following text from RFC 4287:
Note that
Regarding other impacted requirements:
There are more requirements related to 'type' attributes for links to XML-based documents that may be affected by the comments above. Note that Given the fact that this is not a media type present in the IANA register, and that
perhaps those requirements should be updated as well (possibly in a new issue). |
Subgroup meeting on 24.03.2022:
|
During the joint MIG/MIG-T meeting held on 31/03-01/04/2022, the proposal was endorsed. |
Update requirement according to the following TG change proposal: INSPIRE-MIF/technical-guidelines#26
Update requirement according to the following TG change proposal: INSPIRE-MIF/technical-guidelines#26
Update requirement according to the following TG change proposal: INSPIRE-MIF/technical-guidelines#26
* Relax content-type requirement for ATOM Fix related to issue #26
Change proposal description
I propose to relax the mime-type requirement TG Requirement 2 - TG for Download Services for ATOM feed resources to allow
application/xml
as well asapplication/atom+xml
(currently the only allowed mime-type).I previously opened an issue at the helpdesk-validator, but it was suggested to open an issue here.
Addressed TG
Technical Guidance for the implementation of INSPIRE Download Services
Location
TG Requirement 2 - Technical Guidance for the implementation of INSPIRE Download Services :
The relevant part of the ATOM RFC 4287:
There are no other parts in the ATOM RFC 4287 about the mime-type for feed resources.
The ATOM RFC 4287 is interpreted by the ETF validator as a requirement for using only
application/atom+xml
as mime-type for ATOM feed resources. However I would argue that the ATOM RFC 4287 does not set an explicit requirement for the used mime-type and would allow for usingapplication/xml
as mime-type for ATOM feed resources.Issue faced
Mostly copy-paste from INSPIRE-MIF/helpdesk-validator#661 with some edits:
The problem I am facing with this requirement is that the mime-type
application/atom+xml
is not recognized as an XML format by most browsers. This is the case for at least Chromium based browsers (Google Chrome, MS Edge and more) and Firefox, which represents a significant usage share of web browsers in use currently. Bug reports on this issue have been open for years, so probably will not be fixed any time soon:A consequence of browsers failing to recognize the mime-type
application/atom+xml
as an XML based format is that browsers do not render the ATOM feed with XML syntax highlighting. Which reduces the user experience of consuming the ATOM feeds directly in a web browser:An additional consequence is that the browser XSLTProcessor API does not work as well. We use this feature to let the browser render the ATOM XML feeds into a user-friendly HTML output, see for instance Download Service van BRO Wandonderzoek. This works through including an XSL stylesheet in the ATOM feed:
This way we can direct users directly to our ATOM services, but this only works if the browser thinks it is dealing with a XML based resource. I am aware the ATOM protocol is mostly intended for machine-to-machine consumption, however I want to argue that facilitating human-to-machine consumption for ATOM services will lower the barrier to entry to these services. Therefore I am proposing to allow usage of
application/xml
mime-type for ATOM feed resources.Also I wonder whether the ATOM RFC 4287 is normative on the usage of the
application/atom+xml
mime-type since it states:If this is the case , namely
application/atom+xml
is not required per RFC, then the TG for Download Services does not need a change, then the issue lies with the helpdesk-validator team.If this is not the case, namely
application/atom+xml
is required per RFC, then the TG for Download Services would need to explicitly allow for the usage ofapplication/xml
, considering it reflects current practices in publishing ATOM feeds and stimulates the usage of ATOM services.Proposed solution
Explicitly allow for the usage of the following mime-types for ATOM feed resources:
application/xml
application/atom+xml
Provided the ATOM RFC does not already allow for this.
Pull request
None, awaiting feedback proposal.
Additional information
None.
Relevant legislation
None.
Impact on IR
No impact, considering it proposes a relaxation of a requirement.
Impact on INSPIRE validator
INSPIRE validator would need to be changed to also allow the mime-type
application/xml
for ATOM feed resources (besides the already allowed mime-typeapplication/atom+xml
.Linked issue
INSPIRE-MIF/helpdesk-validator#661
Impact on INSPIRE XML schemas
None.
Impact on INSPIRE code lists
None.
Change proposer
anton.bakker[at]kadaster.nl
References
The text was updated successfully, but these errors were encountered: