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 2016/03/18 14:02:44 UTC

[3/3] jena git commit: Issue error message on unrecogized file extension

Issue error message on unrecogized file extension


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/e2bd6d53
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/e2bd6d53
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/e2bd6d53

Branch: refs/heads/master
Commit: e2bd6d539362b978dc0c87b9eff167744da7bd94
Parents: f89bd24
Author: Andy Seaborne <an...@apache.org>
Authored: Fri Mar 18 12:59:52 2016 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Fri Mar 18 12:59:52 2016 +0000

----------------------------------------------------------------------
 jena-fuseki2/apache-jena-fuseki/bin/s-delete      | 5 ++++-
 jena-fuseki2/apache-jena-fuseki/bin/s-get         | 5 ++++-
 jena-fuseki2/apache-jena-fuseki/bin/s-head        | 5 ++++-
 jena-fuseki2/apache-jena-fuseki/bin/s-post        | 5 ++++-
 jena-fuseki2/apache-jena-fuseki/bin/s-put         | 5 ++++-
 jena-fuseki2/apache-jena-fuseki/bin/s-query       | 5 ++++-
 jena-fuseki2/apache-jena-fuseki/bin/s-update      | 5 ++++-
 jena-fuseki2/apache-jena-fuseki/bin/s-update-form | 5 ++++-
 jena-fuseki2/apache-jena-fuseki/bin/soh           | 5 ++++-
 9 files changed, 36 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/e2bd6d53/jena-fuseki2/apache-jena-fuseki/bin/s-delete
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/bin/s-delete b/jena-fuseki2/apache-jena-fuseki/bin/s-delete
index 9f6a619..16cb44c 100755
--- a/jena-fuseki2/apache-jena-fuseki/bin/s-delete
+++ b/jena-fuseki2/apache-jena-fuseki/bin/s-delete
@@ -35,7 +35,7 @@ require 'ostruct'
 #  Follow redirects => 301:  puts response["location"] # All headers are lowercase?
 
 SOH_NAME="SOH"
-SOH_VERSION="0.0.2"
+SOH_VERSION="1.0.0"
 
 $proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new  
 
@@ -192,6 +192,9 @@ end
 
 def send_body(dataset, graph, file, method)
   mt = content_type(file)
+  if mt.nil?
+    warn_exit "Can't identify the content type of '#{file}'", 9
+  end
   headers = {}
   headers.merge!($headers)
   headers[$hContentType] = mt

http://git-wip-us.apache.org/repos/asf/jena/blob/e2bd6d53/jena-fuseki2/apache-jena-fuseki/bin/s-get
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/bin/s-get b/jena-fuseki2/apache-jena-fuseki/bin/s-get
index 9f6a619..16cb44c 100755
--- a/jena-fuseki2/apache-jena-fuseki/bin/s-get
+++ b/jena-fuseki2/apache-jena-fuseki/bin/s-get
@@ -35,7 +35,7 @@ require 'ostruct'
 #  Follow redirects => 301:  puts response["location"] # All headers are lowercase?
 
 SOH_NAME="SOH"
-SOH_VERSION="0.0.2"
+SOH_VERSION="1.0.0"
 
 $proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new  
 
@@ -192,6 +192,9 @@ end
 
 def send_body(dataset, graph, file, method)
   mt = content_type(file)
+  if mt.nil?
+    warn_exit "Can't identify the content type of '#{file}'", 9
+  end
   headers = {}
   headers.merge!($headers)
   headers[$hContentType] = mt

http://git-wip-us.apache.org/repos/asf/jena/blob/e2bd6d53/jena-fuseki2/apache-jena-fuseki/bin/s-head
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/bin/s-head b/jena-fuseki2/apache-jena-fuseki/bin/s-head
index 9f6a619..16cb44c 100755
--- a/jena-fuseki2/apache-jena-fuseki/bin/s-head
+++ b/jena-fuseki2/apache-jena-fuseki/bin/s-head
@@ -35,7 +35,7 @@ require 'ostruct'
 #  Follow redirects => 301:  puts response["location"] # All headers are lowercase?
 
 SOH_NAME="SOH"
-SOH_VERSION="0.0.2"
+SOH_VERSION="1.0.0"
 
 $proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new  
 
@@ -192,6 +192,9 @@ end
 
 def send_body(dataset, graph, file, method)
   mt = content_type(file)
+  if mt.nil?
+    warn_exit "Can't identify the content type of '#{file}'", 9
+  end
   headers = {}
   headers.merge!($headers)
   headers[$hContentType] = mt

http://git-wip-us.apache.org/repos/asf/jena/blob/e2bd6d53/jena-fuseki2/apache-jena-fuseki/bin/s-post
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/bin/s-post b/jena-fuseki2/apache-jena-fuseki/bin/s-post
index 9f6a619..16cb44c 100755
--- a/jena-fuseki2/apache-jena-fuseki/bin/s-post
+++ b/jena-fuseki2/apache-jena-fuseki/bin/s-post
@@ -35,7 +35,7 @@ require 'ostruct'
 #  Follow redirects => 301:  puts response["location"] # All headers are lowercase?
 
 SOH_NAME="SOH"
-SOH_VERSION="0.0.2"
+SOH_VERSION="1.0.0"
 
 $proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new  
 
@@ -192,6 +192,9 @@ end
 
 def send_body(dataset, graph, file, method)
   mt = content_type(file)
