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

Ignore zero-length page_config.json, restore previous behavior of crashing for invalid JSON #1405

Merged
merged 2 commits into from Mar 13, 2024

Conversation

holzman
Copy link
Contributor

@holzman holzman commented Mar 13, 2024

Hi,

Thanks for merging my earlier patch!

Please see the comments here from @manics and @krassowski here (jupyterlab/jupyterlab_server#444) on a similar patch for jupyterlab_server. There are reasonable arguments to be made for continuing to crash on invalid JSON.

I've prepared this PR which preserves the previous behavior and only ignores the page_config.json file if it's zero-length.

@blink1073 blink1073 added the bug label Mar 13, 2024
Copy link
Collaborator

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense, thank you!

@blink1073 blink1073 merged commit 0adfb2a into jupyter-server:main Mar 13, 2024
34 of 37 checks passed
@holzman holzman deleted the invalid-json-crash branch March 14, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants