[
https://issues.apache.org/jira/browse/JENA-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558695#comment-13558695
]
Andy Seaborne commented on JENA-348:
------------------------------------
Rob - thanks for looking at this.
In the patch, jena-348-1.patch (Jan 16)
--- a/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java
so it looks to be right. The Nov patch is certainly against org.openjena.
Trying I get: (where ~/Jena is the trunk of Jena, so one level up from jena-arq)
-----------------
~/Jena >> git apply < ~/Desktop/jena-348-1.patch
<stdin>:37: trailing whitespace.
<stdin>:73: trailing whitespace.
<stdin>:108: trailing whitespace.
<stdin>:136: trailing whitespace.
<stdin>:144: trailing whitespace.
warning: squelched 4 whitespace errors
warning: 9 lines add whitespace errors.
-----------------
A few warnings (they look to be all javadoc related) but it compiles for me at
least.
We may be acquiring a new project skill to document on the cwiki!
> Support HTTP auth for SPARQL Update requests
> --------------------------------------------
>
> Key: JENA-348
> URL: https://issues.apache.org/jira/browse/JENA-348
> Project: Apache Jena
> Issue Type: Improvement
> Components: ARQ
> Affects Versions: ARQ 2.9.4
> Reporter: Sören Brunk
> Assignee: Rob Vesse
> Priority: Minor
> Fix For: Jena 2.10.0
>
> Attachments: jena-348-1.patch, jena-348.patch, UpdateAuthExample.java
>
>
> ARQ supports HTTP Basic Authentication for read queries
> (setBasicAuthentication() in QueryEngineHTTP).
> I can't find authentication support for SPARQL Update though. The responsible
> class UpdateProcessRemote uses HttpOp as an abstraction, and HttpOp in turn
> encapsulates HttpClient from Apache HTTP Components.
> So I guess a way to go would be to extend HttpOp to support auth or to expose
> the HttpClient object in order to set auth options as described in [1].
> I'm happy to help if I can get some hints about the preferred way to include
> auth support.
> [1]
> http://hc.apache.org/httpcomponents-client-ga/tutorial/html/authentication.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira