Purpose:
Resolves DevOPs ticket 367440 Letter Distribution Bug
Change Request: CAWIS Production: Fix letter distribution bug
Summary:
Pressing the “Send Preview” button for Letter distributions in triggers the error message “The fax template for this distribution exceeds the maximum 21 lines limit.”
Minimum Steps to reproduce the issue
(see also the screenshot provided at the end of this document)
Log into CAWIS External or CAWIS External by selecting “TC Login” from the left-hand menu.
Select “Mailing” from the left-hand menu..
Select “Build-list from the left-hand menu.”.
Select “Letter” from the “Document Type” drop-down.
Select “Two documents” from the “Number of Documents” drop-down.
Enter “CF-2022-45” as the “Publication Number”
Number of Documents can also be set to “One Document” The Number of Documents selected in step 4 and the name of the document need to correspond to the file(s) available to test with.
The locations of the document folders for development and acceptance are provided in the confluence pages, in the “UNC column of the Environment Access information for CAWIS External and CAWIS Internal.
Press “Verify”*
Pressing verify when testing on localhost results in a Matching Documents not found error. I have started to investigate: see 370279 localhost ONLY - investigate Matching documents do not exist
In the Distribution Preview section verify that EMAIL is set to your own EMAIL address.
Enter any text into the English and French subject and “Attention” required fields.
Press “Send Preview”.
Actual Behaviour: The error “The fax template for this distribution exceeds the maximum 21 lines limit.” is displayed.
Expected behaviour: pressing the “Send Preview” button directs the user to a confirmation page similar to the one shown below.
Solution
The issue was caused by "CheckFaxTemplateLine" in D_L_a.aspx.
The business no longer sends faxes.
The issue is solved by commenting out the following code:
"CheckFaxTemplateLine" in D_L_a.aspx, D_L_a.aspx.
The function
CheckFaxTemplateValidity(
) in distribution.vb. This function contains the 21 line limit.
Publishing:
Very Important about publishing the packages for CAWIS Internal and External. Publish the package for CAWIS Internal using the “Acceptance Profile”. Publish the package for CAWIS External using the “Staging Profile”. Using the wrong profile will cause admin functionality to be exposed to unauthorized users. |
---|
Testing:
Note: CAWIS MDM has to be running correctly.
See also: Confluence document: CAWIS MDM
DevOps ticket: 370898 MDM - verify that code in the repos matches what is currently deployed to production
Developer testing on development and acceptance
I successfully sent distributions for the “Letter”, “AD” and “CASA” document types.
The emails I received were correct.
Checked the MDM output log for errors.
Client testing on acceptance.
The client has tested the “Letter” distribution type.
Web Config:
verified that no individual addresses are used in the web.config for CAWIS Internal and CAWIS External.
I have pushed an updated version of the web.config for localhost to the longform branch. The associated commit is linked to the Letter Bug in DevOps.
I checked that the web.configs on development and acceptance are not set to send errors to individual email addresses.
The install instructions for CRQ4466 include steps for CAWIS External and Internal, to update
the DateAppLast Modified value to reflect the date the solution is implemented on production.
Other
The install instructions specify to put up the “offline page” while the deployment to production is in progress.
Screenshot of issue reported by the client:
Add Comment