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

Execute JSON.parse() twice to parse escaped JSON string in KubernetesService#getContentScope #1778

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

thomasdax98
Copy link
Member

Fix parsing of contentScopeAnnotation in KubernetesService#getContentScope


You can see that only json2 (after the second JSON.parse()) is an object

Bildschirmfoto 2024-02-28 um 15 14 47

This bug is new in v6, but I don't know yet why it occurs now. This is a workaround so updating to v6 is possible for content websites. I'll still try to figure out the reason so maybe we can remove this again in the future.

@auto-assign auto-assign bot requested a review from johnnyomair February 28, 2024 14:19
@thomasdax98 thomasdax98 changed the title Execute JSON.parse() twice to parse escaped JSON string Execute JSON.parse() twice to parse escaped JSON string in KubernetesService#getContentScope Feb 28, 2024
@thomasdax98 thomasdax98 merged commit e2e2114 into main Feb 28, 2024
10 checks passed
@thomasdax98 thomasdax98 deleted the fix-scope-annotation branch February 28, 2024 15:36
johnnyomair pushed a commit that referenced this pull request Oct 29, 2024
…sService#getContentScope` (#1778)

Fix parsing of `contentScopeAnnotation` in
`KubernetesService#getContentScope`

---

You can see that only `json2` (after the second JSON.parse()) is an
object

<img width="572" alt="Bildschirmfoto 2024-02-28 um 15 14 47"
src="https://github.com/vivid-planet/comet/assets/13380047/668b073e-226e-497b-a4f7-894a1372c016">

---

This bug is new in v6, but I don't know yet why it occurs now. This is a
workaround so updating to v6 is possible for content websites. I'll
still try to figure out the reason so maybe we can remove this again in
the future.
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.

3 participants