Skip to content

Bug: wrong question asked when browsing a complete exercice URL #488

@erikmd

Description

@erikmd

Related project scope(s): exercise UI

Bug description

  • As a user
  • When I am disconnected from a learn-ocaml instance
  • And I paste a complete exercice URL such as https://localhost:8080/exercises/demo/
  • Then I unexpectedly see the question Enter the secret (to create a new account) instead of a more sensible question such as Enter your token.

To reproduce

Steps to reproduce the behavior:

  1. Add a file demo-repository/server_config.json containing:
    {
      "secret": "MDP"
    }
    
  2. Run a learn-ocaml instance, e.g.
    cd ……/learn-ocaml && learn-ocaml build serve --repo=demo-repository
  3. Open a fresh browser instance (e.g., private browsing mode)
  4. Go to https://localhost:8080/exercises/demo/
  5. Then notice the question Enter the secret

Expected behavior

  1. Get the question Enter your token

Optional screenshots

2022-05-24_11-42-19_Screenshot_Secret

Current configuration

  • OS name (and version): N/A
  • Browser name (and version): N/A
  • learn-ocaml --version: 0.14.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions