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 from 7000765 to 66be12f Compare August 14, 2023 09:11
@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

@Eisie96 Eisie96 force-pushed the fix/pgid-with-apiToken branch 4 times, most recently from 5dad199 to f2c13fe Compare August 21, 2023 13:14
@Eisie96 Eisie96 force-pushed the fix/pgid-with-apiToken branch from f2c13fe to 343a811 Compare August 31, 2023 07:37
@SGrueber SGrueber modified the milestones: 4.2, 5.0 Sep 1, 2023
@Eisie96 Eisie96 force-pushed the fix/pgid-with-apiToken branch from fce0cd3 to 88350d0 Compare September 4, 2023 08:53
@Eisie96 Eisie96 force-pushed the fix/pgid-with-apiToken branch from 88350d0 to e7b22b9 Compare October 19, 2023 14:03
@SGrueber SGrueber requested a review from shauke October 23, 2023 16:22
@shauke shauke assigned SGrueber and unassigned Eisie96 Dec 13, 2023
@SGrueber SGrueber modified the milestones: 5.0, 5.1 Dec 21, 2023
@SGrueber SGrueber force-pushed the fix/pgid-with-apiToken branch from e7b22b9 to b6620e5 Compare January 25, 2024 10:02
@SGrueber SGrueber force-pushed the fix/pgid-with-apiToken branch from c47f02c to 1752b4b Compare January 31, 2024 14:44
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
@SGrueber SGrueber force-pushed the fix/pgid-with-apiToken branch from 1752b4b to 4f3f0a2 Compare January 31, 2024 15:17
*do not load content data from ICM before the pgid of a registered user is available
@SGrueber SGrueber force-pushed the fix/pgid-with-apiToken branch from 5e71f94 to 30e3d32 Compare March 20, 2024 13:13
@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