Skip to content

Missing token when cloning exercise #9770

@carlobortolan

Description

@carlobortolan

Describe the bug

When starting an exercise and selecting Token as the cloning method, the shown URL is missing the actual token.
Currently, the URL looks like this: https://<tum-id>@artemis.tum.de/git/<repository>.git,
but it should look somewhat like: https://<tum-id>:<token>@artemis.cit.tum.de/git/<repository>.git.

To Reproduce

  1. Open an exercise (e.g., https://artemis.ase.in.tum.de/courses/377/exercises/15004)
  2. Click on the Code button
  3. Select Token as cloning method
  4. See the wrong git URL, which is missing the token

Expected behavior

The correct URL should be returned when selecting Token as the cloning method.
E.g., https://ge42abc:<insert-token>@artemis.cit.tum.de/git/PSE24W02E04/pse24w02e04-ge42abc.git.

Screenshots

See this screenshot:

image

Note

I removed my tum-id in the screenshot. The full URL looks like this: https://<my-tum-id>@artemis.tum.de/git/PSE24W03E04/pse24w03e04-<my-tum-id>.git

Which version of Artemis are you seeing the problem on?

7.7.0

What browsers are you seeing the problem on?

Microsoft Edge, Firefox, Other (specify in "Additional context")

Additional context

Tested with the following browsers:

  • Mozilla Firefox for Manjaro Linux, 131.0.3 (64-bit)
  • Chromium Version 130.0.6723.116 (Official Build) Arch Linux (64-bit)
  • Microsoft Edge Version 130.0.2849.80 (Official Build) Win11 (64-bit)

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcorePull requests that affect the corresponding moduleexercisePull requests that affect the corresponding modulelecturePull requests that affect the corresponding moduleprogrammingPull requests that affect the corresponding moduletextPull requests that affect the corresponding module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions