Navigation Menu

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

404 error when opening folder icon in notebook list header in a new tab #2137

Closed
KGHustad opened this issue Sep 10, 2018 · 1 comment
Closed

Comments

@KGHustad
Copy link

Describe the bug
The folder icon in the notebook list header points to /tree, instead of /user/USER_ID/tree when opening in a new tab. /tree redirects to /hub/tree, which gives a 404 error.

To Reproduce

  1. Go to any page in Jupyter's file tree.
  2. Hover over the folder icon on the left side of the bar with "Name", "Last Modified", "File size", and open the link in a new tab.
  3. Observe 404 error

Expected behavior
Being directed to /user/USER_ID/tree

Screenshots
jupyterhub_bug_tree

Desktop (please complete the following information):

  • OS: macOS & Linux (probably OS independent, but only these were tested)
  • Browser: Chrome 69 & Firefox 62 (probably browser independent too)

Additional context
We're running JupyterHub 0.9.2 and Jupyter notebook 5.6.0.

Output from jupyter troubleshoot

$PATH:
        /srv/conda/bin
        /srv/conda/bin
        /usr/local/sbin
        /usr/local/bin
        /usr/sbin
        /usr/bin
        /sbin
        /bin

sys.path:
        /srv/conda/bin
        /srv/conda/lib/python36.zip
        /srv/conda/lib/python3.6
        /srv/conda/lib/python3.6/lib-dynload
        /srv/conda/lib/python3.6/site-packages

sys.executable:
        /srv/conda/bin/python3.6

sys.version:
        3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 09:53:17)
        [GCC 4.8.2 20140120 (Red Hat 4.8.2-15)]

platform.platform():
        Linux-4.14.63-coreos-x86_64-with-debian-stretch-sid

which -a jupyter:
        /srv/conda/bin/jupyter
        /srv/conda/bin/jupyter

