What are the steps to reproduce your problem?
1. Start the process with a String variable with value starting with 0 and containing only digits, e.g. 0012345
2. In Cockpit from the process view, add a filter on process variables like VariableName = 0012345.
What is the problem?
Search by variable value does not return process instance
What would be the expected behavior:
The corresponding process instance is shown
Hints (optional):
Before sending the value to backend, we perform type detection, which converts any string, containing only digits to number. This means that variables of type string containing only digits will never be found.
-> wider affected case is: any String variable containing digits (not specifically with leading zeros).
Possible solutions:
1. If value contains leading zeros, treat it as a String (will solve only specific case with leading zeros)
2. Allow entering values with quotes, which will mean, that the content inside quotes is a String, e.g. if you enter "235", it will be passed as a String to the backend, but if you enter 235, it will be passed as a number.
This ticket was migrated to github: https://github.com/camunda/camunda-bpm-platform/issues/2320. Please use this link for any future references and continue any discussion there.