ls1intum / Artemis

Artemis - Interactive Learning with Automated Feedback
https://docs.artemis.cit.tum.de
MIT License
486 stars 288 forks source link

Programming exercises: Repo access token not used in clone dialogue when in the repository view #9380

Open b-fein opened 2 hours ago

b-fein commented 2 hours ago

Describe the bug

When on the main page for an exercise in the student view, the </> Code button shows the token option: image

When in the repository view for the same exercise, the button shows a warning that an account-token should be created: image

To Reproduce

Artemis system with token-based VCS cloning enabled.

As student:

  1. Use the clone dialogue on the dashboard page. The token is part of the URL.
  2. Use the arrow in the clone dialogue to open the repo viewer.
  3. Then use the clone dialogue on this page. The token is not part of the URL.

Expected behavior

The clone button on the repository view page has the same behaviour as the one on the exercise page and uses the participation-specific token.

Screenshots

See above.

Which version of Artemis are you seeing the problem on?

7.5.1

What browsers are you seeing the problem on?

Firefox

Additional context

Relevant log output

No response

b-fein commented 2 hours ago

/cc @SimonEntholzer