[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1432: Magic Folder on Mac OS X and other BSDs

Tahoe-LAFS trac at tahoe-lafs.org
Mon Aug 29 13:31:04 UTC 2016


#1432: Magic Folder on Mac OS X and other BSDs
-------------------------------------+-------------------------------------
     Reporter:  davidsarah           |      Owner:
         Type:  enhancement          |     Status:  new
     Priority:  normal               |  Milestone:  undecided
    Component:  code-frontend-       |    Version:  1.8.2
  magic-folder                       |   Keywords:  fsevents mac bsd magic-
   Resolution:                       |  folder
Launchpad Bug:                       |
-------------------------------------+-------------------------------------

Comment (by dawuud):

 currently on the darwin platform fails at least this test:
 ``allmydata.test.test_magic_folder.RealTest.test_delete``

 I don't understand why this fails. I added a print statement to display
 the platform filesystem encoding which is UTF-8

 ```
 test_delete ... set pending delay

 init INotifyEventHandler

 START READING BEGIN

 START READING END

 PROCESS EVENT <FileCreatedEvent: src_path='/Users/travis/build/tahoe-lafs
 /tahoe-
 lafs/_trial_temp/allmydata.test.test_magic_folder/RealTest/test_delete/nvdp3V/temp/local_dir/foo'>

 FILESYSTEM ENCODING: utf-8

 Exception in thread Thread-8:

 Traceback (most recent call last):

   File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py",
 line 810, in __bootstrap_inner

     self.run()

   File "/Users/travis/build/tahoe-lafs/tahoe-lafs/.tox/py27/lib/python2.7
 /site-packages/watchdog/observers/api.py", line 199, in run

     self.dispatch_events(self.event_queue, self.timeout)

   File "/Users/travis/build/tahoe-lafs/tahoe-lafs/.tox/py27/lib/python2.7
 /site-packages/watchdog/observers/api.py", line 368, in dispatch_events

     handler.dispatch(event)

   File "/Users/travis/build/tahoe-lafs/tahoe-lafs/.tox/py27/lib/python2.7
 /site-packages/watchdog/events.py", line 322, in dispatch

     self.on_any_event(event)

   File "/Users/travis/build/tahoe-lafs/tahoe-
 lafs/src/allmydata/watchdog/inotify.py", line 73, in on_any_event

     self.process(event)

   File "/Users/travis/build/tahoe-lafs/tahoe-
 lafs/src/allmydata/watchdog/inotify.py", line 47, in process

     event_filepath_u = abspath_expanduser_unicode(event_filepath_u,
 base=self._path)

   File "/Users/travis/build/tahoe-lafs/tahoe-
 lafs/src/allmydata/util/fileutil.py", line 310, in
 abspath_expanduser_unicode

     precondition_abspath(base)

   File "/Users/travis/build/tahoe-lafs/tahoe-
 lafs/src/allmydata/util/fileutil.py", line 276, in precondition_abspath

     raise AssertionError("an abspath must be a Unicode string")

 AssertionError: an abspath must be a Unicode string
 ```

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1432#comment:37>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list