Bug 1295534

Summary: REST Query API: regular expression parameters are unknown for the server
Product: [Retired] JBoss BPMS Platform 6 Reporter: Alessandro Lazarotti <alazarot>
Component: Business CentralAssignee: Shelly McGowan <smcgowan>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: high Docs Contact:
Priority: medium    
Version: 6.2.0CC: alazarot, kverlaen, lpetrovi, smcgowan, tradej
Target Milestone: DR1   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1260909 Environment:
Last Closed: 2020-03-27 19:39:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1260909    
Bug Blocks:    

Description Alessandro Lazarotti 2016-01-04 18:58:45 UTC
+++ This bug was initially created as a clone of Bug #1260909 +++

Description of problem:
When you make a rest call with a query containing regular expression parameters, an answer with BAD_REQUEST status will be returned. The affected parameters are:

deploymentId_re
processId_re
processVersion_re
varId_re
varValue_re

Version-Release number of selected component (if applicable):
6.2.0 ER1

Steps to Reproduce:
1. Try for example http://localhost:8080/business-central/rest/query/runtime/process?deploymentId_re=*
2. See the response.

Actual results:
A message with BAD_REQUEST status. See the attachment for the exception on the server side.

Expected results:
Some process instances or empty list.

Additional info:
All these parameters work well without the '_re' suffix.

--- Additional comment from Tomas Livora on 2015-09-15 06:03:53 EDT ---

This also applies to task parameters with regular expressions:

initiator_re
stakeholder_re
potentialowner_re
taskowner_re
businessadmin_re

--- Additional comment from Marco Rietveld on 2015-12-14 15:37:42 EST ---

PR submitted: https://github.com/droolsjbpm/droolsjbpm-integration/pull/255

--- Additional comment from Marco Rietveld on 2015-12-18 13:50:09 EST ---

Fixed. Commits: 

master: 
https://github.com/droolsjbpm/droolsjbpm-integration/commit/67279008

Comment 1 Tomas Livora 2016-03-14 10:30:14 UTC
Verified on BPM Suite 6.3.0 DR2