You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2017/06/25 16:55:03 UTC
jena git commit: Cope with no ?iri=
Repository: jena
Updated Branches:
refs/heads/master a0149dd39 -> 107bd57f2
Cope with no ?iri=
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/107bd57f
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/107bd57f
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/107bd57f
Branch: refs/heads/master
Commit: 107bd57f24343fd3a28bf04bd39b53f1c26a1a71
Parents: a0149dd
Author: Andy Seaborne <an...@apache.org>
Authored: Sun Jun 25 17:54:58 2017 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Sun Jun 25 17:54:58 2017 +0100
----------------------------------------------------------------------
.../apache/jena/fuseki/validation/html/IRIValidatorHTML.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/107bd57f/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/validation/html/IRIValidatorHTML.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/validation/html/IRIValidatorHTML.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/validation/html/IRIValidatorHTML.java
index 1d247e1..8664d22 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/validation/html/IRIValidatorHTML.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/validation/html/IRIValidatorHTML.java
@@ -46,6 +46,10 @@ public class IRIValidatorHTML
{
try {
String[] args = httpRequest.getParameterValues(paramIRI) ;
+
+ if ( args == null || args.length==0 )
+ httpResponse.sendError(HttpServletResponse.SC_BAD_REQUEST, "No ?iri= parameter") ;
+
ServletOutputStream outStream = httpResponse.getOutputStream() ;
PrintStream stdout = System.out ;
PrintStream stderr = System.err ;
@@ -59,7 +63,6 @@ public class IRIValidatorHTML
outStream.println("<body>") ;
outStream.println("<h1>IRI Report</h1>") ;
-
startFixed(outStream) ;
try {