[
https://issues.jboss.org/browse/TEIIDDES-2493?page=com.atlassian.jira.plu...
]
Barry LaFond commented on TEIIDDES-2493:
----------------------------------------
[~shawkins] I verified that trying to create/use a file source with *spaces* in the path
will fail. I also tried to change the path to replace *spaces* with the * * code
but that didn't work either.
I had a CSV file located at: */home/blafond/Downloads/temp_1/flat file folder* which
failed data source creation.
I replaced the spaces in the path property on createDataSource() and the resulting RA
property in standalone.xml was:
*/home/blafond/Downloads/temp_1/flat file folder*.
The console showed this DS was deployed:
08:01:49,541 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-4)
JBAS010406: Registered connection factory java:/SourceModelDS_A
However, the preview failed with the following.....
org.teiid.runtime.client.TeiidClientException: java.lang.RuntimeException: Remote
org.teiid.core.TeiidProcessingException: TEIID30504 SourceModel: File not found
EmpData.csv
Is there something I'm missing or doing wrong? what is the RA <config-property
name="ParentDirectory"> value supposed to be if the path contains spaces?
Thx
Check for spaces in the parent directory Flat File connection
importer
----------------------------------------------------------------------
Key: TEIIDDES-2493
URL:
https://issues.jboss.org/browse/TEIIDDES-2493
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export, Patch Release
Reporter: Ramesh Reddy
Assignee: Mark Drilling
Labels: release_notes, verified_jbdsis-9.0.0.Beta
Fix For: 10.0, 9.2.1
Add a check to make sure there are no spaces in the ParentDirectory or root directory
path when Flat File Connection Profile is chosen.
====================
The problem is manifested on the server when attempting to query the datasource. On
datasource creation, the resource adapter is written to the standalone.xml like this.
{code:java}
<config-property name="ParentDirectory">
/home/mdrilling/My Dir/data
</config-property>
{code}
The embedded space in the ParentDirectory property value is problematic.
Need to determine whether to (1) disallow a path with spaces or (2) allow it, replacing
the space with the appropriate control code ie {code:java} {code} - like this
{code:java}
<config-property name="ParentDirectory">
/home/mdrilling/My Dir/data
</config-property>
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)