DataFed icon indicating copy to clipboard operation
DataFed copied to clipboard

Search: Metadata keys with "-" in name do not work

Open dvstans opened this issue 4 years ago • 3 comments

The query compilation code is probably mishandling key values and the "-" may be being treated as a minus operator. This is failing in the catalog search,

dvstans avatar Mar 10 '21 16:03 dvstans

Must restrict allowed characters in schema/metadata property names. Only 0-9, a-z, and a few special characters. Must add check for this during schema and metadata validation.

dvstans avatar Mar 10 '21 17:03 dvstans

After testing via AQL, only a-z, A-Z, 0-9, ans underscore can be used. Also, a variable cannot start with a number and is it starts with an underscore, the first non-underscore character must not be a number. The DataFed documentation needs to be updated to reflect theses restrictions.

dvstans avatar Mar 11 '21 14:03 dvstans

Not fixed - can create records with bad keys in metadata.

dvstans avatar May 14 '21 18:05 dvstans