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

Uploading a badly structured document crashes the Studio View #7543

Open
Tej-Sharma opened this issue Sep 25, 2024 · 0 comments
Open

Uploading a badly structured document crashes the Studio View #7543

Tej-Sharma opened this issue Sep 25, 2024 · 0 comments

Comments

@Tej-Sharma
Copy link

Tej-Sharma commented Sep 25, 2024

If you find a security vulnerability, do NOT open an issue. Email security@sanity.io instead.

Describe the bug

I added a URL to an image type (using the API), and that was my bad, but when I try to go to the studio to delete the document, it keeps crashing with this:

To Reproduce

Steps to reproduce the behavior:

  1. Upload a document with a property image set to a url
  2. Go to Studio
  3. Go to structure tab

Expected behavior

Show error but be able to delete the document

Screenshots
image

Which versions of Sanity are you using?

3.49

What operating system are you using?

MacOS 14.1.1 (23B81)

Which versions of Node.js / npm are you running?

10.2.3
v20.10.0

Additional context

Add any other context about the problem here.

Security issue?

Any security issues should be submitted directly to security@sanity.io. In order to determine whether you are dealing with a security issue, ask yourself these two questions:

  • Can I access something that's not mine, or something I shouldn't have access to?
  • Can I disable something for other people? If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just email us at [security@sanity.io](mailto:security@sanity.io.
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

No branches or pull requests

1 participant