Closed kspearrin closed 6 years ago
Thanks for your openness @kspearrin! Cannot think you're willing to contribute to this repo!
I don't see this API change mentioned, but I am seeing this with the latest extension:
Mar 20 19:50:16 colo bitwarden: 1.2.3.4 - - [20/Mar/2018:19:50:16 +0000] "GET /api/accounts/revision-date HTTP/1.1" 404 18 0.0008
edit: disregard. this is not new and not breaking anything
Please see #36 and help test these changes to work with the new upstream clients.
Tested Safari extension and it works. But iOS app doesn't load db anymore. It just keeps spinning.
This is because mobile apps don’t have the newest update yet and the fix here isn’t backwards compat. They will go out tomorrow.
@raufis27
Side note: did your safari extension auto update to 1.25.x? I've been trying to test the auto-updates there but it seems like none of my extensions ever update.
FWIW, current android release crashes on sync as well, because Data
isn't populated. It's (hopefully) a short-lived problem, but worth mentioning (and pretty easily rectified by generating a Data
hash before sending the cipherDetails
out the door).
The migration went perfectly for me with the auto-updated Firefox extension, and I have a... er... non-trivial database, so a big :+1: here.
I had some code in there to supply a legacy Data
object in the old format (as well as Uri
from Uris[0].Uri
) but Cipher#update_from_params
didn't support updating records from old clients, so I took it out. Since the new mobile clients are releasing tomorrow, I'll just wait to test with those.
@kspearrin I reinstalled extension. Didn't use update function.
Some issues:
Confirmed, adding URI to an item seems to create a blank URI field.
That should be fixed with c3e0eb1f3. It was saving but the client was not reading it back properly because of the case.
@kspearrin It'd be really nice if all of the apps and API could agree on a case format 😀 It's odd that the browser extension sends everything in lowercase ("login": { "uris": [ "uri":
) but then requires it back as "Login": { "Uris": [ "Uri":
.
Yea, our server is case insensitive, so I guess we get a little lax with that. :-/ ideally everything would be camel.
Thanks for testing everyone, this functionality is now in HEAD
@jcs Just thought you should know that there are some breaking changes coming to cipher API models.
Cipher.Login.Uri
on the request and response models is being deprecated in favor ofCipher.Login.Uris
, an array of{ "Uri": string, "Match": enum }
Data
prop is being deprecated.Name
,Notes
, andFields
to the root object.Login
,Card
,Identity
, andSecureNote
to the root object (their prop values were part of the dynamicData
property in the past).Our API will handle these changes in a backwards compatible way for a few iterations since outdated client apps will still be expecting the old models for some time.
These changes are already in the
Core
API project and refactoring is being done in all client apps over the next few days.