-
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
[HOLD for payment 2022-09-15] [$500] Feature Request - Attachment- Unable to cancel the requested password for PDF file #8595
Comments
Triggered auto assignment to @aldo-expensify ( |
Added password-protected pdf file to the issue description. Note that his problem also is there as soon as you are uploading the file because we have a preview at that stage too. |
Triggered auto assignment to @kadiealexander ( |
@aldo-expensify We logged a separate issue for Failed the PDF file #8593 |
Posted to Upwork! External: https://www.upwork.com/jobs/~017391a0b1899e031e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @tgolen ( |
I think I reported this issue two weeks back https://expensify.slack.com/archives/C01GTK53T8Q/p1649156147168719. |
Proposal
Apply to
By applying this solution we are able to resolve issue #8593 as well. DemomWebmWeb.mp4Webweb.mp4 |
@phivh thank you for the proposal! I am mostly on board with that, but I have a few requests:
|
@tgolen 🚀 fast here. |
|
I too feel promptForPassword(callback, reason) {
const {PasswordResponses} = pdfjs;
let password;
if (reason == PasswordResponses.NEED_PASSWORD) {
password = prompt('Enter the password to open this PDF file.');
} else if (reason == PasswordResponses.INCORRECT_PASSWORD) {
password = prompt('Invalid password. Please try again.');
}
if (!password) {
return this.props.onCancel();
}
callback(password);
} cc: @tgolen |
OK, thanks! I agree with @Santhosh-Sellavel that it looks much better like that.
I'm not sure I'm following this. Is it imported from react-pdf like this?
I think anything being imported from a module should always be at the top of the file and never inline.
Hm, I guess that works since this is desktop/web, but are there any alternatives to using it? It's just such an ugly UX. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
In Progress.... |
This was just merged today! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.97-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-09-15. 🎊 |
Reassigning as I'm ooo for the next 9 days. |
Triggered auto assignment to @Christinadobrzyn ( |
Issue not reproducible during KI retests. (First week) |
PR in product with no regressions for 7 days - paying @frenkield $1500 based on the convo here. Since this original Upwork job automatically closed. I made a new job posting and hired @parasharrajat for payment. Internal posting - https://www.upwork.com/ab/applicants/1570596159667929088/job-details |
Hey @super-soft-dev - thanks for reaching out! This project is complete but feel free to reach out to us at contributors@expensify.com with a link to your Upwork profile and our team can add you to Slack to help with open jobs. |
ok Thanks |
@parasharrajat I just paid out this job $500 for the original amount and $1500 as the bonus. Please feel free to reach out with any questions! Thank you! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
You can use this protected PDF file to test: password-protected.pdf
The password is
1234
Expected Result:
Able to cancel the requested password for PDF file
Actual Result:
Unable to cancel the requested password for PDF file
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.54.0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): applausetester+0901abb@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Image.from.iOS.14.MP4
Expensify/Expensify Issue URL:
Issue reported by: Applause @parasharrajat
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: