Skip to content

Still can use Download.. when exec code-server with --disable-file-downloads #7659

@poiu144

Description

@poiu144

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: windows
  • Remote OS: ubuntu24.04
  • Remote Architecture: amd64
  • code-server --version: 4.99.2

Steps to Reproduce

1.Install code-server_4.99.2_amd64.deb to local (wsl)
2.Put it in dockerfiles and run command

COPY code-server_4.99.2_amd64.deb /tmp/
RUN dpkg -i /tmp/code-server_4.99.2_amd64.deb && \
    rm /tmp/code-server_4.99.2_amd64.deb 
RUN pip install --no-cache-dir -i \
    jupyter \
    jupyterlab==4.5.0 \
    ipykernel \
    jupyter-server-proxy \
    jupyter-vscode-proxy 
  1. Run the docker image with
code-server --bind-addr 0.0.0.0:$CODESERVER_PORT --auth=none --disable-telemetry --disable-update-check --disable-file-downloads
jupyter lab --ip=0.0.0.0 --port=$JUPYTER_PORT --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password='' --ServerApp.trust_xheaders=True --NotebookApp.base_url=$base_url --ServerApp.iopub_msg_rate_limit=10000.0 --ServerApp.rate_limit_window=5.0

Expected

It supposed that user can't see 'Download..' when right-click on the file

Actual

It was still there and worked.

Screenshot/Video

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions