Defect HC-4341

Cannot add custom BCC field to email

Software

Customer case Applies to Corrected in
CS0128766 V8.0.4.23 9.0.1.14

Observed behavior

When emails are sent through the messaging service, a StringIndexOutOfBoundException is thrown in some cases.

Expected behavior

There should be no exception in the log and the emails should be sent.

Resolution

When <EditableProperty Admin="BCC" NLSupport="true"> is set in wc-server.xml, a StringIndexOutOfBoundException is thrown when an empty string is encountered.

The code was corrected to properly deal with empty strings.