Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Purpose:

Resolves DevOPs ticket 367440 Letter Distribution Bug

Change Request: CRQ 4466: 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)

  1. Log into CAWIS External or CAWIS External by selecting “TC Login” from the left-hand menu.

  2. Select “Mailing” from the left-hand menu..

  3. Select “Build-list from the left-hand menu.”.

    1. Select “Letter” from the “Document Type” drop-down.

  4. Select “Two documents” from the “Number of Documents” drop-down.

  5. 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.

  6. Press “Verify”*

    1. 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

  7. In the Distribution Preview section verify that EMAIL is set to your own EMAIL address.

  8. Enter any text into the English and French subject and “Attention” required fields.

  9. 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.

  • 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:

image-20240829-114646.pngImage Added