pip list:
        Package              Version
        -------------------- ---------
        absl-py              0.4.0
        alembic              0.9.9
        appdirs              1.4.3
        asn1crypto           0.24.0
        astor                0.7.1
        async-generator      1.10
        attrs                18.1.0
        autobahn             18.7.1
        Automat              0.0.0
        backcall             0.1.0
        beautifulsoup4       4.6.3
        biopython            1.72
        bleach               2.1.3
        bokeh                0.13.0
        certifi              2018.8.13
        cffi                 1.11.5
        chardet              3.0.4
        cloudpickle          0.5.3
        colorama             0.3.9
        conda                4.3.30
        constantly           15.1.0
        cryptography         2.3.1
        cryptography-vectors 2.3.1
        cycler               0.10.0
        Cython               0.28.5
        dask                 0.18.2
        decorator            4.3.0
        dill                 0.2.8.2
        entrypoints          0.2.3
        fastcache            1.0.2
        gast                 0.2.0
        gmpy2                2.0.8
        grpcio               1.12.1
        h5py                 2.8.0
        html5lib             1.0.1
        hyperlink            17.3.1
        idna                 2.7
        imageio              2.3.0
        incremental          17.5.0
        ipykernel            4.8.2
        ipython              6.5.0
        ipython-genutils     0.2.0
        ipywidgets           7.4.0
        jedi                 0.12.1
        Jinja2               2.10
        jsonschema           2.6.0
        jupyter              1.0.0
        jupyter-client       5.2.3
        jupyter-console      5.2.0
        jupyter-core         4.4.0
        jupyterhub           0.9.2
        jupyterlab           0.30.6
        jupyterlab-launcher  0.6.0
        kiwisolver           1.0.1
        llvmlite             0.23.0
        Mako                 1.0.7
        Markdown             2.6.11
        MarkupSafe           1.0
        matplotlib           2.2.3
        mendeleev            0.4.3
        metakernel           0.20.14
        mistune              0.8.3
        mobilechelonian      0.5
        nbconvert            5.3.1
        nbformat             4.4.0
        networkx             2.1
        notebook             5.6.0
        nteract-on-jupyter   1.4.0
        numba                0.38.1
        numexpr              2.6.6
        numpy                1.15.0
        odesolver            1.0
        olefile              0.45.1
        packaging            17.1
        pamela               0.3.0
        pandas               0.23.4
        pandocfilters        1.4.2
        parso                0.3.1
        patsy                0.5.0
        pexpect              4.6.0
        pickleshare          0.7.4
        Pillow               5.2.0
        pip                  18.0
        plotly               3.1.1
        prometheus-client    0.3.0
        prompt-toolkit       1.0.15
        protobuf             3.6.0
        ptyprocess           0.6.0
        pyasn1               0.4.4
        pyasn1-modules       0.2.1
        pycosat              0.6.2
        pycparser            2.18
        pycurl               7.43.0.2
        pyfiglet             0.7.5
        Pygments             2.2.0
        pyOpenSSL            18.0.0
        pyparsing            2.2.0
        PySocks              1.6.8
        python-dateutil      2.7.3
        python-editor        1.0.3
        python-oauth2        1.0.1
        pytz                 2018.5
        PyWavelets           0.5.2
        PyYAML               3.12
        pyzmq                17.1.2
        qtconsole            4.4.0
        requests             2.19.1
        retrying             1.3.3
        ruamel-yaml          0.11.14
        scikit-image         0.14.0
        scikit-learn         0.19.2
        scipy                1.1.0
        seaborn              0.9.0
        Send2Trash           1.5.0
        service-identity     17.0.0
        setuptools           40.0.0
        simplegeneric        0.8.1
        six                  1.11.0
        SQLAlchemy           1.2.10
        statsmodels          0.9.0
        sympy                1.2
        tensorboard          1.9.0
        tensorflow           1.9.0
        termcolor            1.1.0
        terminado            0.8.1
        testpath             0.3.1
        toolz                0.9.0
        tornado              5.1
        traitlets            4.3.2
        Twisted              18.7.0
        txaio                18.7.1
        ujson                1.35
        urllib3              1.23
        vincent              0.4.4
        vpnotebook           0.1.3
        vpython              7.4.6
        wcwidth              0.1.7
        webencodings         0.5
        Werkzeug             0.14.1
        wheel                0.31.1
        widgetsnbextension   3.4.0
        xlrd                 1.1.0
        zope.interface       4.5.0

