Skip to content

Return unresolved stanza when kernel scope is unavailable for resolvePath (instead of failing with 404) - #1641

Merged
Carreau merged 3 commits into
jupyter-server:mainfrom
MUFFANUJ:kernelScope
May 21, 2026
Merged

Return unresolved stanza when kernel scope is unavailable for resolvePath (instead of failing with 404)#1641
Carreau merged 3 commits into
jupyter-server:mainfrom
MUFFANUJ:kernelScope

Conversation

@MUFFANUJ

Copy link
Copy Markdown
Contributor

This change updates /api/resolvePath to return HTTP 410 when a provided kernel scope cannot be resolved, so clients can distinguish stale/invalid kernel scope from endpoint-level 404 behavior.

Refs: jupyterlab/jupyterlab#18876 (comment)

@krassowski krassowski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some initial thoughts. I am not sure yet.

Comment thread jupyter_server/services/api/handlers.py
Comment thread jupyter_server/services/api/handlers.py Outdated
@krassowski krassowski changed the title Return 410 When resolvePath Kernel Scope Is Unavailable Return unresolved stanza when kernel scope is unavailable for resolvePath (instead of failing with 404) May 20, 2026

@krassowski krassowski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This makes sense to me, but I would love to have some more eyes on this - @Carreau?

@Carreau

Carreau commented May 21, 2026

Copy link
Copy Markdown
Contributor

Let's try.

@Carreau
Carreau merged commit aaddd4b into jupyter-server:main May 21, 2026
67 of 68 checks passed
@MUFFANUJ
MUFFANUJ deleted the kernelScope branch May 21, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants