SWI-Prolog / packages-semweb

The SWI-Prolog RDF store
28 stars 14 forks source link

sparql_client authorization issue #92

Open PaulBrownMagic opened 4 years ago

PaulBrownMagic commented 4 years ago

When using sparql_client with authorization, once the results have been consumed another request is made without the authorization, resulting in a 401 response and error. This prevents SPARQL queries that exhaust the results.

The cause is a choice-point left in http_open/3 when using authorization. Not back-tracking into http_open/3 will resolve the issue.

PaulBrownMagic commented 4 years ago

Pull request #93 adds the cut to the appropriate point.

JanWielemaker commented 4 years ago

Hi Paul,

I guess this should be fixed in http_open/3. Only, I fail to reproduce the issue. How do you specify the authorization and which authorization are you using?