-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] PDF - The unlocked PDF file becomes blocked after scrolling right and left #32213
Comments
Triggered auto assignment to @mallenexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01ddb14a6e24811e4d |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.PDF - The unlocked PDF file becomes blocked after scrolling right and left What is the root cause of that problem?The main problem related to windowSize which we use for Carousel We are currently using If we click on a protected PDF more than 2 or left or right App/src/components/Attachments/AttachmentCarousel/index.js Lines 187 to 215 in 089ddf4
What changes do you think we should make in order to solve the problem?We can update windowSize value and make it bigger
What alternative solutions did you explore? (Optional)As an alternative
We need to create a new state and create new function
Then we need pass password and savePassword
App/src/components/Attachments/AttachmentCarousel/index.js Lines 151 to 155 in d9bfb27
We need to create a new state to store an intermediate password
App/src/components/PDFView/index.js Lines 38 to 46 in d9bfb27
When we successfully open a PDF file and at this time we have a non-empty password state and save it
App/src/components/PDFView/index.js Lines 87 to 104 in d9bfb27
If we have a password in the main store, we enter it during initialization
App/src/components/PDFView/index.js Lines 186 to 194 in d9bfb27
Here we save the password in an intermediate storage(NOT MAIN)
App/src/components/PDFView/index.js Lines 202 to 204 in d9bfb27
|
I can't reproduce it on dev. |
|
What about my alternative solution?) |
Please re-state the problem that we are trying to solve in this issue. PDF - The unlocked PDF file becomes blocked after scrolling right and left What is the root cause of that problem? In the PDF 'render' function in ~/components/PDFView/index.js will check if the PDF is password protected, and then the method will call initiatePasswordChallenge if it is password protected. The method 'initiatePasswordChallenge' will reset the state 'shouldRequestPassword' and the pdf will be hidden until password is entered. here
What changes do you think we should make in order to solve the problem? We can check the state 'shouldRequestPassword' before initiating the password challenge. This would avoid the 'initiatePasswordChallenge' method that will result in the password being needed again.
What alternative solutions did you explore? I might have overlooked that the 'shouldRequestPassword' state is set to false initially, and given the PDF is password-protected and it can't be used to check if the password has been verified for the first authentication. In that case, we could also add a new state 'passwordVerified'. We can set this state to true when the password is needed and already verified. We could use this case to skip the password checks if the password has already been verified. |
@mallenexpensify, @aimane-chnaif Huh... This is 4 days overdue. Who can take care of this? |
@aimane-chnaif , can you please review the above? Thx |
Thanks for the proposals |
@mallenexpensify as user perspective, do you think this is worth fixing? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
This seems like a pretty extreme edge case and, starting next week we're going to be prioritizing fixing bugs on our roadmap, so I have strong feeling we'll want to close this. I'm going to remove |
@mallenexpensify, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@mallenexpensify @aimane-chnaif this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@mallenexpensify, @aimane-chnaif Eep! 4 days overdue now. Issues have feelings too... |
Closing for now, per our focus on roadmap-related issues |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.5-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Password protected PDF file is not locked
Actual Result:
I can see the password protected PDF file when Enter the password, Click on the left nav arrow and Click on the right nav arrow. But when I click on the nav arrow 3 times (you need to have 3 attachments before that PDF file) and go back to the previous PDF - it is locked
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6294945_1701280606899.I_can_see_the_password_protected_PDF_file.mp4
Password_protected Test12345 (1).pdf
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: