-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model inconsistency when sending a new password profile from the Android client #762
Comments
@ogarcia thanks for spotting this, mobile
backend
|
@edouard-lopez thank you. Finally I have solved the problem on my side accepting the inconsistency of the model because I understand that it will take @guillaumevincent more time to solve it. In Rockpass it now works correctly, but with time this inconsistency should be fixed. |
Oh nice spot, yes I should fix this |
@ogarcia I can't find where number was used in the android version. The client API (javascript and mobile apps) are using I added some retro compatibility test on the server. lesspass/containers/backend/api/tests/tests_passwords.py Lines 48 to 88 in 8c19c8d
You may want to change this on your server implementation before I push the new client. |
oh I'm sorry, @edouard-lopez shows the error in the mobile app Edit: we are sending number and digits, I removed number that is incorrect. |
@guillaumevincent The preference to use That is why I believe that in many implementations they have preferred to use the word |
I understand. No, I can also change the implementation if the correct model is to use |
No I'm not sure. For now don't touch anything. I will make the client work with Today I think only the mobile application send |
Thanks to this patch, clients should become compatible soon |
Perfect. I will wait a while (a few months) before updating the server and change Also, by testing I have discovered that in my case I would have to modify the serializer to be able to accept indistinctly |
There is a model inconsistency when sending a new password profile from the Android client (and maybe from iOS) in the
numbers
field.When a profile is sent from Android it looks like this:
But when it is sent from the extension or from the web it has this other scheme
As you can see there is a difference. Mobile clients send the
number
field and the rest send thenumbers
field which is an inconsistency in the model.This is affecting Rockpass, I can fix it, but I think it would be more "elegant" to use the same model in all requests to the server.
UPDATE: Not only is there inconsistency in
numbers
, the mobile application sends adigits
field (which I understand is deprecated) and does not send theversion
field.The text was updated successfully, but these errors were encountered: