bugGNU Octave - Bugs: bug #61225, GUI File Browser 'delete' silently...

 
 

bug #61225: GUI File Browser 'delete' silently fails if file handle open

Submitted by:  Nicholas Jankowski <nrjank>
Submitted on:  Sun 26 Sep 2021 01:40:15 AM UTC  
 
Category:  GUI Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Ready For Test Assigned to:  None
Originator Name:  Nicholas Jankowski Open/Closed:  Open
Release:  dev Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 27 Sep 2021 11:02:29 AM UTC, comment #1: 

I can confirm this issue on Windows. (Works ok on Linux. I.e., renaming or deleting an fopen-ed file succeeds.)

I pushed a patch here that displays a dialog in these cases:
http://hg.savannah.gnu.org/hgweb/octave/rev/351dbe4da930

Marking as ready for test.

Markus M├╝tzel <mmuetzel>
Project Member
Sun 26 Sep 2021 01:40:15 AM UTC, original submission:  

it appears that failed file operations fail silently in the GUI.  Example:

>> a = fopen('testfile.txt','w');

## testfile.txt file created and visible in File Browser

>> delete('testfile.txt')
warning: delete: testfile.txt: Permission denied
warning: called from
    delete at line 58 column 11

>> rename testfile.txt test2.txt
ans = -1

GUI right click testfile.txt, select Delete.  Get 'Are you sure' prompt. select Rename, get the 'Rename file/directory' prompt. Selecting Yes or OK, respectively, produces no result or warning. I would expect an alert of some kind that the operation has failed.

as expected after a

fclose (a)

the functions perform as expected.

Nicholas Jankowski <nrjank>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by nrjank (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-09-27 mmuetzel StatusNone => Ready For Test
        Release6.3.0 => dev

    Back to the top


    Powered by Savane 3.7