Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: avoid pgid errors when an apiToken is available #1479

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Eisie96
Copy link
Contributor

@Eisie96 Eisie96 commented Aug 14, 2023

PR Type

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

Some ICM REST requests (e.g. /cms/include) will fail, when an apiToken is send without pgid information.

Issue Number: Closes #

What Is the New Behavior?

When an apiToken is available, all REST request will wait until pgid is available in case the option to send the pgid/ spgid is enabled.

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No

Other Information

Steps to Repeat:

(1) Run the PWA with the https://pwa-ish-demo.test.intershop.com as configured ICM.
(1) Login with a user
(2) Go to the /home page
(3) Refresh the page
(4) Check within Network tab, that /cms/includes/include.homepage.content.pagelet2-Include REST request fails with following error message: Bad Request (Matrix parameter "pgid" is required if auth token is present)

AB#88541

@Eisie96 Eisie96 requested a review from SGrueber August 14, 2023 07:52
@Eisie96 Eisie96 force-pushed the fix/pgid-with-apiToken branch 2 times, most recently from 5d75b15 to 1459e38 Compare August 15, 2023 09:05
@SGrueber SGrueber added the bug Something isn't working label Aug 16, 2023
@SGrueber SGrueber added this to the 4.2 milestone Aug 16, 2023
@shauke
Copy link
Collaborator

shauke commented Aug 18, 2023

SGrueber pushed a commit that referenced this pull request Jan 31, 2024
*do not load content data from ICM before the pgid of a registered user is available
*do not load content data from ICM before the pgid of a registered user is available
@shauke shauke removed this from the 5.1 milestone Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has conflicts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants