[
https://issues.apache.org/jira/browse/JENA-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16134462#comment-16134462
]
ASF GitHub Bot commented on JENA-1383:
--------------------------------------
Github user afs commented on a diff in the pull request:
https://github.com/apache/jena/pull/275#discussion_r134117642
--- Diff:
jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ActionSPARQL.java
---
@@ -205,7 +206,11 @@ public static void parse(HttpAction action, StreamRDF
dest, InputStream input, L
.lang(lang)
.base(base)
.parse(dest);
- }
+ } catch (RuntimeIOException ex) {
+ if ( ex.getCause() instanceof CharacterCodingException )
+ throw new RiotException("Character Coding Error:
"+ex.getMessage());
--- End diff --
This is an error caught and handled as an HTTP servlet response and is a
bad request - the client's mistake. It is not an error in the server to track
down so I see this as normal processing from the server's point of view. The
message is the information needed for the HTTP response.
> Handle bad encoding in uploaded data as a 400.
> ----------------------------------------------
>
> Key: JENA-1383
> URL: https://issues.apache.org/jira/browse/JENA-1383
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Jena 3.4.0
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Fix For: Jena 3.5.0
>
>
> Up to 3.4.0, it results in a 500 for Turtle (400 for other parsers - RDF/XML
> and JSON-LD).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)