Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1228567

Summary: Changing parameter types in REST connection results in wrong URL
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Andrej Smigala <asmigala>
Component: ToolingAssignee: Barry LaFond <blafond>
Status: CLOSED CURRENTRELEASE QA Contact: Andrej Smigala <asmigala>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-17 18:05:40 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:
Embargoed:

Description Andrej Smigala 2015-06-05 08:16:00 UTC
Changing the type of a parameter in the REST connection profile causes the generated URL to be wrong. Also, the Preview URL is not updated after changing the type, only after some other action (testing connection, changing the default value etc).
Furthermore, removing the paramters does not work if the type of the parameter has been changed.

Steps to reproduce:
# File -> New -> Other ->  Connection Profile -> Web Services Data Source (REST)
# set Connection URL to http://localhost:8000
# add two new parameters of type Query, p1 and p2 with default values v1 and v2
# change the p1 parameter's type to URI
# notice the Preview URL does not reflect the change
# click Test Connection
# notice the Preview URL is now http://localhost:8000/v1?p2=v2/v1  (wrong)
# change the type back to Query, click Test Connection
# notice the Preview URL is now http://localhost:8000?p1=v1&p2=v2&rest_param%3Ap1=v1
# try to delete both parameters

Comment 2 JBoss JIRA Server 2015-07-21 17:44:56 UTC
Ted Jones <tejones> updated the status of jira TEIIDDES-2553 to Resolved

Comment 3 JBoss JIRA Server 2015-08-03 07:31:21 UTC
Andrej Šmigala <asmigala> updated the status of jira TEIIDDES-2553 to Closed

Comment 4 JBoss JIRA Server 2015-08-03 10:47:45 UTC
Andrej Šmigala <asmigala> updated the status of jira TEIIDDES-2553 to Reopened

Comment 5 JBoss JIRA Server 2015-08-03 10:48:14 UTC
Andrej Šmigala <asmigala> updated the status of jira TEIIDDES-2553 to Closed