oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OODT-386) The File Manager's filemgr-client script does not handle quoted parameter values.
Date Fri, 14 Dec 2012 00:34:25 GMT

     [ https://issues.apache.org/jira/browse/OODT-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris A. Mattmann updated OODT-386:
-----------------------------------

    Fix Version/s:     (was: 0.5)
                   0.6

- push out to 0.6
                
> 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
>             Fix For: 0.6
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message