+  if mt.nil?
+    warn_exit "Can't identify the content type of '#{file}'", 9
+  end
   headers = {}
   headers.merge!($headers)
   headers[$hContentType] = mt

http://git-wip-us.apache.org/repos/asf/jena/blob/e2bd6d53/jena-fuseki2/apache-jena-fuseki/bin/s-put
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/bin/s-put b/jena-fuseki2/apache-jena-fuseki/bin/s-put
index 9f6a619..16cb44c 100755
--- a/jena-fuseki2/apache-jena-fuseki/bin/s-put
+++ b/jena-fuseki2/apache-jena-fuseki/bin/s-put
@@ -35,7 +35,7 @@ require 'ostruct'
 #  Follow redirects => 301:  puts response["location"] # All headers are lowercase?
 
 SOH_NAME="SOH"
-SOH_VERSION="0.0.2"
+SOH_VERSION="1.0.0"
 
 $proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new  
 
@@ -192,6 +192,9 @@ end
 
 def send_body(dataset, graph, file, method)
   mt = content_type(file)
+  if mt.nil?
+    warn_exit "Can't identify the content type of '#{file}'", 9
+  end
   headers = {}
   headers.merge!($headers)
   headers[$hContentType] = mt

http://git-wip-us.apache.org/repos/asf/jena/blob/e2bd6d53/jena-fuseki2/apache-jena-fuseki/bin/s-query
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/bin/s-query b/jena-fuseki2/apache-jena-fuseki/bin/s-query
index 9f6a619..16cb44c 100755
--- a/jena-fuseki2/apache-jena-fuseki/bin/s-query
+++ b/jena-fuseki2/apache-jena-fuseki/bin/s-query
@@ -35,7 +35,7 @@ require 'ostruct'
 #  Follow redirects => 301:  puts response["location"] # All headers are lowercase?
 
 SOH_NAME="SOH"
-SOH_VERSION="0.0.2"
+SOH_VERSION="1.0.0"
 
 $proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new  
 
@@ -192,6 +192,9 @@ end
 
 def send_body(dataset, graph, file, method)
   mt = content_type(file)
+  if mt.nil?
+    warn_exit "Can't identify the content type of '#{file}'", 9
+  end
   headers = {}
   headers.merge!($headers)
   headers[$hContentType] = mt

http://git-wip-us.apache.org/repos/asf/jena/blob/e2bd6d53/jena-fuseki2/apache-jena-fuseki/bin/s-update
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/bin/s-update b/jena-fuseki2/apache-jena-fuseki/bin/s-update
index 9f6a619..16cb44c 100755
--- a/jena-fuseki2/apache-jena-fuseki/bin/s-update
+++ b/jena-fuseki2/apache-jena-fuseki/bin/s-update
@@ -35,7 +35,7 @@ require 'ostruct'
 #  Follow redirects => 301:  puts response["location"] # All headers are lowercase?
 
 SOH_NAME="SOH"
-SOH_VERSION="0.0.2"
+SOH_VERSION="1.0.0"
 
 $proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new  
 
@@ -192,6 +192,9 @@ end
 
 def send_body(dataset, graph, file, method)
   mt = content_type(file)
+  if mt.nil?
+    warn_exit "Can't identify the content type of '#{file}'", 9
+  end
   headers = {}
   headers.merge!($headers)
   headers[$hContentType] = mt

http://git-wip-us.apache.org/repos/asf/jena/blob/e2bd6d53/jena-fuseki2/apache-jena-fuseki/bin/s-update-form
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/bin/s-update-form b/jena-fuseki2/apache-jena-fuseki/bin/s-update-form
index 9f6a619..16cb44c 100755
--- a/jena-fuseki2/apache-jena-fuseki/bin/s-update-form
+++ b/jena-fuseki2/apache-jena-fuseki/bin/s-update-form
@@ -35,7 +35,7 @@ require 'ostruct'
 #  Follow redirects => 301:  puts response["location"] # All headers are lowercase?
 
 SOH_NAME="SOH"
-SOH_VERSION="0.0.2"
+SOH_VERSION="1.0.0"
 
 $proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new  
 
@@ -192,6 +192,9 @@ end
 
 def send_body(dataset, graph, file, method)
   mt = content_type(file)
+  if mt.nil?
+    warn_exit "Can't identify the content type of '#{file}'", 9
+  end
   headers = {}
   headers.merge!($headers)
   headers[$hContentType] = mt

http://git-wip-us.apache.org/repos/asf/jena/blob/e2bd6d53/jena-fuseki2/apache-jena-fuseki/bin/soh
----------------------------------------------------------------------
diff --git a/jena-fuseki2/apache-jena-fuseki/bin/soh b/jena-fuseki2/apache-jena-fuseki/bin/soh
index 9f6a619..16cb44c 100755
--- a/jena-fuseki2/apache-jena-fuseki/bin/soh
+++ b/jena-fuseki2/apache-jena-fuseki/bin/soh
@@ -35,7 +35,7 @@ require 'ostruct'
 #  Follow redirects => 301:  puts response["location"] # All headers are lowercase?
 
 SOH_NAME="SOH"
-SOH_VERSION="0.0.2"
+SOH_VERSION="1.0.0"
 
 $proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) : OpenStruct.new  
 
@@ -192,6 +192,9 @@ end
 
 def send_body(dataset, graph, file, method)
   mt = content_type(file)
+  if mt.nil?
+    warn_exit "Can't identify the content type of '#{file}'", 9
+  end
   headers = {}
   headers.merge!($headers)
   headers[$hContentType] = mt