[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ITS#1998, zero-length attr vals

At 05:42 PM 2002-08-05, Stig Venaas wrote:
>On Mon, Aug 05, 2002 at 05:26:56PM -0700, Kurt D. Zeilenga wrote:
>> At 05:00 PM 2002-08-05, Howard Chu wrote:
>> >Back to this issue again; the crash is actually an assert() because the
>> >result of normalizing a single space is a zero-length string. It seems
>> >we need to remove these asserts and return a failure code, or just accept the zero-length strings.
>> Or, fix the normalizer so that it does the right thing.
>> The right thing in this case (directory string) is to
>> normalize one or more spaces to one space.
>Not zero?

Yes, not zero.

>Does that mean that zero-length directory string isn't

Yes, a zero-length directory string is invalid.

>If it is allowed, should a one space (or more) directory
>string be treated as different from a zero-length one?


I'm about to commit a comment to the top of schema_init.c which
details expected behavior.  After double checking it, we can
double check the code for conformance.