Menu

#19 cannot monitor mounted folder if read only

0.94
pending-accepted
None
5
2015-03-16
2012-03-23
MV Tilab
No

If a remote folder mounted with SMB/windows share has read only access, JNotify will return an error and will not be able to monitor events. Returned error is 'code 5, access is denied'

Discussion

  • MV Tilab

    MV Tilab - 2012-03-23

    exact error is:
    net.contentobjects.jnotify.win32.JNotifyException_win32: Error 5 : Access denied

     
  • Omry Yadan

    Omry Yadan - 2012-03-23

    I don't think the windows API support monitoring of remote file systems.

     
  • MV Tilab

    MV Tilab - 2012-03-23

    Thanks for the comment.
    Actually the current behaviour is:
    - if write permissions are not given -> JNotify returns error code 5
    - if write permissions are given, JNotify works in a test with a Windows share, it did not work in a test with a linux-based SMB share

     
  • Omry Yadan

    Omry Yadan - 2012-03-31

    looks like there a possibly unnecessary permission requested here:
    http://jnotify.cvs.sourceforge.net/viewvc/jnotify/jnotify_win32/WatchData.cpp?revision=1.6&view=markup

    I`m guessing that it will work without FILE_SHARE_WRITE | FILE_SHARE_DELETE.

    at the moment I don't have an environment to build JNotify, feel free to try to build it and test.

     
  • Matthew Donoughe

    • milestone: --> 0.94
    • assigned_to: nobody --> mdonoughe
    • status: open --> pending-accepted
     

Log in to post a comment.

Monday.com Logo