jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject svn commit: r1415814 - /jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/FusekiLib.java
Date Fri, 30 Nov 2012 19:57:33 GMT
Author: rvesse
Date: Fri Nov 30 19:57:32 2012
New Revision: 1415814

URL: http://svn.apache.org/viewvc?rev=1415814&view=rev
Log:
Fix a bug in FusekiLib where safeParameter() would always check the 'dataset' parameter regardless
of the parameter name passed.  This meant things like the RDF Data validator were broken because
they'd receive a null instead of the parameter value and fall back to default behaviour e.g.
trying to parse Turtle as NQuads

Modified:
    jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/FusekiLib.java

Modified: jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/FusekiLib.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/FusekiLib.java?rev=1415814&r1=1415813&r2=1415814&view=diff
==============================================================================
--- jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/FusekiLib.java (original)
+++ jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/FusekiLib.java Fri Nov 30
19:57:32 2012
@@ -181,7 +181,7 @@ public class FusekiLib
     
     public static String safeParameter(HttpServletRequest request, String pName)
     {
-        String value = request.getParameter("dataset") ;
+        String value = request.getParameter(pName) ;
         value = StringUtils.replaceChars(value, "\r", "") ;
         value = StringUtils.replaceChars(value, "\n", "") ;
         return value ; 



Mime
View raw message