jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1411739 - /jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java
Date Tue, 20 Nov 2012 16:49:57 GMT
Author: andy
Date: Tue Nov 20 16:49:56 2012
New Revision: 1411739

URL: http://svn.apache.org/viewvc?rev=1411739&view=rev
Log:
Correct error used when no request parameter

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

Modified: jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java?rev=1411739&r1=1411738&r2=1411739&view=diff
==============================================================================
--- jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java
(original)
+++ jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java
Tue Nov 20 16:49:56 2012
@@ -153,6 +153,8 @@ public class SPARQL_Update extends SPARQ
         if ( WebContent.contentTypeForm.equals(ctStr) )
         {
             int x = countParamOccurences(request,paramUpdate) + countParamOccurences(request,
paramRequest) ;
+            if ( x == 0 )
+                errorBadRequest("SPARQL Update: No 'update=' parameter") ;
             if ( x != 1 )
                 errorBadRequest("SPARQL Update: Multiple 'update=' parameters") ;
             



Mime
View raw message