#98 Cannot Create Format via a Windows Mount

0.50
open
nobody
2012-11-26
2012-11-26
No

Format definitions cannot be create from Microsoft Windows (Wordpad) when WebDAV is mounted as a volume because it attempts to create a temporary file; this fails as the Formats folder doesn't handle the existence of temporary files.

DEBUG:workflow:Value delimiter is ","
DEBUG:workflow:Converting delimiter from hexidecimal value "0x09"
DEBUG:workflow:Value delimiter is " "
ERROR:http:Not such path as /dav/Workflow/Formats/TMP43F.tmp
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/net/handler.py", line 151, in process_request
    handler = self.marshall_handler(root, url)
  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/net/handler.py", line 133, in marshall_handler
    handler = handler.object_for_key(urllib.unquote(path_elements[i]))
  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/protocol/dav/workflow/formatsfolder.py", line 63, in object_for_key
    self.no_such_path()
  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/net/foundation/davfolder.py", line 119, in no_such_path
    raise NoSuchPathException('Not such path as {0}'.format(self.request.path))
NoSuchPathException: Not such path as /dav/Workflow/Formats/TMP43F.tmp
DEBUG:context:Closing context 8b3975e4-7ed6-4551-8c2f-f31e3120c124
DEBUG:coils.http.17203:Incremented request count
DEBUG:http:Request for dav/Workflow/Formats

DEBUG:coils.administrator:Invoking method: do_performance_log
ERROR:pathobject.Formats:'NoneType' object has no attribute 'get'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/protocol/dav/workflow/formatsfolder.py", line 69, in do_PUT
    format = self.context.run_command('format::new', yaml=payload)
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/core/context.py", line 260, in run_command
    command.prepare(self, **params)
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/core/command.py", line 105, in prepare
    self.parse_parameters(**params)
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/logic/workflow/create_format.py", line 39, in parse_parameters
    self.name      = self.description.get('name')
AttributeError: 'NoneType' object has no attribute 'get'
ERROR:http:Format creation failed.
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/net/handler.py", line 161, in process_request
getattr(handler, 'do_{0}'.format(self.command))(self.request_name)
  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/protocol/dav/workflow/formatsfolder.py", line 72, in do_PUT
    raise CoilsException('Format creation failed.')
CoilsException: Format creation failed.
DEBUG:context:Closing context b7aa8f7b-247c-4d20-92af-ab8f42454e86

Discussion

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -28,14 +28,14 @@
             command.prepare(self, **params)
         File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/core/command.py", line 105, in prepare
             self.parse_parameters(**params)
    -  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/logic/workflow/create_format.py", line 39, in parse_parameters
    +    File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/logic/workflow/create_format.py", line 39, in parse_parameters
             self.name      = self.description.get('name')
         AttributeError: 'NoneType' object has no attribute 'get'
         ERROR:http:Format creation failed.
    -Traceback (most recent call last):
    -  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/net/handler.py", line 161, in process_request
    +    Traceback (most recent call last):
    +      File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/net/handler.py", line 161, in process_request
         getattr(handler, 'do_{0}'.format(self.command))(self.request_name)
    -  File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/protocol/dav/workflow/formatsfolder.py", line 72, in do_PUT
    -    raise CoilsException('Format creation failed.')
    -CoilsException: Format creation failed.
    -DEBUG:context:Closing context b7aa8f7b-247c-4d20-92af-ab8f42454e86
    +      File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc1-py2.6.egg/coils/protocol/dav/workflow/formatsfolder.py", line 72, in do_PUT
    +        raise CoilsException('Format creation failed.')
    +    CoilsException: Format creation failed.
    +    DEBUG:context:Closing context b7aa8f7b-247c-4d20-92af-ab8f42454e86