GithubHelp home page GithubHelp logo

Comments (8)

tobiasKaminsky avatar tobiasKaminsky commented on August 24, 2024

About which endpoint do you talk about?
Store API says:
409 conflict: if a private key for the user already exists

from end_to_end_encryption.

ardevd avatar ardevd commented on August 24, 2024

Ah, my bad. I overlooked that one. I realize now that perhaps the issue was with the Android app but I tried the following:

  1. Post a new keypair to the E2E app.
  2. Delete the public key
  3. Re-install the Android app. It will then prompt you to generate a new pass phrase. After which it posts the keypair to the server again where the E2E app seemingly ignores the private key (seemingly because it already exists) and then accepts the public key. The end result is a keypair mismatch.

Hope this made sense.

From the API point of view it makes sense that the behavior is this way. But the end-result is flawed. Im thinking the Android app should probably not upload the public key if the private key was rejected.

from end_to_end_encryption.

ardevd avatar ardevd commented on August 24, 2024

UPDATE: Looking through the Android app code I see that it does in fact check the return value when posting the private key. That means that the server seemingly returned 200 OK even though a private key already existed.

from end_to_end_encryption.

tobiasKaminsky avatar tobiasKaminsky commented on August 24, 2024

We first generate/use the public key and only if the public was stored correctly on server, we continue with private key.
Isn't this solved via nextcloud/android#2153?

from end_to_end_encryption.

ardevd avatar ardevd commented on August 24, 2024

Yes, though in my testing the server returned 200 OK even though a private key already existed. I will do some more testing and see if I can reproduce the issue.

from end_to_end_encryption.

georgehrke avatar georgehrke commented on August 24, 2024

@ardevd Were you ever able to reproduce the issue?

from end_to_end_encryption.

no-response avatar no-response commented on August 24, 2024

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

from end_to_end_encryption.

no-response avatar no-response commented on August 24, 2024

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

from end_to_end_encryption.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.