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

 
 

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

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

Add a New Comment Rich Markup
   

Tue 19 Apr 2022 10:32:59 PM UTC, comment #2: 

No responses.  Assuming patch worked as expected.  Marking as Fixed and closing report.

Rik <rik5>
Group administrator
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>
Group administrator
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>
Group 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 rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by nrjank (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-19 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2021-09-27 mmuetzel StatusNone Ready For Test
        Release6.3.0 dev

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code