wso2 / product-is

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
748 stars 729 forks source link

[SCIM] Value of 'location' HTTP header is incorrect in tenant mode #7317

Closed gayashanbc closed 2 weeks ago

gayashanbc commented 4 years ago

Description

I noticed the above mentioned issue while creating a user via SCIM where the 'location' HTTP header does not include the tenant domain in the URL. However the value of the 'location' meta attribute is correct. Both the 'location' meta attribute and the 'location' HTTP header should have the same value. See the example below.

'location' meta attribute:

https://localhost:9853/t/wso2.com/scim2/Users/ecea2770-fa2b-48a3-b33f-c43ae36e1aad

'location' HTTP header:

https://localhost:9853/scim2/Users/ecea2770-fa2b-48a3-b33f-c43ae36e1aad

Steps to Reproduce

  1. Create a tenant (e.g. wso2.com).
  2. Create a user with SCIM.
  3. Compare the values of the 'location' meta attribute and the 'location' HTTP header.

Post Actions

Affected Versions

[1] https://github.com/wso2/product-is/blob/6593b883b0f5c0531c6c84f275a345cf91e419b2/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/scim2/rest/api/SCIMUtils.java#L80

isharak commented 2 weeks ago

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!