packages-semweb icon indicating copy to clipboard operation
packages-semweb copied to clipboard

sparql_client authorization issue

Open PaulBrownMagic opened this issue 6 years ago • 2 comments

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 avatar Oct 20 '19 00:10 PaulBrownMagic

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

PaulBrownMagic avatar Oct 20 '19 00:10 PaulBrownMagic

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?

JanWielemaker avatar Nov 11 '19 09:11 JanWielemaker