ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
18 stars 14 forks source link

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

Open dvstans opened 3 years ago

dvstans commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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