Workflow - HTML decoding of parameters to be used in formulas #5002

Open
opened 2026-02-20 16:27:42 -05:00 by deekerman · 0 comments
Owner

Originally created by @SinergiaCRM on GitHub (Apr 21, 2023).

Issue

When creating a workflow that performs an action on calculated fields with functions such as substring, length, uppercase or replace, some special characters (such as á,à,ä,ñ) are miscoded.

Expected Behavior

Correct encoding of special characters is expected.

Actual Behavior

For example, when passing montaña to the uppercase function the result isMONTAÑA(Ñ is not an HTML entity, the correct one for Ñ is Ñ). Using the length function in this same word calculates 14 instead of the expected 7. This does not happen with lowercase because MONTAÑA becomes MONTAÑA and then montaña which in this case can be reconverted to montaña.

Steps to Reproduce

1.Create different workflows that use the action of calculated fields with functions such as length, or uppercase.
2.Create a record on which the workflow acts that contains special characters such as á,à,ä,ñ.
3.Check that there is a coding problem.

Your Environment

  • SuiteCRM Version used: 7.12.10
  • Operating System and version: Ubuntu 20.04
Originally created by @SinergiaCRM on GitHub (Apr 21, 2023). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> <!--- Please be aware that as of the 31st January 2022 we no longer support 7.10.x. New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above. If your issue is still applicable in 7.12.x, please create the issue following the template below --> #### Issue When creating a workflow that performs an action on calculated fields with functions such as _substring_, _length_, _uppercase_ or _replace_, some special characters (such as á,à,ä,ñ) are miscoded. #### Expected Behavior Correct encoding of special characters is expected. #### Actual Behavior <!--- Tell us what happens instead --> <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> For example, when passing `montaña` to the _uppercase_ function the result is` MONTA&NTILDE;A `(`&NTILDE;` is not an HTML entity, the correct one for Ñ is `&Ntilde;`). Using the _length_ function in this same word calculates `14` instead of the expected `7`. This does not happen with _lowercase_ because `MONTAÑA` becomes `MONTA&Ntilde;A` and then `monta&ntilde;a` which in this case can be reconverted to `montaña`. #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1.Create different workflows that use the action of calculated fields with functions such as _length_, or _uppercase_. 2.Create a record on which the workflow acts that contains special characters such as á,à,ä,ñ. 3.Check that there is a coding problem. #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.12.10 * Operating System and version: Ubuntu 20.04
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5002
No description provided.