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.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to