Didn't read my email far enough to see this... I see you are already on top of changing the filemgr-client script, Sean... Lol
-Brian On Feb 24, 2012, at 8:57 PM, "Sean Hardman (Created) (JIRA)" <j...@apache.org> wrote: > The File Manager's filemgr-client script does not handle quoted parameter > values. > --------------------------------------------------------------------------------- > > Key: OODT-386 > URL: https://issues.apache.org/jira/browse/OODT-386 > Project: OODT > Issue Type: Bug > Components: file manager > Affects Versions: 0.4 > Environment: Issue encountered on a machine running OS X in Bourne > shell. > Reporter: Sean Hardman > Priority: Minor > > > The filemgr-client script does not appear to handle quoted parameter values > like the following: > > {code} > bash-3.2$ ./filemgr-client --url ${FILEMGR_URL} --operation --sqlQuery -query > 'SELECT * FROM *' > Feb 23, 2012 12:51:12 PM > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient <init> > INFO: Loading File Manager Configuration Properties from: > [../etc/filemgr.properties] > org.apache.xmlrpc.XmlRpcException: java.lang.Exception: > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Failed to > perform complex query : null > at > org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:104) > at > org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:71) > at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:73) > at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194) > at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185) > at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178) > at > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient.complexQuery(XmlRpcFileManagerClient.java:974) > at > org.apache.oodt.cas.filemgr.cli.action.AbstractQueryCliAction.execute(AbstractQueryCliAction.java:75) > at org.apache.oodt.cas.cli.CmdLineUtility.execute(CmdLineUtility.java:296) > at org.apache.oodt.cas.cli.CmdLineUtility.run(CmdLineUtility.java:179) > at > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient.main(XmlRpcFileManagerClient.java:1307) > ERROR: Failed to perform sql query : sortBy 'null', outputFormat 'null', and > delimiter ' > ', filterAlgor 'null', startDateTimeMetKey 'null', endDateTimeMetKey 'null', > priorityMetKey 'null', null' : java.lang.Exception: > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Failed to > perform complex query : null > {code} > > The server response is as follows, which would indicate that the quoted > parameter is being subject to parameter expansion or replacement: > > {code} > > Feb 23, 2012 12:51:12 PM > org.apache.oodt.cas.filemgr.repository.XMLRepositoryManager > getProductTypeByName > WARNING: XMLRepositoryManager: Unable to find product type: [convert_map > filemgr filemgr-client migrate_xml_policy query_tool], returning null > java.lang.NullPointerException > at > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.getCatalogQuery(XmlRpcFileManager.java:1210) > at > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.complexQuery(XmlRpcFileManager.java:600) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.xmlrpc.Invoker.execute(Invoker.java:130) > at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:84) > at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:146) > at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:139) > at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:125) > at org.apache.xmlrpc.WebServer$Connection.run(WebServer.java:761) > at org.apache.xmlrpc.WebServer$Runner.run(WebServer.java:642) > at java.lang.Thread.run(Thread.java:680) > {code} > > This issue is similar to OODT-185 and is resolved with the same patch which > is to modify the filemgr-client script to replace $* with "$@". > > > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA > administrators: > https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa > For more information on JIRA, see: http://www.atlassian.com/software/jira > >