Project

General

Profile

Bug #8527

Ending slash on the rest url makes the identity map request fail

Added by Jing Tao about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
d1_cn_service
Target version:
Start date:
2018-03-29
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

This rest url which ends a slash doesn't work:
~~~
curl -H "Authorization: Bearer ${token}" -F "subject=uid=tao,o=NCEAS,dc=ecoinformatics,dc=org" -X POST https://cn.dataone.org/cn/v2/accounts/pendingmap/
~~~

<?xml version="1.0" encoding="UTF-8"?>

Internal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request.

However, this url which doesn't end with a slash works:

curl -H "Authorization: Bearer ${token}" -F "subject=uid=tao,o=NCEAS,dc=ecoinformatics,dc=org" -X POST https://cn.dataone.org/cn/v2/accounts/pendingmap

Our rest commands should be more robust and can handle both of them.

History

#1 Updated by Jing Tao about 6 years ago

  • Target version set to CCI-2.3.10
  • Assignee set to Jing Tao
  • Category set to d1_identity_manager

#2 Updated by Jing Tao almost 6 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed
  • Category changed from d1_identity_manager to d1_cn_service

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)