Bruce Willmore wrote:
> Running jBase 4.1.6.7 on HP-UX B.11.31
>
> I thought that I'd share an experience that I just had with the group.
> I'm not looking for solutions, and I will be passing this along
> through our VAR. I just thought that this experience might be
> worthwhile to share.
>
> Anyway, I created a J4 file on one server, and then overwrote the Data
> Section with a copy of the file (also a J4) that I had on another
> server using scp. (We do not have jRFS established between these two
> particular servers and I needed a populated file) I forgot to transfer
> the permissions, though, and the Data Section ended up having owner-
> only permissions r+w.
>
> During testing, I discovered that when another user running my app
> attempted to open that Data Section with an OPEN statement, jBASE was
> indicating that the OPEN was succesful, but the file variable that was
> populated contained the handle to the Dictionary Section, and not the
> Data Section.
>
> I found it interesting that an I/O error didn't result when the app
> attempted to OPEN the file, and the Dict Section got opened instead.
> Once the permissions had been changed to grant access, all was well.
>   
Bruce,

Do you have  Q pointer to create a DICT only file in your dictionary? A 
number of things go on at open to provide backward compatibility and so 
on, including the fact that a file that is read only is allowed to be 
opened (and is much faster that way because it knows to skip lock taking 
while reading through the file).

However, if the open of the DATA section fails, then I suspect the code 
is not distinguishing between the data section not being there and the 
permissions being wrong (and logically it might not help to). The code 
will then look in th DICT to see if there is an entry:

001 Q

Which allows the file to be a "DICT ONLY" file whereby both the DICT and 
the DATA section are the same file. The exact sequence of how this is 
done has changed over the years to try to accommodate all the various 
stupid^h^h^h^h^h^h features of all the myriad systems.

I think that in this case, you have just proved the value of testing ;-)

BTW, don't forget that when transferring via fpt/scp/etc, that you must 
make sure there is no possibility of the file being written to at the 
source.

Jim

--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to