History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-712
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Minor Minor
Assignee: James Leigh
Reporter: Jeen Broekstra
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sesame

RepositoryConnection.add with URL argument does not send HTTP Accept header with request

Created: 31/May/10 09:18 AM   Updated: 31/May/10 02:39 PM
Component/s: Repository API
Affects Version/s: 2.3.1
Fix Version/s: 2.3.2

File Attachments: 1. Text File RepositoryConnectionBase.Accept.patch.txt (0.9 kb)



 Description   
When loading RDF from a URL into a Sesame repository, Sesame does not explicitly add an HTTP Accept header to the request that retrieves the RDF. In cases where the URL identifies a RESTful service that uses content negotiotiation to determine the response format, this leads to problems.

Attached is a patch that fixes this issue by adding an explicit HTTP Accept header to the request. I have tested that this patch works for actual HTTP connections, it may need further testing (e.g. on non-HTTP URLs) though.

 All   Comments   Change History      Sort Order:
Comment by Jeen Broekstra [31/May/10 09:19 AM]
patch on RepositoryConnectionBase that fixes this issue.

Comment by James Leigh [31/May/10 02:39 PM]