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

StoryBlock - Embedding a content item to itself causes stackoverflow #23846

Closed
wezell opened this issue Jan 18, 2023 · 7 comments · Fixed by #24790
Closed

StoryBlock - Embedding a content item to itself causes stackoverflow #23846

wezell opened this issue Jan 18, 2023 · 7 comments · Fixed by #24790

Comments

@wezell
Copy link
Contributor

wezell commented Jan 18, 2023

Proposed Objective

Accessibility (WCAG)

Proposed Priority

Priority 2 - Important

dotCMS Version

23.01

Problem Statement

You can add a content item to itself in a storyblock field. The issue is that it breaks the content.

at com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.find(ESContentFactoryImpl.java:860) ~[classes/:?]
at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.find(ESContentletAPIImpl.java:369) ~[classes/:?]
at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.find(ContentletAPIInterceptor.java:698) ~[classes/:?]
at com.dotcms.contenttype.business.StoryBlockAPIImpl.refreshBlockEditorDataMap(StoryBlockAPIImpl.java:268) ~[classes/:?]
at com.dotcms.contenttype.business.StoryBlockAPIImpl.refreshStoryBlockMap(StoryBlockAPIImpl.java:117) ~[classes/:?]
at com.dotcms.contenttype.business.StoryBlockAPIImpl.refreshStoryBlockValueReferences(StoryBlockAPIImpl.java:71) ~[classes/:?]
at com.dotcms.contenttype.business.StoryBlockAPIImpl.lambda$0(StoryBlockAPIImpl.java:48) ~[classes/:?]

Steps to Reproduce

  1. In starter, create a new blog entry
  2. Save it
  3. In the blog content (the main storyblock field) add the blog content to itself.
  4. Save it (fails) and close
  5. try to reopen it.

Acceptance Criteria

Content should not be able to be added to itself.

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Sub-Tasks

No response

Estimates

No response

@wezell
Copy link
Contributor Author

wezell commented Jan 18, 2023

Bumping to important as it is unrecoverable once this happens. The content can't be opened, edited or deleted.

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale label Apr 26, 2023
@jdotcms jdotcms self-assigned this Apr 27, 2023
@binarybasher
Copy link

This is a real issue, even if it's not linked too itself, it can be linked to another content-let which links back.

Editor's should not be able to cause this unrecoverable failure, it affects the indexing and other stuff.

@swicken-dotcms
Copy link
Contributor

Related ticket: https://dotcms.zendesk.com/agent/tickets/111131

fmontes pushed a commit that referenced this issue May 3, 2023
* #23846 now recursive reference on story block are being ignored

* #23846 now recursive reference on story block are being ignored

* #23846 now recursive reference on story block are being ignored
@erickgonzalez erickgonzalez added the LTS : Next Ticket that will be added to LTS label May 4, 2023
@manuelrojas manuelrojas self-assigned this May 9, 2023
@manuelrojas
Copy link
Contributor

Passed Internal QA Docker Image: [dotcms/dotcms:master_1fc8dba8_SNAPSHOT]

Screen.Recording.2023-05-09.at.10.34.48.AM.mov

@josemejias11
Copy link

Approved QA - Tested on 23.06_8c0a542e_SNAPSHOT // Docker // macOS 13.0 // FF v113.0

erickgonzalez added a commit that referenced this issue May 23, 2023
@erickgonzalez erickgonzalez added LTS: Excluded Ticket that has been excluded from at least one LTS and removed LTS : Next Ticket that will be added to LTS labels Jun 4, 2023
@erickgonzalez
Copy link
Contributor

Excluded of 22.03 LTS

@erickgonzalez erickgonzalez added the Release : 23.01.3 Included in LTS patch release 23.01.3 label Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

9 participants