[Swift-devel] [Bug 80] simple_mapper strange prefix behaviour

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Tue Jul 24 07:26:14 CDT 2007


http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=80





------- Comment #2 from benc at hawaga.org.uk  2007-07-24 07:26 -------
1. In some cases (such as illustrated by this bug) Path.Entry.getName() returns
the prefix for the first element, which is a value in filename-space, not in
dataset-path-space. The DefaultFileNameElementMapper is stupid enough to pass
through a prefix untouched, even though it isn't a valid path component, so
this doesn't cause a problem.

2. AbstractFileMapper tries to infer whether a path entry is an array index or
a field name by testing whether the first character is a numeric digit or not
(rather than using the Path.Entry index member value).

When the prefix begins with a digit, the above two properties interact to cause
the filename prefix to be treated as an array index, which fails.


-- 
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Swift-devel mailing list