Hi,
In a Marmotta module I am developping, I did use ImportClient to upload data,
and it did work fine.
However, when changing Marmotta's security from "simple" to "restricted", the
ImportClient was failing with a 401.
I did try to pass a user/pwd to the ClientConfiguration(), but the error
persisted (I was passing the user and password as 'clear' strings, for instance
'admin' and 'pass123').
To make it work, I had make my own copy of the method
ImportClient.uploadDataset(), and pass the headerAuth received by my own
webservice to the post object: post.setHeader("Authorization", headerAuth);
I thus have two question:
- is that normal that the ImportClient was failing or did I do something wrong
- if that was normal, would you want a new version of ImportClient that could
handle this ?
thank you
Fabian