[
https://issues.apache.org/jira/browse/JENA-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16134456#comment-16134456
]
ASF GitHub Bot commented on JENA-1383:
--------------------------------------
Github user ajs6f commented on a diff in the pull request:
https://github.com/apache/jena/pull/275#discussion_r134117416
--- 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 --
maybe `throw new RiotException("Character Coding Error: "+ex.getMessage(),
ex.getCause());` to keep more context?
> 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)