Skip to content
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

Error parsing media type #9

Closed
jeanmichelfischer opened this issue Aug 6, 2014 · 1 comment
Closed

Error parsing media type #9

jeanmichelfischer opened this issue Aug 6, 2014 · 1 comment
Milestone

Comments

@jeanmichelfischer
Copy link

The Tests:
describeAllFeatureTypes(GET)
and
describeAllFeatureTypes(POST)

throw this exception:

*java.lang.IllegalArgumentException: Error parsing media type 'text/xml; subtype=gml/3.2.1;' *

for "media type" I tried as well:

text/xml; subtype=gml/3.2.1
and
text/xml; subtype=gml/3.2.1; charset=utf-8;

but the same exceptions occur.

By the way we would like to respond with "text/xml; subtype=gml/3.2.1; charset=utf-8;" (append charset=utf-8) as a specialization of the "media type" is allowed even if the expected result should be "text/xml; subtype=gml/3.2.1;" is this possible? (Would be a nice feature as it helps the client).

@rjmartell
Copy link
Contributor

Strictly speaking, the subtype parameter is not defined for the text/xml media type. Putting aside this violation of RFC 6838, the '/' char (U0024, SOLIDUS) is not an allowed token and thus must appear within a quoted string: subtype="gml/3.2.1" (see http://tools.ietf.org/html/rfc7231#section-3.1.1.1).

BTW, according to OGC 09-144r1, this GML media type should be specified as "application/gml+xml; charset=utf-8; version=3.2".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants