AllowEncodedSlashes

Because of this issue [1, 2] a user has requested me to enable AllowEncodedSlashes in OnDemand. Oddly enough, I have found no one discussing this topic here and I was wondering if

  • is there a better OnDemand way than jupyter-collaboration to allow the ability to refresh the page and reconnect to cells that are actively outputting? Currently, refreshing the page breaks that. Re-connecting to a running notebook is also highly desirable.
  • is there any downside to enable AllowEncodedSlashes for OnDemand? if not, how do that in /etc/ood/config/ood_portal.yml since that should be yaml, rather than simple conf file in Apache?

Thanks!

1: Cant connect to kernel - JupyterHub - Jupyter Community Forum
2: Cant´t open Notebook in a directory after activating jupyterlab-collaboration · Issue #271 · jupyterlab/jupyter-collaboration · GitHub

I’m not familiar with that directive AllowEncodedSlashes so you’ll have to find more information about that online.

In terms of how to add it to the conf file, you can use custom_vhost_directives or custom_location_directives to supply stuff like this.

Thanks Jeff, that sounds good.

Do I hear it right that as far as you know there isn’t another (better) alternative to avoid losing a connection to a running kernel?

I’m not entirely sure. A quick search of jupyter online bugs/issues seems to indicate this is either inflight or in some recent versions of JupyterLab, but I can’t confirm that.

Here’s one just for reference, but there are a lot of duplicates for the same.