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

Solution files are overwritten #281

Open
RomanLangrehr opened this issue Nov 2, 2017 · 6 comments
Open

Solution files are overwritten #281

RomanLangrehr opened this issue Nov 2, 2017 · 6 comments

Comments

@RomanLangrehr
Copy link

I experienced the following issue: When a user uploads two files for the same task and I annotate (as tutor) only one of them in the attestation page, the untouched file gets overwritten with content of the edited file, too.

I'm not sure if this is important, but I first edited both files, saved my work and later I edited one of the files again and then this issue appeared.

@ifrh
Copy link
Contributor

ifrh commented Jul 11, 2018

Hi,

At my Praktomat installation, we use our AutoAttestChecker (pull request is #264 ) - so no human interation happens to create attestations for student solutions. We don't have any tutor as Praktomat user.
Could you please give more details?
Can you annotate while upload time is not over?
Do you annotate after or befor "run all checker"?

Best regards

@ifrh
Copy link
Contributor

ifrh commented Apr 10, 2021

I think your situation is unrelated to a "resubmit" bug ( issue #232 and its unmerged fix in pullrequest #266 ) : Since you open that issue about four years ago: Is it a current problem, too ?

@physikerwelt
Copy link
Contributor

This bug is still present!

@ifrh
Copy link
Contributor

ifrh commented Nov 23, 2021

Given a student uploads two files in one solution, and a tutor edit both files. That "comment" is saved. But if tutor comment only one file again, than both comented files have identical content.

In "edit_attestation" https://github.com/KITPraktomatTeam/Praktomat/blob/master/src/attestation/views.py#L343
incances of AnnotatedFileFormSet are used which depends on AnnotatedFileForm. In AnnotatedFileForm there is defined solution_file as IntegerField, see https://github.com/KITPraktomatTeam/Praktomat/blob/master/src/attestation/forms.py#L40

I do not get it. Why it is not a Textfield or a FieleField ?

@ifrh
Copy link
Contributor

ifrh commented Nov 26, 2021

at our side problem with overwritten annotated files were gone after

git submodule sync --recursive
git submodule update --init --recursive

@ifrh
Copy link
Contributor

ifrh commented Jan 22, 2022

at our side problem with overwritten annotated files were gone after

git submodule sync --recursive
git submodule update --init --recursive

Perhaps the reason was a bug inside a submodule ...

I vote for closing this issue (and reopen it, if the problem returns).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants