Open emetsger opened 4 years ago
If metadata/bar.txt was present in the bag, it would still conform to my profile, even though it isn't mentioned in Tag-Files-Allowed, correct?
I'd say no here. Because if we look at 2.12 -- If Tag-Files-Allowed
is not provided, its value is assumed to be ['*']
, i.e. all tag files are allowed. -- that's taking the case where nothing is declared. In your example, you have metadata/foo/*
declared. I'd interpret that as being everything residing in metadata/foo
. metadata/bar.txt
resides outside that, so it would not conform.
The second example is essentially 2.12 again, but the root wildcard is declared.
Hi everyone (Timmo!),
If
Tag-Files-Allowed
is specified, can it be interpreted to have an implicit*
at the end of the list? That is, putting something inTag-Files-Allowed
doesn't exclude other tag files. For example:In my profile, I have:
If
metadata/bar.txt
was present in the bag, it would still conform to my profile, even though it isn't mentioned inTag-Files-Allowed
, correct?So, processors may interpret it as having an implicit
*
at the end:Or, is the intent of
Tag-Files-Allowed
more along the lines of:When processing a bag conforming to my profile, the processor ought to interpret the contents of
metadata/foo/*
according to the semantics of my profile? That is to say, if files are present inmetadata/foo
, they "belong" to my profile and should be interpreted accordingly? Does that make sense?If that is the case, then the implicit
*
wouldn't make sense (because it wouldn't make sense for a single profile to advertise that all possible tag files are conformant).Practically, it seems to be a mix-and-match: files specified in
Tag-Files-Allowed
"belong" to my profile, but the implicit*
only applies to the "allowed" part, not the "belonging" part.