Add charset-Parameter to content-type in coupled services route - #19
Open
seitenbau-govdata wants to merge 1 commit into
Conversation
seitenbau-govdata
marked this pull request as ready for review
October 20, 2023 09:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the log file we have detected a "400 Bad Request" error entry due to an incorrect request when "reloading" the associated service metadata into the data-metadata. Distributions are often created from the service metadata and added to the metadata. If the service metadata cannot be read, distributions cannot subsequently be created from it.
The reason for the "400 Bad Request", was a URI with an umlaut in combination with the wrong encoding, ISO-8859-1 instead of UTF-8. It seems that the default behavior of the HTTP client used changed with the upgrade of Apache Camel from version 2 to version 3.
In the affected request the character "ß" in the word " Straßenbeleuchtung" is the problem.
The ISO metadata with the problematic value in "MD_Identifier" can be retrieved from the link https://gdk.gdi-de.org/inspire/srv/eng/xml_iso19139?uuid=fa00f154-4459-48d4-87b2-fcbd14e7a91f.
Steps to Reproduce:
a) Enter the CSW interface of the GDI-DE in the configuration.
db.item.csw.URL=https://gdk.gdi-de.org/gdi-de/srv/ger/cswb) Path to retrieve metadata via Inspire bridge
/omdf/gp-csw?verb=GetRecord&identifier=fa00f154-4459-48d4-87b2-fcbd14e7a91fThis PR explicitly specifies "UTF-8" as the encoding in coupled services route for the service metadata reload query.