Just wanted to follow up on-list about this. Thanks again for the report, Phil; it's now fixed in trunk:
https://fedora-commons.org/jira/browse/FCREPO-466 - Chris On Mon, Mar 16, 2009 at 1:14 AM, Phil Chadwick <[email protected]> wrote: > Hi, > > I have found a bug in all the 3.1 client shell scripts. > e.g. fedora-find.sh synopsis at: > > http://fedora-commons.org/confluence/display/FCR30/Client+Command-line+Utilities > > suggests (with FCREPO-86 applied) this example should work: > > fedora-find localhost 8080 userid password "pid fType title description" > "fedora" http > > It does not work because the code (with FCREPO-86 applied) says: > > (exec $JAVA_HOME/bin/java ... $1 $2 $3 $4 $5 $6 $7) > > The exec means that the fieldList ($5) gets expanded as follows > before execution (which is wrong -- it should not be expanded, but > rather be seen by the shell as a single argument): > > pid fType title description > > It also means that wild carding with "?" and "*" for the search string > ($6) will match files in the current working directory instead of being > passed through to the java application. > > The fix is to quote all the shell arguments, thus: > > (exec $JAVA_HOME/bin/java ... "$1" "$2" "$3" "$4" "$5" "$6" "$7") > > I expect that this bug is present in all the shell scripts. > > Cheers, > > > -- > Phil > > You can't build a reputation on what you are going to do. > -- Henry Ford > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Fedora-commons-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
