Project

General

Profile

Bug #35873

Fix error when changing Cloud Credential Name in new UI

Added by Timothy Moore II about 2 years ago. Updated about 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Severity:
Med High
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

I'm testing the new UI with a FreeNAS Mini on INTERNAL8

I added a new Cloud Credential for a test Backblaze account, then realised I needed to change the name. I opened the "Edit" screen for the credential, changed the "Name" field, and clicked "Save". An error called " 'id' " appears, with this additional text:

```
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 154, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1013, in call_method
return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 953, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/service.py", line 282, in update
f'{self._config.namespace}.update', self, self.do_update, [id, data]
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 953, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 658, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/backup.py", line 76, in do_update
return (await self.middleware.call("cloudsync.credentials.update", id, self._proxy(data)))["id"]
KeyError: 'id'
```

Interestingly enough, after navigating away and returning to the Cloud Credentials screen a few minutes later, the new name was applied to the credential. Attempting to edit and change the name of the credential still generates that 'id' error message though.


Related issues

Related to FreeNAS - Bug #34942: Non descriptive error when editing a Cloud CredentialClosed

Associated revisions

Revision d18fbbd1 (diff)
Added by Vladimir Vinogradenko about 2 years ago

Fix updating cloud credentials in new UI Ticket: #35873

History

#1 Updated by William Grzybowski about 2 years ago

  • Category changed from GUI (new) to Middleware
  • Assignee changed from Release Council to Vladimir Vinogradenko
  • Target version changed from Backlog to 11.2-BETA2
  • Severity changed from New to Med High
  • Seen in changed from Unspecified to Master - FreeNAS Nightlies
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#2 Updated by Dru Lavigne about 2 years ago

  • Target version changed from 11.2-BETA2 to 11.2-BETA1

#3 Updated by Dru Lavigne about 2 years ago

  • Subject changed from Error when changing Cloud Credential Name to Fix error when changing Cloud Credential Name in new UI
  • Status changed from Unscreened to In Progress
  • Needs Merging changed from No to Yes

#4 Updated by Vladimir Vinogradenko about 2 years ago

  • Status changed from In Progress to Ready for Testing

#5 Updated by Dru Lavigne about 2 years ago

  • Needs Merging changed from Yes to No

#6 Avatar?id=55038&size=24x24 Updated by Zackary Welch about 2 years ago

  • Related to Bug #34942: Non descriptive error when editing a Cloud Credential added

#7 Avatar?id=55038&size=24x24 Updated by Zackary Welch about 2 years ago

  • Related to Bug #34942: Non descriptive error when editing a Cloud Credential added

#8 Avatar?id=55038&size=24x24 Updated by Zackary Welch about 2 years ago

  • Related to deleted (Bug #34942: Non descriptive error when editing a Cloud Credential)

#9 Avatar?id=55038&size=24x24 Updated by Zackary Welch about 2 years ago

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

No longer get an 'id' error when editing a Cloud Credential. I tested this with Google Cloud but it seems it's been fixed overall.

#10 Updated by Dru Lavigne about 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF