MantisBT - Open CASCADE
View Issue Details
0027901Open CASCADE[OCCT] OCCT:Foundation Classespublic2016-09-25 22:592016-12-09 16:38
abv 
kgv 
normalminor 
closedfixed 
 
[OCCT] 7.1.0[OCCT] 7.1.0 
bugs fclasses bug181_1, bug181_2
0027901: Resource_Manager creates directory with insufficient permissions
In context of issue #181, apparently Resource_Manager should have been fixed to be able to create directory for the user resource file. However, two problems still exist:

1. Created directory has RWX permissions for the current user, which is not sufficient for the user to be able to delete it without changing permissions. This leads to failure of test bugs fclasses bug181_1 on Windows if current user does not have admin rights.

2. Only one level directory can be created; creation fails if path contains more than one missing directory. That is why test bugs fclasses bug181_2 is BAD.

Note that recursive creation of subdirectories is subject of issue #701 which has been closed without any fix or explanation.
Fix pushed to CR27901, please review
No tags attached.
Issue History
2016-09-25 22:59abvNew Issue
2016-09-25 22:59abvAssigned To => abv
2016-09-25 23:00abvRelationship addedhas duplicate 0000701
2016-09-25 23:00abvRelationship addedchild of 0000181
2016-09-25 23:15gitNote Added: 0058128
2016-09-25 23:15abvAssigned Toabv => kgv
2016-09-25 23:15abvStatusnew => resolved
2016-09-25 23:15abvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14780#r14780
2016-09-26 06:37gitNote Added: 0058129
2016-09-26 11:07kgvNote Added: 0058141
2016-09-26 11:07kgvAssigned Tokgv => bugmaster
2016-09-26 11:07kgvStatusresolved => reviewed
2016-09-26 12:40apvAssigned Tobugmaster => apv
2016-09-27 13:01apvTest case number => bugs fclasses bug181_1, bug181_2
2016-09-27 13:44apvNote Added: 0058207
2016-09-27 13:44apvAssigned Toapv => bugmaster
2016-09-27 13:44apvStatusreviewed => tested
2016-10-03 13:47kgvChangeset attached => occt master 73594f72
2016-10-03 13:47kgvAssigned Tobugmaster => kgv
2016-10-03 13:47kgvStatustested => verified
2016-10-03 13:47kgvResolutionopen => fixed
2016-10-28 21:45gitNote Added: 0059531
2016-12-09 16:30aivStatusverified => closed
2016-12-09 16:38aivFixed in Version => 7.1.0

Notes
(0058128)
git   
2016-09-25 23:15   
Branch CR27901 has been created by abv.

SHA-1: a0d7c20cd38128f9529075bbd8385f2d04bfbce0


Detailed log of new commits:

Author: abv
Date: Sun Sep 25 23:05:00 2016 +0300

    0027901: Resource_Manager creates directory with insufficient permissions
    
    Resource_Manager now sets RWXD permissions for the created directories to allow their removal.
    Method OSD_Directory::Build() will create intermediate directories if they do not exist yet.
    OSD_FileNode is corrected to clean error status in method Exists().
    
    Tests bugs fclasses bug181_1 and bug181_2 are corrected to check existence of generated resource files; TODO is removed in bug181_2.
(0058129)
git   
2016-09-26 06:37   
Branch CR27901 has been updated by abv.

SHA-1: 761c3cb9d9001d5c9b31e972769daa38c3fc3034


Detailed log of new commits:

Author: abv
Date: Mon Sep 26 06:37:38 2016 +0300

    //linux

(0058141)
kgv   
2016-09-26 11:07   
Please test the patch.
(0058207)
apv   
2016-09-27 13:44   
Dear BugMaster,

Branch CR27901 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
SHA-1: 761c3cb9d9001d5c9b31e972769daa38c3fc3034

Number of compiler warnings:
occt component:
   Linux: 0 (0 on master)
   Windows: 0 (0 on master)
   MasOS: 0 (0 on master)
products component:
   Linux: 64
   Windows: 0
   MacOS: 1140

Regressions/Differences:
Not detected

Testing cases:
bugs fclasses bug181_1 - OK
http://occt-tests/CR27901-master-OCCT/Debian70-64/bugs/fclasses/bug181_1.html [^]
http://occt-tests/CR27901-master-OCCT/Windows-64-VC10/bugs/fclasses/bug181_1.html [^]
bugs fclasses bug181_2 - OK
http://occt-tests/CR27901-master-OCCT/Debian70-64/bugs/fclasses/bug181_2.html [^]
http://occt-tests/CR27901-master-OCCT/Windows-64-VC10/bugs/fclasses/bug181_2.html [^]

Testing on Linux:
Total MEMORY difference: 90577960 / 90216507 [+0.40%]
Total CPU difference: 19405.97999999991 / 19251.709999999875 [+0.80%]

Testing on Windows:
Total MEMORY difference: 57203612 / 57221541 [-0.03%]
Total CPU difference: 17893.8919036988 / 18310.78897609872 [-2.28%]
(0059531)
git   
2016-10-28 21:45   
Branch CR27901 has been deleted by kgv.

SHA-1: 761c3cb9d9001d5c9b31e972769daa38c3fc3034