Skip to content

Bug non draft with system user (Issue #242)#250

Open
Andreas-Meindl-msggroup wants to merge 834 commits into
cap-js:developfrom
Andreas-Meindl-msggroup:bug_non_draft_with_system_user
Open

Bug non draft with system user (Issue #242)#250
Andreas-Meindl-msggroup wants to merge 834 commits into
cap-js:developfrom
Andreas-Meindl-msggroup:bug_non_draft_with_system_user

Conversation

@Andreas-Meindl-msggroup

Copy link
Copy Markdown

Describe your changes

Creating attachments does not work for technical system users.

In our use case, non-draft attachments are created from a technical system user and not triggered by an UI action.

This causes error
"Could not fetch JWT bearer token for service of type sdm: HTTP response from https://authentication.eu10.hana.ondemand.com/oauth/token was 401: {"error":"unauthorized","error_description":"Unable to map issuer: Origin claim is missing in the token.}"
in lib/sdm.js --> getDestination method.
Therefore, we changed the coding in method “getDestination”. If “origin” is not set in jwt, we use the technical client credential access (transformSDMServiceBindingToClientCredentialsDestination).

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist before requesting a review

  • I have tested the functionality on my cloud environment.
  • I have provided sufficient automated/ unit tests for the code.
  • I have increased or maintained the test coverage.

Upload Screenshots/lists of the scenarios tested

  • I have Uploaded Screenshots or added lists of the scenarios tested in description
  • getDestination
    • should use Client Credentials when origin is not present in token

yashmeet29 and others added 29 commits February 24, 2026 10:38
…d of .docx as .docx file is restricted in test repo
[Hyperspace] 🤖 Add PR Bot Configuration
Fix [NodeJs] Incorrect Warning message if a user without SDM Roles updates custom properties or renames attachments
FIX Setting the custom properties value to null doesn't revert the value in SDM
Change Log for Release 1.9.0 & an error message fix in Integration test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants