Unsolved
This post is more than 5 years old
4 Posts
0
2263
October 23rd, 2009 03:00
Problem with Whitespaces in XRI when connecting to Centera via XAM
Hi!
I've tried to connect to Centera via XAM (Java) using the following XRI:
snia-xam://centera_vim!10.60.0.151?C:\\Documents and Settings\\Administrator\\Local Settings\\Application\\MyApp\\devtest.pea
I'm getting a Java exception "authentication failed".
Using sysinternals procmon I've identified the problem being the XAM Library removing all the spaces from the params string. procmon shows, that the following path is queried:
C:\\DocumentsandSettings\\Administrator\\LocalSettings\\Application\\MyApp\\devtest.pea
Obviously this cannot work.
Is there a way to ensure that a path to a .pea file which contains spaces works properly? I've tried URL encoding (replacing " " with "%20", but no success either; also quoting the entire path using "" doesn't seem to help; the double backslashes make no difference).
Regards,
Martin
mckeown_paul
409 Posts
0
October 23rd, 2009 04:00
the specification of the PEA file is not covered by the XAM standard and is left to the vendor. I can't find anything so far that says you cant have whitespace in the pathname of the PEA file and I have actually managed to connect using jcasscript and the Centera SDK using a PEA file with spaces in it. However I cannot connect use shXAM by specifying the pathname the same way (I used " around the whole connection string).
Obviously something in the XAM stack is taking the whitespace out so until we can find a way using XAM to allow whitespace I would recommend you do not name PEA files with whitespace in them. IMHO- whitespace in pathnames ugghh, but then I'm an old unix duffer
Oh and have you tried single quotes ' around the connection string?