Menu

#15 OpenExistingRead() doesn't work with remote files.

closed-works-for-me
None
5
2003-03-27
2003-02-20
No

If you try to open an AAF file that resides on another
computer, it fails.

Error message:

[\\High_dry\Devel_Synapse\python\AAF\bigbob.aa
f], AAF File not found.

The workarround for this is to copy the file locally.
This is somewhat costly because AAF files can reach
hundreds of megabytes.

Discussion

  • Jim Trainor

    Jim Trainor - 2003-03-27
    • assigned_to: nobody --> jptrainor
    • status: open --> closed-works-for-me
     
  • Jim Trainor

    Jim Trainor - 2003-03-27

    Logged In: YES
    user_id=239292

    Files are opened by the underlying Structured Storage
    library. Any problems that exist are likely due to the
    operating system, or the structured storage implementation.
    Could the remote file system possibly not have Unicode file
    name support? I'm not certain, but that would seem like a
    likely source of the problem.

    I tested remote access to Win2K NTFS file system from a
    local Win2K system and it worked as expected. I used the
    \\machine\dir\dir\dir\file_name syntax as used in this bug
    report. No problems found. See below:

    C:\>c:\cygwin\home\jpt\AAF\latest\AAF\examples2
    \axDump\Debug\axDump.exe -file
    \\Egret\cygwin\tmp\axExample.aaf
    Header Summary:
    Mob Count: 9
    Essense Count: 4

    Rename Pesky Opaques:
    Opaques reported by dictionary: 1
    Opaques found and renamed: 8

    Recursive Dump:

    Item Level Desc. Detail
    That's all folks.

     
  • Nobody/Anonymous

    Logged In: NO

    Just found the underlying problem...

    The nature of the problem has nothing to do with
    network access.

    Our application is running as a service under the SYSTEM
    account. However, SYSTEM account has no network
    rights.
    It was trying to open a file it had no rights on. This is why
    it was happenning.

    I think the error returned should be "Access denied" and
    not "File not found".

    AxDump and InfoDumper returns this.
    However, dump utility returns the proper error message:

    ==================================

    C:\Program Files\Snell_Wilcox\Synapse\Engine>dump
    bigbob.aaf
    dump: Error : "bigbob.aaf" : Access Denied.
    dump: Fatal error in routine "openStorage".
    StgIsStorageFile() failed.

    C:\Program
    Files\Snell_Wilcox\Synapse\Engine>axDump -file
    bigbob.aaf
    HRESULT w:\aaf\examples2\axlib\axfile.cpp:95
    0x80120021 AAFRESULT_FILE_NOT_FOUND

    C:\Program
    Files\Snell_Wilcox\Synapse\Engine>InfoDumper
    bigbob.aaf
    File bigbob.aaf not found

    Errors were encountered

    C:\Program Files\Snell_Wilcox\Synapse\Engine>

    ==================================