flexion / ef-cms

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

BUG: Secondary document too long + service email generated when efiling fails #8187

Closed JessicaMarine closed 3 years ago

JessicaMarine commented 3 years ago

Describe the Bug The IRS is getting the "Uh oh" error when trying to eFile a document in 6944-11. The eFiling was not successful, but a service email was generated. This is probably an order of operations issue.

[Note: Looking into why the PDF couldn't be uploaded -- determined failure was caused by title being too long]

Business Impact/Reason for Severity

In which environment did you see this bug? Prod

Who were you logged in as? Reported by IRS

What were you doing when you discovered this bug? (Using the application, demoing, smoke tests, testing other functionality, etc.) IRS trying to file a document

To Reproduce Steps to reproduce the behavior:

  1. Log in as an IRS user
  2. Go to 6944-11
  3. Try to eFile a Motion for Leave to File Reply to Response to Order that resp. motion is granted, and petr. by 4/12/21, shall show cause why facts and evidence set forth in resp. proposed eighth stipulation of facts, marked exhibit A, and ninth Stipulation of facts, marked exhibit B, should not be deemed accepted as established for the purpose of this case. Exhibits A and B to resp. motion for order to show cause why proposed facts and evidence should not be accepted as established pursuant to rule 91(f) are hereby sealed until further direction of the Court. The duplicate filing of resp. motion for order to show cause why proposed facts and evidence should not be accepted as established pursuant to Rule 91(f) at index number 735 is stricken from the record.
  4. Secondary (lodged) Document is: Reply to Response to Order that resp. motion is granted, and petr. by 4/12/21, shall show cause why facts and evidence set forth in resp. proposed eighth stipulation of facts, marked exhibit A, and ninth Stipulation of facts, marked exhibit B, should not be deemed accepted as established for the purpose of this case. Exhibits A and B to resp. motion for order to show cause why proposed facts and evidence should not be accepted as established pursuant to rule 91(f) are hereby sealed until further direction of the Court. The duplicate filing of resp. motion for order to show cause why proposed facts and evidence should not be accepted as established pursuant to Rule 91(f) at index number 735 is stricken from the record.
  5. Select "No Objections"
  6. Try to submit -- get Uh Oh error
  7. Note that a service email is sent even though the eFiling failed.

Expected Behavior

Actual Behavior

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

The Case entity was invalid. {"documentTitle":"'docketEntries[750].secondaryDocument.documentTitle' length must be less than or equal to 500 characters long"}

Process for Logging a Bug:

Severity Definition:

Definition of Done (Updated 4-14-21)

Product Owner

Engineering

matthopson commented 3 years ago

Ahh, this makes so much more sense. It's the secondary document that's the key. Thank you!

matthopson commented 3 years ago

PR to prevent making it to the service step when there's a validation error. https://github.com/ustaxcourt/ef-cms/pull/1128

Another question somewhat related to this: We set a limit on the documentTitle for a secondaryDocument of 500 here: https://github.com/flexion/ef-cms/blob/develop/shared/src/business/entities/EntityValidationConstants.js#L271

But we also have a validation constant defined for DOCUMENT_TITLE at 3,000 characters here: https://github.com/flexion/ef-cms/blob/develop/shared/src/utilities/JoiValidationConstants.js#L23

Should we use this constant (3,000 character doc title) for the secondary document's title as well?

JessicaMarine commented 3 years ago

Should we use this constant (3,000 character doc title) for the secondary document's title as well?

Yes.