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

LocalStorage persistence does not work with Docker deployment #5244

Open
MrExplode opened this issue Oct 21, 2024 · 0 comments
Open

LocalStorage persistence does not work with Docker deployment #5244

MrExplode opened this issue Oct 21, 2024 · 0 comments
Labels
docker Pull requests that update Docker code type: bug

Comments

@MrExplode
Copy link

Q&A

  • OS: Windows 11
  • Browser: Firefox, Thorium (chromium fork)
  • Version: FF: 131.0.3, Thorium: 126.0.6478.231
  • Method of installation: Docker
  • Swagger-Editor version: v5 latest
  • Swagger/OpenAPI version: OpenAPI 3.1

Content & configuration

Example Swagger/OpenAPI definition:
Petstore example, or anything else, does not matter to the subject of this issue.

Swagger-Editor configuration options:
No editor configuration possible through Docker deployment.

Docker command:

sudo docker run --rm -p 8080:8080 swaggerapi/swagger-editor:next-v5-unprivileged

Describe the bug you're encountering

As said in the title, the local storage does not store the editor content, gets overwritten with {} on every load.

To reproduce...

Steps to reproduce the behavior:

  1. Start an editor instance with Docker
  2. Open the editor
  3. Edit anything, or load an example
  4. Close the tab
  5. Open the editor
  6. The editor content is erased.

Expected behavior

Editor content is persisted with local storage.

Screenshots

demonstration video

The video is recorded on an instance hosted behind a reverse proxy, however this does not effects the issue, as the behavior remains the same with a locally ran instance started by docker run.

@ponelat ponelat added type: bug docker Pull requests that update Docker code labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Pull requests that update Docker code type: bug
Projects
None yet
Development

No branches or pull requests

2 participants