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

Programming exercises: Download Repository button broken for auxiliary repository on localCI #8605

Open
florian-glombik opened this issue May 15, 2024 · 3 comments · May be fixed by #8826
Open
Assignees
Labels
bug component:Programming server Pull requests that update Java code. (Added Automatically!)

Comments

@florian-glombik
Copy link
Contributor

florian-glombik commented May 15, 2024

Describe the bug

When creating a new programming exercise with an auxiliary repository, the download repository functionality does not work (the repository does not seem to be created by default by localCI)

To Reproduce

  • 1 instructor
  1. Create a new programming exercise
  2. Edit the programming exercise, create an auxiliary repository
  3. Try to download the auxiliary repository
  4. See that you will receive an error message in the network tab but not an alert in the client
  5. See that no auxiliary repository was created

Expected behavior

  1. An alert should be displayed for the error in the network tab

(2. The download should work for localCI - maybe it would be possible to create / delete the auxiliary repository according to the changes in the UI?)

Screenshots

auxRepoDownloadButtonDoesNotWork

Which version of Artemis are you seeing the problem on?

7.1.0

What browsers are you seeing the problem on?

Chrome

Additional context

No response

Relevant log output

{
    "headers": {
        "normalizedNames": {},
        "lazyUpdate": null
    },
    "status": 500,
    "statusText": "Internal Server Error",
    "url": "http://localhost:9000/api/programming-exercises/153/export-instructor-auxiliary-repository/19",
    "ok": false,
    "name": "HttpErrorResponse",
    "message": "Http failure response for http://localhost:9000/api/programming-exercises/153/export-instructor-auxiliary-repository/19: 500 Internal Server Error",
    "error": {}
}
@florian-glombik florian-glombik added bug server Pull requests that update Java code. (Added Automatically!) component:Programming labels May 15, 2024
@iyannsch iyannsch self-assigned this Jun 3, 2024
@iyannsch
Copy link
Contributor

@florian-glombik I tested out the auxiliary repo download for both an admin and an instructor and could not verify your issue. It worked in both times.

My application-local.yml does contain the following, which might help you fix the problem locally.

version-control:
local-vcs-repo-path: ./../local-vcs-repos
url: http://localhost:8080
ssh-template-clone-url: ssh://git@localhost:7921/

Let me know if I can investigate and help solve this problem any further :)

@florian-glombik
Copy link
Contributor Author

florian-glombik commented Jun 11, 2024

@iyannsch I have just tested the issue on ts1 (with feature/learning-paths/redesigned-competency-graph-ui being deployed) and do still run into the described issue

@florian-glombik
Copy link
Contributor Author

@iyannsch I refined the steps to reproduce, this only seems to occur when editing a programming exercise and adding an auxiliary repository there.

@florian-glombik florian-glombik added client Pull requests that update TypeScript code. (Added Automatically!) server Pull requests that update Java code. (Added Automatically!) and removed server Pull requests that update Java code. (Added Automatically!) client Pull requests that update TypeScript code. (Added Automatically!) labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component:Programming server Pull requests that update Java code. (Added Automatically!)
Projects
None yet
2 participants