conda list:
        # packages in environment at /srv/conda:
        #
        absl-py                   0.4.0                      py_0    conda-forge
        alembic                   0.9.9                      py_0    conda-forge
        appdirs                   1.4.3                      py_1    conda-forge
        asn1crypto                0.24.0                   py36_2    conda-forge
        astor                     0.7.1                      py_0    conda-forge
        async_generator           1.10                       py_0    conda-forge
        attrs                     18.1.0                     py_1    conda-forge
        autobahn                  18.7.1                     py_0    conda-forge
        automat                   0.7.0                    py36_0    conda-forge
        backcall                  0.1.0                      py_0    conda-forge
        beautifulsoup4            4.6.3                    py36_0    conda-forge
        biopython                 1.72                     py36_0    conda-forge
        blas                      1.1                    openblas    conda-forge
        bleach                    2.1.3                      py_0    conda-forge
        bokeh                     0.13.0                   py36_0    conda-forge
        bzip2                     1.0.6                h470a237_2    conda-forge
        ca-certificates           2018.4.16                     0    conda-forge
        certifi                   2018.8.13                py36_0    conda-forge
        cffi                      1.11.5           py36h5e8e0c9_1    conda-forge
        chardet                   3.0.4                    py36_3    conda-forge
        cloudpickle               0.5.3                      py_0    conda-forge
        colorama                  0.3.9                      py_1    conda-forge
        conda                     4.3.30           py36h5d9f9f4_0    defaults
        conda-env                 2.6.0                h36134e3_1    defaults
        configurable-http-proxy   3.1.0                   node8_1    conda-forge
        constantly                15.1.0                     py_0    conda-forge
        cryptography              2.3.1            py36hdffb7b8_0    conda-forge
        cryptography-vectors      2.3.1                    py36_0    conda-forge
        cycler                    0.10.0                     py_1    conda-forge
        cython                    0.28.5           py36hfc679d8_0    conda-forge
        dask-core                 0.18.2                     py_0    conda-forge
        dbus                      1.13.0               h3a4f0e9_0    conda-forge
        decorator                 4.3.0                      py_0    conda-forge
        dill                      0.2.8.2                  py36_0    conda-forge
        entrypoints               0.2.3                    py36_1    conda-forge
        expat                     2.2.5                hfc679d8_1    conda-forge
        fastcache                 1.0.2            py36h470a237_1    conda-forge
        fontconfig                2.13.0               h65d0f4c_5    conda-forge
        freetype                  2.9.1                h6debe1e_0    conda-forge
        gast                      0.2.0                      py_0    conda-forge
        gettext                   0.19.8.1                      0    conda-forge
        glib                      2.55.0               h464dc38_2    conda-forge
        gmp                       6.1.2                hfc679d8_0    conda-forge
        gmpy2                     2.0.8                    py36_1    conda-forge
        grpcio                    1.12.1           py36hdbcaa40_0    defaults
        gst-plugins-base          1.12.5               hde13a9d_0    conda-forge
        gstreamer                 1.12.5               h61a6719_0    conda-forge
        h5py                      2.8.0            py36hb794570_1    conda-forge
        hdf5                      1.10.2               hc401514_1    conda-forge
        html5lib                  1.0.1                      py_0    conda-forge
        hyperlink                 17.3.1                     py_0    conda-forge
        icu                       58.2                 hfc679d8_0    conda-forge
        idna                      2.7                      py36_2    conda-forge
        imageio                   2.3.0                      py_1    conda-forge
        incremental               17.5.0                     py_0    conda-forge
        ipykernel                 4.8.2                    py36_0    conda-forge
        ipython                   6.5.0                    py36_0    conda-forge
        ipython_genutils          0.2.0                      py_1    conda-forge
        ipywidgets                7.4.0                      py_0    conda-forge
        jedi                      0.12.1                   py36_0    conda-forge
        jinja2                    2.10                       py_1    conda-forge
        jpeg                      9c                   h470a237_0    conda-forge
        jsonschema                2.6.0                    py36_1    conda-forge
        jupyter                   1.0.0                      py_1    conda-forge
        jupyter_client            5.2.3                      py_1    conda-forge
        jupyter_console           5.2.0                    py36_0    conda-forge
        jupyter_core              4.4.0                      py_0    conda-forge
        jupyterhub                0.9.2                    py36_0    conda-forge
        jupyterlab                0.30.6                   py36_0    conda-forge
        jupyterlab_launcher       0.6.0                    py36_0    conda-forge
        kiwisolver                1.0.1            py36h2d50403_2    conda-forge
        libcurl                   7.61.0               h1ad7b7a_0    defaults
        libedit                   3.1.20170329         haf1bffa_1    conda-forge
        libffi                    3.2.1                hfc679d8_4    conda-forge
        libgcc                    7.2.0                h69d50b8_2    conda-forge
        libgcc-ng                 7.2.0                hdf63c60_3    conda-forge
        libgfortran               3.0.0                         1    conda-forge
        libiconv                  1.15                 h470a237_2    conda-forge
        libpng                    1.6.35               ha92aebf_0    conda-forge
        libprotobuf               3.6.0                hd28b015_0    conda-forge
        libsodium                 1.0.16                        0    conda-forge
        libssh2                   1.8.0                h5b517e9_2    conda-forge
        libstdcxx-ng              7.2.0                hdf63c60_3    conda-forge
        libtiff                   4.0.9                he6b73bb_1    conda-forge
        libuuid                   2.32.1               h470a237_0    conda-forge
        libxcb                    1.13                 h470a237_2    conda-forge
        libxml2                   2.9.8                h422b904_3    conda-forge
        llvmlite                  0.23.0                   py36_1    conda-forge
        mako                      1.0.7                      py_1    conda-forge
        markdown                  2.6.11                     py_0    conda-forge
        markupsafe                1.0                      py36_0    conda-forge
        matplotlib                2.2.3            py36h8e2386c_0    conda-forge
        mendeleev                 0.4.3              pyh39e3cac_0    lmmentel
        metakernel                0.20.14                    py_0    conda-forge
        mistune                   0.8.3            py36h470a237_2    conda-forge
        mobilechelonian           0.5                       <pip>
        mpc                       1.1.0                         4    conda-forge
        mpfr                      3.1.5                         0    conda-forge
        mpmath                    1.0.0                      py_0    conda-forge
        nbconvert                 5.3.1                      py_1    conda-forge
        nbformat                  4.4.0                      py_1    conda-forge
        ncurses                   6.1                  hfc679d8_1    conda-forge
        networkx                  2.1                        py_1    conda-forge
        nodejs                    8.10.0                        0    conda-forge
        nomkl                     2.0                           0    defaults
        notebook                  5.6.0                    py36_0    conda-forge
        nteract-on-jupyter        1.4.0                     <pip>
        numba                     0.38.1                   py36_0    conda-forge
        numexpr                   2.6.6                    py36_0    conda-forge
        numpy                     1.15.0          py36_blas_openblashd3ea46f_200[blas_openblas]  conda-forge
        odesolver                 1.0                       <pip>
        olefile                   0.45.1                     py_1    conda-forge
        openblas                  0.2.20                        8    conda-forge
        openssl                   1.0.2o               h470a237_1    conda-forge
        packaging                 17.1                       py_0    conda-forge
        pamela                    0.3.0                    py36_0    conda-forge
        pandas                    0.23.4           py36hf8a1672_0    conda-forge
        pandoc                    2.2.2                         1    conda-forge
        pandocfilters             1.4.2                      py_1    conda-forge
        parso                     0.3.1                      py_0    conda-forge
        patsy                     0.5.0                      py_1    conda-forge
        pcre                      8.41                 h470a237_2    conda-forge
        pexpect                   4.6.0                    py36_0    conda-forge
        pickleshare               0.7.4                    py36_0    conda-forge
        pillow                    5.2.0            py36hc736899_1    conda-forge
        pip                       18.0                     py36_1    conda-forge
        plotly                    3.1.1                      py_0    conda-forge
        prometheus_client         0.3.0                      py_0    conda-forge
        prompt_toolkit            1.0.15                   py36_0    conda-forge
        protobuf                  3.6.0            py36hfc679d8_0    conda-forge
        pthread-stubs             0.4                  h470a237_1    conda-forge
        ptyprocess                0.6.0                    py36_0    conda-forge
        pyasn1                    0.4.4                      py_0    conda-forge
        pyasn1-modules            0.2.1                      py_0    conda-forge
        pycosat                   0.6.2            py36h1a0ea17_1    defaults
        pycparser                 2.18                       py_1    conda-forge
        pycurl                    7.43.0.2         py36hb7f436b_0    defaults
        pyfiglet                  0.7.5                    py36_0    conda-forge
        pygments                  2.2.0                      py_1    conda-forge
        pyopenssl                 18.0.0                   py36_0    conda-forge
        pyparsing                 2.2.0                      py_1    conda-forge
        pyqt                      5.6.0            py36h8210e8a_6    conda-forge
        pysocks                   1.6.8                    py36_1    conda-forge
        python                    3.6.6                h5001a0f_0    conda-forge
        python-dateutil           2.7.3                      py_0    conda-forge
        python-editor             1.0.3                    py36_0    conda-forge
        python-oauth2             1.0.1                    py36_0    conda-forge
        pytz                      2018.5                     py_0    conda-forge
        pywavelets                0.5.2            py36h7eb728f_2    conda-forge
        pyyaml                    3.12                     py36_1    conda-forge
        pyzmq                     17.1.2           py36hae99301_0    conda-forge
        qt                        5.6.2                hf70d934_9    conda-forge
        qtconsole                 4.4.0            py36h8a2030e_0    conda-forge
        readline                  7.0                  haf1bffa_1    conda-forge
        requests                  2.19.1                   py36_1    conda-forge
        retrying                  1.3.3                      py_2    conda-forge
        ruamel_yaml               0.11.14          py36ha2fb22d_2    defaults
        scikit-image              0.14.0           py36hfc679d8_1    conda-forge
        scikit-learn              0.19.2          py36_blas_openblasha84fab4_201[blas_openblas]  conda-forge
        scipy                     1.1.0           py36_blas_openblash7943236_201[blas_openblas]  conda-forge
        seaborn                   0.9.0                      py_0    conda-forge
        send2trash                1.5.0                      py_0    conda-forge
        service_identity          17.0.0                     py_0    conda-forge
        setuptools                40.0.0                   py36_1    conda-forge
        simplegeneric             0.8.1                      py_1    conda-forge
        sip                       4.18                     py36_1    conda-forge
        six                       1.11.0                   py36_1    conda-forge
        sqlalchemy                1.2.10           py36h470a237_1    conda-forge
        sqlite                    3.24.0               h2f33b56_0    conda-forge
        statsmodels               0.9.0                    py36_0    conda-forge
        sympy                     1.2                      py36_0    conda-forge
        tensorboard               1.9.0                    py36_0    conda-forge
        tensorflow                1.9.0                    py36_0    conda-forge
        termcolor                 1.1.0                      py_2    conda-forge
        terminado                 0.8.1                    py36_0    conda-forge
        testpath                  0.3.1                    py36_0    conda-forge
        tk                        8.6.8                         0    conda-forge
        toolz                     0.9.0                      py_0    conda-forge
        tornado                   5.1              py36h470a237_1    conda-forge
        traitlets                 4.3.2                    py36_0    conda-forge
        twisted                   18.7.0           py36h14c3975_1    defaults
        txaio                     18.7.1                     py_0    conda-forge
        ujson                     1.35             py36h470a237_1    conda-forge
        urllib3                   1.23                     py36_1    conda-forge
        vincent                   0.4.4                      py_1    conda-forge
        vpnotebook                0.1.3                    py36_1    vpython
        vpython                   7.4.6                    py36_0    vpython
        wcwidth                   0.1.7                      py_1    conda-forge
        webencodings              0.5                      py36_0    conda-forge
        werkzeug                  0.14.1                     py_0    conda-forge
        wheel                     0.31.1                   py36_1    conda-forge
        widgetsnbextension        3.4.0                    py36_0    conda-forge
        xlrd                      1.1.0                      py_2    conda-forge
        xorg-libxau               1.0.8                h470a237_6    conda-forge
        xorg-libxdmcp             1.1.2                h470a237_7    conda-forge
        xz                        5.2.4                h470a237_1    conda-forge
        yaml                      0.1.7                h470a237_1    conda-forge
        zeromq                    4.2.5                hfc679d8_5    conda-forge
        zlib                      1.2.11               h470a237_3    conda-forge
        zope.interface            4.5.0            py36h470a237_0    conda-forge
@KGHustad
Copy link
Author

KGHustad commented Sep 10, 2018

KGHustad added a commit to KGHustad/notebook that referenced this issue Sep 10, 2018
The base URL was only prefixed to the breadcrumbs following the root.
See jupyterhub/jupyterhub#2137 for problem
description.
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