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

Error after upload hashfile #119

Open
MarianoITalino opened this issue Sep 21, 2023 · 3 comments
Open

Error after upload hashfile #119

MarianoITalino opened this issue Sep 21, 2023 · 3 comments

Comments

@MarianoITalino
Copy link

Hi,
I launched the latest version of Hashview. An error occurs when uploading a file with hashes.

werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand. KeyError: 'hashfile_id'

[ screen: https://ibb.co/Nrg6mvh ]

What could be the reason ?

@i128
Copy link
Contributor

i128 commented Sep 21, 2023

If you navigate to:

https://192.168.120.20:8443/jobs/6/assigned_hashfile/

There should be two tabs, [New Hashfile] and [Existing Hashfile].
image

If you clicked, [Existing Hashfile] and had nothing selected in the drop down menu and clicked [next] I think you'll end up in the code block where that error is occurring. Does this track with what you were doing?

If you go back to the same url and click [Existing Hashfile], do you see the file you uploaded?

@MarianoITalino
Copy link
Author

I create new Job.
New Job-> (Hash File format) -> (Hash Type) -> (Hash File Content) - > File Upload -> Browse file (hash.txt) -> Next -> Error

I just saw that the owner of the file was root. However, the file had a Read option for group and everyone. Strange. I changed it to the user who opened the browser and it worked.

I'm very sorry. My mistake.

@i128
Copy link
Contributor

i128 commented Sep 21, 2023

that file ownership is interesting, i've not seen that before. But glad its resolved.

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

2 participants