Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2272

Save username changes when updating credentials

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.4.5
    • Component/s: Framework
    • Release Notes Summary:
      Fixed the username display in the Accounts tab
    • Release Notes Description:
      Hide

      To better understand the fix, let's explain the bug.

      Let's add an account using a placeholder username (as it is generally done when the application is widely deployed with automation):

      python -m nxdrive bind-server --password "azerty" --local-folder "$HOME/Nuxeo Drive" "foo" "http://localhost:8080/nuxeo"
      

      The user "foo" will be used. When the user will start the application for the first time, it will be asked to update credentials.

      The user will click on the link to update credentials, fill the good username, password and validate.

      Then, the username will not be updated in the GUI. Even if the user entered something else different than "foo" as username, it will still be displayed as "foo".

      We fixed that GUI issue.

      Show
      To better understand the fix, let's explain the bug. Let's add an account using a placeholder username (as it is generally done when the application is widely deployed with automation): python -m nxdrive bind-server --password "azerty" -- local -folder " $HOME /Nuxeo Drive" "foo" "http://localhost:8080/nuxeo" The user "foo" will be used. When the user will start the application for the first time, it will be asked to update credentials. The user will click on the link to update credentials, fill the good username, password and validate. Then, the username will not be updated in the GUI. Even if the user entered something else different than "foo" as username, it will still be displayed as "foo". We fixed that GUI issue.
    • Epic Link:
    • Tags:

      Description

      Situation

      Let's add an account using a placeholder username:

      python -m nxdrive bind-server --password "azerty" --local-folder "$HOME/Nuxeo Drive" "foo" "http://localhost:8080/nuxeo"
      

      As seen on the screenshot 1, all is fine and Drive is asking for credentialls update.

      The user will click on the link to update credentials, fill the real username and password and validate.

      Then, as seen on the screenshot 2, the username will not be updated in the GUI. After investigations, the username is neither updated in the database. So even after restarting the app, the username will remain obsolete.

      Fix

      1. Update the username in the database (critical).
      2. Update the GUI with up-to-date usernames (less critical, a restart of the app will work when the fix 1 will be done).

        Attachments

        1. driveissue1.png
          72 kB
          Mickaël Schoentgen
        2. driveissue2.png
          67 kB
          Mickaël Schoentgen

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h