Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1009 Save Write Proteceted File - java.io.FileNotFoundException

Squirrel SQL
closed-fixed
Core (461)
9
2015-01-08
2011-11-16
Claus
No

If I try to save a Write Protected File I only get a small message "java.io.FileNotFoundException: D:\Paht\Filename.sql (Access denied)"
and file is not being saved.
Although my "Save-Icon" Grays out and It seems to be saved.

More a Problem: If I close a Session-Browser and he asks me to save:
I anwser Yes -> Error in Console and Session is closed without being saved!!!!

Discussion

  • Claus
    Claus
    2011-11-16

    • priority: 5 --> 9
     
  • Claus
    Claus
    2011-11-16

    In Addition - if I use a Spreadsheet (Arbeitsblatt) with STRG-N and open a file inside:
    If I close this sheet - having changed some data - File is closed without a question for Saving the file.

     
    • assigned_to: colbell --> wis775
     
  • Patch attached correcting this issue.

    It was a fairly simple fix.. the code was already checking to see if the file to be saved was read-only, but only under certain conditions.

    It now checks under all conditions.

     
  • Gerd Wagner
    Gerd Wagner
    2013-01-08

    • status: open --> closed-fixed
     
  • Gerd Wagner
    Gerd Wagner
    2013-01-08

    Fixed in our SVN repository. Will be available in future snapshots and versions

    @Johnathan: Thanks for your patch. It just needed a little change to handle new files.