Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

bug(oxtrust-api): attempt to update trust relationship removing existing attribute #82

Open
mzico opened this issue Jan 16, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mzico
Copy link
Contributor

mzico commented Jan 16, 2025

Describe the issue

Using oxTrust-API to update an existing trust relationship. Existing attributes from this trust relationship are being removed.

Gluu Server: 4.5.6
oxTrust image: gluufederation/oxtrust:4.5.6-2

Steps To Reproduce

Steps to reproduce the behavior:

  1. Let's assume we have a trust relationship whose inum is "2359e25b-8bfe-488e-8975-28c1a8f3ab8d"

  2. This is a simple File based trust relationship where "Username" and "EmailAddress" attributes are being released.

  3. We are making an API call to change this trust relationship's status from "Active" to "False"

  4. API call information:
    4.1 PUT https://<hostname>/identity/restv1/api/v1/saml/tr/update/2359e25b-8bfe-488e-8975-28c1a8f3ab8d
    4.2 BODY:

         {
              "dn": "inum=2359e25b-8bfe-488e-8975-28c1a8f3ab8d,ou=trustRelationships,o=gluu",
              "inum": "2359e25b-8bfe-488e-8975-28c1a8f3ab8d",
              "displayName": "testappsaml2",
              "description": "Test application",
              "status": "INACTIVE",
              "validationStatus": "SUCCESS",
              "releasedAttributes": [
                  "inum=CAE3,ou=attributes,o=gluu",
                  "inum=42E0,ou=attributes,o=gluu"
              ],
              "spMetaDataSourceType": "FILE",
              "spMetaDataFN": "2359e25b-8bfe-488e-8975-28c1a8f3ab8d-sp-metadata.xml",
              "owner": "o=gluu",
              "maxRefreshDelay": "PT8H",
              "metadataFilters": {},
              "profileConfigurations": {},
              "gluuIsFederation": "false",
              "gluuEntityId": [
                  "https://testappsaml2.gluu.org/shibboleth"
              ],
              "entityType": "SingleSP"
          }
       ```
    

Expected behavior

Trust relationship updated with "Status == INACTIVE".

Actual behavior

Trust relationship update happening bug "Attributes Published" are null.

@mzico mzico added the bug Something isn't working label Jan 16, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants