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

Empty node bug causing exceptions #751

Open
phawxby opened this issue Jun 22, 2021 · 1 comment
Open

Empty node bug causing exceptions #751

phawxby opened this issue Jun 22, 2021 · 1 comment
Labels
stale Used to mark when there was no activity for a set period of time

Comments

@phawxby
Copy link

phawxby commented Jun 22, 2021

A bug exists in the rich text editor which allows for nodes to exist with undefined content.

{
  data: {},
  content: [
    {
      data: {
        uri: 'https://www.xerox.com/digital-printing/latest/IG5DS-09J.PDF'
      },
      content: [
        {
          data: {},
          marks: [],
          value: 'Bezbarwny toner (PDF, 1,2 MB)',
          nodeType: 'text'
        }
      ],
      nodeType: 'hyperlink'
    },
    {
      data: {
        uri: 'https://www.xerox.com/pl-pl/digital-printing/clear-dry-ink'
      },
      content: [ undefined ],
      nodeType: 'hyperlink'
    }
  ],
  nodeType: 'paragraph'
}

The node is completely invisible to the author using the editor. Their first indication of a problem is the node refusing to render due to this condition causing an error inside rich-text-links.
contentful/rich-text#243

This relates to Contentful support ticket: 79759
https://support.contentful.com/hc/en-us/requests/79759

@github-actions
Copy link

github-actions bot commented Aug 6, 2022

Marking issue as stale since there was no acitivty for 30 days

@github-actions github-actions bot added the stale Used to mark when there was no activity for a set period of time label Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Used to mark when there was no activity for a set period of time
Projects
None yet
Development

No branches or pull requests

1 participant