New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DSpace REST login error in SS #123
Comments
To QA:
|
Hi @sevein , In short, I'm unable to verify on my local deploy. More details... 1 .Enabled the DSpace REST space functionality by modifying space.py per jrwdunham's QA notes. *I can provide more details about my DSpace Rest space location upon request. |
@currmie I believe the |
@mamedin was able to confirm that we could create an AIP and store it in the DSpace REST space associated with a test collection. No DSpace REST login errors encountered so calling this issue verified. |
Also, I verified using new credentials for DSpace REST login (given to me for QA purposes). Using local deployment, I am able to create an AIP and store it in the DSpace REST space. |
Expected behaviour
When Storage service has been configured to store AIP/DIPs in DSpace using a REST location it should login using credentials provided and return a session id.
Current behaviour
When trying to login to DSpace a 401 error is thrown by the login function.
The same credentials work using curl.
curl -v -X POST --data "email=dspacedemo%2Badmin@gmail.com&password=dspace" https://demo.dspace.org/rest/login
the same credentials set up in SS return a 401.
DSpaceRESTException: Bad response 401 received when attempting to login via the DSpace REST API: 401 Client Error: Unauthorized for url: https://demo.dspace.org:443/rest/login. Using url "https://demo.dspace.org:443/rest/login". Using email "dspacedemo+admin@gmail.com".
Note that when commenting out the cookies and headers lines from the following snippet:
https://github.com/artefactual/archivematica-storage-service/blob/qa/0.x/storage_service/locations/models/dspace_rest.py#L297-L299
the login error does not happen.
Steps to reproduce
Your environment (version of Archivematica, OS version, etc)
SS qa 0.x- 0.12.0 rc
DSpace 6.2
The text was updated successfully, but these errors were encountered: