[5235] in Moira

home help back first fref pref prev next nref lref last post

Wildcards don't work correctly in moira client's gfsl query

daemon@ATHENA.MIT.EDU (Mitchell E Berger)
Wed Dec 19 04:31:50 2007

Message-Id: <200712190930.lBJ9UlLj023311@byte-me.mit.edu>
To: bug-moira@MIT.EDU
Date: Wed, 19 Dec 2007 04:30:47 -0500
From: Mitchell E Berger <mitchb@MIT.EDU>

Hi,

Wildcards are allowed in the gfsl query.  However, if you use them in
the moira client's filesys get command, sometimes you get all the results
you expect, and sometimes you get exactly one result.  This problem
happens because moira first runs a gali query to ensure that if the name
is an alias, you'll still see the actual filesystem, but gali itself
accepts wildcards, and if your pattern matches any aliases, moira will
end up only showing you the filesystem for the last alias returned by gali.

Note also that 'ac*' matches the 'accts' alias for 'accounts' and the 'acrobat'
alias for 'acro', but if neither of the actual filesys labels began with 'ac',
you should still get both of those results as well as everything else that
matches 'ac*', making the fix nontrivial.

I think the right solution is something along the lines of running the
gali, doing a gfsl for *each* of its results, and concatenating all of
those with what gfsl returns for the originally entered search parameter.
If the moira client has anywhere else that it allows searching for a type
that can have aliases, this may be a problem there, too.

Mitch


home help back first fref pref prev next nref lref last post