Menu

#2456 FilenNotFoundException when trying to open a foreign owned file!

Next Release
fixed
None
normal
minor
HaveNotTried
none
1.6.1_xx
2017-01-31
2017-01-30
No

By intend I copied over a MindMap from my backup to my home directory.

The file was set: "root.root" and chmod 600

Means. The file belongs to root and hast read only! So only the user root can read the file.

The file appears within the file selector and I tried opening it and instantly I got both:

a) a dialog telling me the file can not be opened.
b) a FileNotFoundException

It might be interesting to have a try catch (or maybe try catch continue (finally)) wrapped around it, in case it's missing. If a file can not be opened then it can not be opened. No need to irritate the user with a FileNotFoundException. May be valid for writing a file as well. E.g. writing to a file with the same name, while the file on the filesystem belongs to someone else.

1.6.1-preXX

Discussion

  • Ali Akcaagac

    Ali Akcaagac - 2017-01-30

    Forgot to apply the log :)

     
  • Felix Natter

    Felix Natter - 2017-01-31
    • assigned_to: Felix Natter
     
  • Felix Natter

    Felix Natter - 2017-01-31
    • status: new --> fixed
    • fixed_in_version: --> 1.6.1_xx
     
  • Felix Natter

    Felix Natter - 2017-01-31

    hello Ali,
    in 1.6.x you now get a "File X is not accessible" dialog box.
    You still get a FileNotFoundException in the log because there is not a more specific
    Exception in the JDK.
    Cheers and Best Regards,
    Felix