View Issue Details

IDProjectCategoryView StatusLast Update
0008988Open CASCADEOCCT:Application Frameworkpublic2012-01-12 12:36
ReportermsvAssigned Toszy  
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version6.2.1 
Summary0008988: Document open/save functions do not work with simple file name
DescriptionExecute the following draw script:

pload OCAF
NewDocument D XmlOcaf
SetInteger D 0:1 10
SaveAs D test.xml

It generates the error:
TDocStd_Application::SaveAs() - folder does not exist

If we change the last command to

SaveAs D ./test.xml

then all works. The expected behaviour is to save the document in the current
working directory in both cases.

The same is for the command Open:

Open test.xml D

generates the error:

 could not retrieve , Unknown Document or No Model
DDocStd_Open : Error

while the following command

Open ./test.xml D

works fine.
Additional information
and documentation updates
Documentation remark, added by SZY 2007-06-01 14:37:21:

Improvements:
The improvement allows using of short file names (without directory prefix).
If a directory name is not set it is assumed that current directory will be used.

Changes:
Modified method TDocStd_PathParser::Parse().
If PathParser identifies that a directory name is not set (empty) and both file
name and file name extension are valid it treats it as valid situation and for
compatibility with OCAF component assigns value = "/." (taking into account
platform) to directory name.
Modified entities:
TDocStd:
TDocStd_PathParser.cxx
TagsNo tags attached.
Test case number

Attached Files

  • Patch_OCC8988.tar.gz (3,004 bytes)
  • OCC8988_patch2.tar.gz (712 bytes)
  • OCC8988_patch3.tar.gz (690 bytes)

Activities

2007-05-22 10:17

 

Patch_OCC8988.tar.gz (3,004 bytes)

2007-05-30 16:39

 

OCC8988_patch2.tar.gz (712 bytes)

2007-05-31 10:33

 

OCC8988_patch3.tar.gz (690 bytes)

Issue History

Date Modified Username Field Change
2005-06-27 16:43 bugmaster Assigned To bugmaster => szv
2005-06-27 16:43 bugmaster Status new => assigned
2007-05-18 11:57 bugmaster Assigned To szv => szy
2007-05-22 12:23 szy Status assigned => resolved
2007-06-01 11:15 bugmaster Status resolved => tested
2007-07-27 17:15 bugmaster Status tested => verified
2009-06-23 19:03 bugmaster Status verified => closed
2009-06-23 19:03 bugmaster Resolution @0@ => fixed
2011-08-02 10:32 bugmaster Category OCCT:OCAF => OCCT:Application Framework
2012-01-12 12:36 atp Description Updated
2012-01-12 12:36 atp Additional Information Updated