Subject: Re: Palm OS 5.4 Database Manager (or NVFS) bug?
From: Ben Combee <[EMAIL PROTECTED]>
Date: Mon, 13 Dec 2004 10:40:22 -0600
X-Message-Number: 26

At 06:00 AM 12/13/2004, you wrote:
>Hello Palm,
>
>   Sometimes our users are very creative in finding bugs in our
>   applications. Sometimes I wish they work in my QA, but today I wish
>   one of them works in PalmSource QA.
>
>   Let's make simple experiment. Take your favorite application (I took
>   FileZ.prc, my favorite file manager) copy it to some other .prc file
>   (FileZ2.prc). Next open hex editor on the second file and change:
>     1. Database name to different case. Filez -> FileZ
>     2. Creator Id. Filz -> FilZ.
>
>   HotSync both applications to the PalmOne Tungsten T5 or Treo 650.
>
>   Now you have two databases on the device with different creator ids
>   and different names. You can check if they are here in Launcher
>   'Delete'.

Yes, we just heard about this problem on Monday night, and I've already
forwarded it to the person inside PalmSource who worked on the NVFS code
with PalmOne.  Hopefully, this will be fixed with the next ROM update, but
as of right now, NVFS-based devices (Tungsten T5 and Treo 650) cannot have
two databases that have database names that differ only in
capitalization.  I think this bug is due to the DB images being stored in a
FAT filesystem; the filesystem preserves capitalization, but doesn't allow
two files with that differ only by case, and the code didn't handle that well.

Nasty!

The standard advice for ensuring your filename is unique is to append your creator ID.

But Creator ID's are case sensitive.

So on NVFS devices "Database-FRed", "Database-FRED" and "Database-frED" would all
cross corrupt each other. Ouch!


Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)



--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to