Skip to content

fix(preview-middleware): sanitize cards generator manifest URL to avoid issues with double slashes when joining paths#4485

Merged
heimwege merged 8 commits intomainfrom
fix/preview-middleware/card-generator
Mar 31, 2026
Merged

fix(preview-middleware): sanitize cards generator manifest URL to avoid issues with double slashes when joining paths#4485
heimwege merged 8 commits intomainfrom
fix/preview-middleware/card-generator

Conversation

@heimwege
Copy link
Copy Markdown
Contributor

@heimwege heimwege commented Mar 28, 2026

#4430

fixes issue with card generator creating manifests with wrong data request url (...//$batch)

But actually this should be fixed by the card generator component by collapsing // to / before writing it to the request url property.

@heimwege heimwege added the preview-middleware @sap-ux/preview-middleware label Mar 28, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 28, 2026

🦋 Changeset detected

Latest commit: a0fc666

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@sap-ux/preview-middleware Patch
@sap-ux/create Patch
@sap-ux-private/preview-middleware-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@heimwege heimwege marked this pull request as ready for review March 28, 2026 17:07
@heimwege heimwege requested a review from a team as a code owner March 28, 2026 17:08
@heimwege heimwege linked an issue Mar 29, 2026 that may be closed by this pull request
3 tasks
Copy link
Copy Markdown
Contributor

@Singham-24 Singham-24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changeset OK
Did not test manually
coverage ok

Copy link
Copy Markdown
Contributor

@Sharmavksh Sharmavksh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> Changes are straightforward.
=> Test cases has been added for the latest changes.
=> Changeset has been added.

Looks good to me.

Copy link
Copy Markdown
Contributor

@ytpo-lyne ytpo-lyne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • changes to sanitize cards generator manifest URL look good
  • changeset present
  • full coverage
  • did not test manually

Approving.

@sonarqubecloud
Copy link
Copy Markdown

@heimwege heimwege merged commit f305285 into main Mar 31, 2026
23 of 41 checks passed
@heimwege heimwege deleted the fix/preview-middleware/card-generator branch March 31, 2026 06:38
devinea added a commit that referenced this pull request Mar 31, 2026
* origin/main: (30 commits)
  chore: apply latest changesets
  fix: adjust min height for buttons after latest fount ui update (#4499)
  fix: int test (#4473)
  chore: apply latest changesets
  fix: add legacy eslint config for recommended-for-s4hana (#4494)
  chore: apply latest changesets
  fix(sap-systems-ext): correct system name validator (#4493)
  chore: apply latest changesets
  feat(ui5-test-writer): Generate OPA5 tests for Object Page sections & subsections (#4437)
  chore: apply latest changesets
  feat(eslint-plugin-fiori-tools): add DataFieldForIntentBasedNavigation XML annotation rule (#4261)
  chore: apply latest changesets
  Add line-height to UITranslationInput text (#4497)
  chore: apply latest changesets
  error, warning, info boxes have rounded corners (#4492)
  chore: apply latest changesets
  fix(preview-middleware): sanitize cards generator manifest URL to avoid issues with double slashes when joining paths (#4485)
  chore: apply latest changesets
  feat(backend-proxy-middleware): add property for additional url params (#4484)
  chore(preview-middleware): update snapshots (#4495)
  ...
devinea added a commit that referenced this pull request Mar 31, 2026
…types_and_apis

* origin/main: (30 commits)
  chore: apply latest changesets
  fix: adjust min height for buttons after latest fount ui update (#4499)
  fix: int test (#4473)
  chore: apply latest changesets
  fix: add legacy eslint config for recommended-for-s4hana (#4494)
  chore: apply latest changesets
  fix(sap-systems-ext): correct system name validator (#4493)
  chore: apply latest changesets
  feat(ui5-test-writer): Generate OPA5 tests for Object Page sections & subsections (#4437)
  chore: apply latest changesets
  feat(eslint-plugin-fiori-tools): add DataFieldForIntentBasedNavigation XML annotation rule (#4261)
  chore: apply latest changesets
  Add line-height to UITranslationInput text (#4497)
  chore: apply latest changesets
  error, warning, info boxes have rounded corners (#4492)
  chore: apply latest changesets
  fix(preview-middleware): sanitize cards generator manifest URL to avoid issues with double slashes when joining paths (#4485)
  chore: apply latest changesets
  feat(backend-proxy-middleware): add property for additional url params (#4484)
  chore(preview-middleware): update snapshots (#4495)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-middleware @sap-ux/preview-middleware

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG - card generator http 500 error for batch in CAP apps

4 participants