-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Fix image uploading to work on safari / iOS #2913
Comments
Sir in what section it seems to be failing? asking because i checked on user profile edit page , upload image seems to working fine there through safari. |
This is for the reporting an issue page only on mobile |
okay , the email needs to be verified to submit an issue, but I am having difficulty tracking down the email verification feature... |
Email does not have to be verified because users can submit issues anonymously The issue is posted, but the image is not attached |
Understood, although when a signed in user or even the signed out user currently tries to report a bug , it gives the email not verified error message or redirect to issues page. |
/assign |
Hello @krrish-sehgal! You've been assigned to OWASP-BLT/BLT. You have 24 hours to complete a pull request. To place a bid and potentially earn some BCH, type /bid [amount in BCH] [BCH address]. |
@DonnieBLT sir, I have been working on this issue and have some analysis and, to proceed further, I wanted to take some help. So first of all it seems like the problem is not that image is not uploading from safari or ios because even if we try to upload through chrome, the image sometimes renders and sometimes doesnt. On analysing the error in the backend , which is " there's a race condition or deadlock being produced between 2 queries trying to read/write the database. First(highly likely) before error is produced: DEBUG:django.db.backends:(0.000) SELECT "website_ip"."id", "website_ip"."address", "website_ip"."user", "website_ip"."issuenumber", "website_ip"."created", "website_ip"."agent", "website_ip"."count", "website_ip"."path", "website_ip"."method", "website_ip"."referer" FROM "website_ip" WHERE "website_ip"."id" = 1 LIMIT 21; args=(1,); alias=default Internal Server Error: /media/screenshots/bruger.jpe8fc54280-dde8-4da8-a116-b1436c.jpeg so maybe the race condition is between these two but i am unable to locate where the query is getting triggered from. Second (Less likely) here image.url tries to access the database several times, but i checked with one at a time as well... the image was randomly rendering and sometimes not. Do you have any comments on the direction i am proceeding with or anything else you would like to mention? |
No description provided.
The text was updated successfully, but these errors were encountered: