flexion / ef-cms

An Electronic Filing / Case Management System.
23 stars 10 forks source link

BUG: ".PDF" file extensions are not recognized as PDF files, resulting in a PDF upload error. #10516

Closed ttlenard closed 1 month ago

ttlenard commented 1 month ago

Describe the Bug A clear and concise description of what the bug is. We received two helpdesk tickets where users reported that they were getting the "The file you are attempting to upload is not a PDF", when in fact, their file WAS a PDF. After troubleshooting, we found that the problem was that the file extension was in all capital letters (.PDF). After having the user rename their file and put the extension in lower case letters, the document uploaded just fine.

Business Impact/Reason for Severity Med

In which environment did you see this bug? Prod, Test

Who were you logged in as? Any DAWSON user that uploads a document

What were you doing when you discovered this bug? (Using the application, demoing, smoke tests, testing other functionality, etc.) This was reported to us via DAWSON Support helpdesk

To Reproduce Steps to reproduce the behavior:

  1. As a private practitioner, navigate to any place in DAWSON where you will upload a document
  2. Upload a PDF document that has all capital letters in the file extension (.PDF)
  3. Receive an error message that the file is not a pdf
  4. Next, update the file extension so that it is all lower case
  5. Re-attempt to upload it
  6. It will upload just fine

Expected Behavior A clear and concise description of what you expected to happen. File extensions shouldn't be case sensitive

Actual Behavior A clear and concise description of what actually happened. File extension is case sensitive and caused an error when a user attempted to upload a PDF file.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Cause of Bug, If Known

Process for Logging a Bug:

Severity Definition:

Definition of Ready for Bugs(Created 10-4-21)

Definition used: A failure or flaw in the system which produces an incorrect or undesired result that deviates from the expected result or behavior. (Note: Expected results are use cases that have been documented in past user stories as acceptance criteria and test cases, and do not include strange behavior unrelated to use cases.)

The following criteria must be met in order for the development team to begin work on the bug.

The bug must:

Process: If the unexpected results are new use cases that have been identified, but not yet built, new acceptance criteria and test cases should be captured in a new user story and prioritized by the product owner.

If the Court is not able to reproduce the bug, add the “Unable to reproduce” tag. This will provide visibility into the type of support that may be needed by the Court. In the event that the Court cannot reproduce the bug, the Court will work with Flexion to communicate what type of troubleshooting help may be needed.

Definition of Done (Updated 4-14-21)

Product Owner

Engineering