INSPIRE-MIF / helpdesk-validator

Community discussion forum for INSPIRE validation issues
42 stars 23 forks source link

Unexpected failure due to html content in step Get INSPIRE Media Subtype #860

Closed mwjsanders closed 1 year ago

mwjsanders commented 1 year ago

Context

validated resouce type: Predefined ATOM validated service endpoint: https://service.pdok.nl/lv/bag/atom/index.xml validation report: https://inspire.ec.europa.eu/validator/test-run/details.html?id=EID843b7bef-a2d9-442c-96e6-96d6a78c6508

In the test step Abstract Test Case 'Use INSPIRE media-types only' a list of INSPIRE media sub types are retrieved using url http://inspire.ec.europa.eu/media-types/application with 'Accept'-Header 'application/atom+xml' (see sub step Get INSPIRE Media Subtype)

Expected

The returned response from http://inspire.ec.europa.eu/media-types/application should contain xml data because the Accept header is set to application/atom+xml.

Actual behaviour

The returned response contains html, which causes the sub step Root element 'feed' exists to fail because there is no feed element in the html response.

LarsAll commented 1 year ago

Yes, +1 on this

jescriu commented 1 year ago

Dear @mwjsanders, Thanks for spotting the issue. The INSPIRE Registry team will be analysing the issue as soon as possible.

arantzaetxebarria commented 1 year ago

Dear @mwjsanders, @LarsAll

A solution has been implemented in the INSPIRE Registry production environment. Could you please confirm that the Abstract Test Case 'Use INSPIRE media-types only' is working properly now?

Regards

LarsAll commented 1 year ago

Hi @arantzaetxebarria! Nice one, works fine now 👍

image

mwjsanders commented 1 year ago

Thanks @arantzaetxebarria:

The problem does not occur any more

LarsAll commented 1 year ago

Hi @jescriu!

It does seem like as of today, the problem is back. Maybe we'll see if @mwjsanders reports the same issue.

mwjsanders commented 1 year ago

@jescriu

I can confirm that the problem is. I just validated the service reported in the inital description of this issue.

arantzaetxebarria commented 1 year ago

Dear @mwjsanders, @LarsAll

I have just tested in production environment, your example https://service.pdok.nl/lv/bag/atom/index.xml, and it works as expected. https://inspire.ec.europa.eu/validator/test-run/details.html?id=EID5ab35475-b721-4ed7-b612-2a1649ebf408

image

Could you please confirm that it is now working correctly and that the error was a temporary one? Thanks

LarsAll commented 1 year ago

Hi @arantzaetxebarria!

Works very well now, cheers!

mwjsanders commented 1 year ago

Hi @arantzaetxebarria

We don´t see this error happening any more.

jesperschmidt commented 1 year ago

I have the problem with 'Get the list of INSPIRE media sub types with 'Accept'-Header 'application/atom+xml'' in a local installation of the validator. https://inspire.ec.europa.eu/media-types/application returns html not xml I am using validator 2023.1 with the corresponding ets-repository