Project

General

Profile

Bug #48350

Fix Cloud Sync Webdav traceback

Added by William Grzybowski about 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

[2018/09/22 10:09:45] (WARNING) application.call_method():182 - Exception while calling cloudsync.update(*[4, {'description': 'owncloudwmw', 'direction': 'PULL', 'credentials': 3, 'encryption': False, 'path': '/mnt/raid1/share/owncloudwmw', 'transfer_mode': 'COPY', 'args': '', 'enabled': True, 'attributes': {'folder': 'BI-erpnext'}, 'schedule': {'minute': '0', 'hour': '*', 'dom': '*', 'month': '*', 'dow': '*'}}])
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 155, in call_method
    result = await self.middleware.call_method(self, message)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1033, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 973, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/service.py", line 283, in update
    f'{self._config.namespace}.update', self, self.do_update, [id, data]
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 973, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 664, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 447, in do_update
    await self._validate_folder(verrors, "cloud_sync_update", cloud_sync)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 342, in _validate_folder
    args=data.get("args"),
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 664, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 506, in list_directory
    return await self.ls(dict(cloud_sync, credentials=credentials), path)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 510, in ls
    with RcloneConfig(config) as config:
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/cloud_sync.py", line 53, in __enter__
    config.update(dict(self.cloud_sync["attributes"], **self.provider.get_task_extra(self.cloud_sync)))
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/../rclone/remote/webdav.py", line 20, in get_task_extra
    return dict(vendor=task["attributes"]["vendor"].lower())
KeyError: 'vendor'
task    
{
'args': '', 
'attributes': {
'folder': ''
}, 
'credentials': {
'attributes': {
'pass': '********', 
'url': 'http://192.168.1.3/owncloud/remote.php/webdav/', 
'user': 'oneit', 
'vendor': 'OWNCLOUD'
}, 
'id': 3, 
'name': 'owncloudwmw', 
'provider': 'WEBDAV'
}, 
'encryption': False, 
'encryption_password': ********, 
'encryption_salt': '', 
'filename_encryption': False
}

https://sentry.ixsystems.com/ixsystems/freenas-middleware/issues/15792/

Associated revisions

Revision b52f4a12 (diff)
Added by Vladimir Vinogradenko almost 2 years ago

Fix Cloud Sync Webdav traceback Ticket: #48350

History

#1 Updated by William Grzybowski about 2 years ago

  • Description updated (diff)

#2 Updated by Bug Clerk almost 2 years ago

  • Status changed from Unscreened to In Progress

#3 Updated by Bug Clerk almost 2 years ago

  • Status changed from In Progress to Ready for Testing

#4 Updated by Dru Lavigne almost 2 years ago

  • Subject changed from Cloud Sync Webdav traceback to Fix Cloud Sync Webdav traceback
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#5 Updated by Bonnie Follweiler almost 2 years ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

#7 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF