[
https://issues.jboss.org/browse/TEIIDDES-2415?page=com.atlassian.jira.plu...
]
Wladislaw Mitzel updated TEIIDDES-2415:
---------------------------------------
Steps to Reproduce:
# Generate new Teiid Project with no changes to the defaults.
# Right-Click on project => {{Import}} => {{Teiid Designer}} => {{Web Service
Source >> Source and View Model (REST)}}
# {{New}} Button in {{REST Web Service Source}} => {{Next}}
# Parameters: {code}
Connection URL: "http://md5.jsontest.com/"
Response Type "JSON"
Security Type "None"{code}
#* There is no way to define Parameters here
# {{Test connection}} succedes
# Ciick {{Finish}}
# The {{REST Web Service Source Selection}} Dialog shows the message {code}No REST
Response Files Selected for Import{code} because the response is empty. To add the actual
parameter click on {{Edit}}.
# Under {{Connection Properties}} there is an {{Add new Parameter}} button now. Click it
and try to add a parameter with an underscore character in its name.
It tells you {{<Missing message for key
"AddParameterDialog_invalidParametersName" in:
org.teiid.designer.datatools.ui.i18n>}}.
# Instead add parameter "text" with no default value and Type
"Query".
Once saved the error message {code}"XML File Parsing Error"
"Parsing Error: The markup in the document following the root element must be
well-formed."{code} is shown.
# Once again click {{Edit}}, select the "text"-Parameter in the listview and
delete it using the {{Remove Parameter}} button. It does not matter whether you click
{{Apply}} or {{Ok}}, the change to the parameter is not persisted.
was:
# Generate new Teiid Project with no changes to the defaults.
# Right-Click on project => {{Import}} => {{Teiid Designer}} => {{Web Service
Source >> Source and View Model (REST)}}
# {{New}} Button in {{REST Web Service Source}} => {{Next}}
# Parameters: {code}
Connection URL: "http://md5.jsontest.com/"
Response Type "JSON"
Security Type "None"{code}
#* There is no way to define Parameters here
# {{Test connection}} succedes
# Ciick {{Finish}}
# The {{REST Web Service Source Selection}} Dialog shows the message {code}No REST
Response Files Selected for Import{code} because the response is empty. To add the actual
parameter click on {{Edit}}.
# Under {{Connection Properties}} there is an {{Add new Parameter}} button now. Click it
and try to add a parameter with an underscore character in its name.
It tells you {{<Missing message for key
"AddParameterDialog_invalidParametersName" in:
org.teiid.designer.datatools.ui.i18n>}}.
# Instead add parameter "text" with no default value and Type
"Query".
Once saved the error message {code}"XML File Parsing Error"
"Parsing Error: The markup in the document following the root element must be
well-formed."{code} is shown.
# Once again click {{Edit}}, select the "text"-Parameter in the listview and
delete it using the {{Remove Parameter}} button. It does not matter whether you click
{{Apply}} or {{Ok}}, the change to the parameter is not persisted.
Import -> Web Service Source >> Source and View Model (REST)
Parameter handling and parsing errors
--------------------------------------------------------------------------------------------------
Key: TEIIDDES-2415
URL:
https://issues.jboss.org/browse/TEIIDDES-2415
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export, Web Services Support
Affects Versions: 9.0
Environment: Ubuntu 14.04 LTS
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
Eclipse Luna Service Release 1 (4.4.1)
Build id: 20140925-1800
Teiid Designer 9.0.0.Final-v20141216-2002-B3222
Reporter: Wladislaw Mitzel
The import wizard for {{Web Service Source >> Source and View Model (REST)}} has
various errors regarding the handling of parameters. The initial creation dialog {{New
connection profile}} does not show buttons for addition or removal of parameters. The
{{connection properties}} dialog displays the buttons, but the changes are not persisted.
Furthermore there is a parsing error for the following JSON response:
{code}
{
"md5": "37a6259cc0c1dae299a7866489dff0bd",
"original": "null"
}
{code}
Please see "Steps to reproduce" for further explanation.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)