You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duplicated mount configuration after going back during oauth2 flow #28479
Go to the admin settings and configure a gdrive mount
Setup the client id and secret, and click on "grant access"
During the oauth2 flow in the browser, go back with the browser navigation
Expected behaviour
Admin settings page should show without the previous mount being configured. Showing a wrong state might be acceptable as long as access can be granted later.
Actual behaviour
Duplicated configuration of the previous mount is shown.
Server configuration
Operating system: ubuntu 16.04
Web server: apache 2.4.7
Database: mysql
PHP version: 7.0
ownCloud version: stable10 (10.0.2 at July, 25th)
Updated from an older ownCloud or fresh install: fresh install
This happened twice in a row after a fresh installation, both in admin and personal settings, but I couldn't reproduce it afterwards following the same steps.
Looks like the duplication might be "valid" in the sense that those mounts are saved in the DB.
Reproduced by crazy-clicking the "grant access" button over a new mount point. Multiple queries are sent to the server to save that mount point which causes the duplication.
Looks like this has been broken from the beginning since it's always sending duplicate requests just clicking once in the button. The fact that usually only one storage appears is likely because the rest of the duplicate requests don't trigger or reach the server before the browser changes the page.
I've constantly reproduced the error adding a debugger and breaking the js code (to prevent the browser to change the page) near the window.location around line 1455 of the settings.js file. There are always several requests to an oauth endpoint. The number of requests increases according to the mounts that are set.
Activity
jvillafanez commentedon Jul 25, 2017
This happened twice in a row after a fresh installation, both in admin and personal settings, but I couldn't reproduce it afterwards following the same steps.
PVince81 commentedon Jul 25, 2017
Yeah I remember seeing this before too, thanks for reporting
davitol commentedon Sep 14, 2017
Also reproduced with oC 10.0.3.RC1 version. Something to be fixed in the future
PVince81 commentedon Sep 14, 2017
setting to p2-high and "planned", this seems to happen more often than I thought
PVince81 commentedon Sep 18, 2017
@jvillafanez can you have a look ?
jvillafanez commentedon Sep 22, 2017
Looks like the click-back messes might mess with the "natural" oauth1/2 flow and it's causing this issue. Still under investigation.
jvillafanez commentedon Oct 4, 2017
Looks like the duplication might be "valid" in the sense that those mounts are saved in the DB.
Reproduced by crazy-clicking the "grant access" button over a new mount point. Multiple queries are sent to the server to save that mount point which causes the duplication.No more crazy-clicking, see below
jvillafanez commentedon Oct 4, 2017
Looks like this has been broken from the beginning since it's always sending duplicate requests just clicking once in the button. The fact that usually only one storage appears is likely because the rest of the duplicate requests don't trigger or reach the server before the browser changes the page.
I've constantly reproduced the error adding a debugger and breaking the js code (to prevent the browser to change the page) near the window.location around line 1455 of the settings.js file. There are always several requests to an oauth endpoint. The number of requests increases according to the mounts that are set.
jvillafanez commentedon Oct 4, 2017
Ongoing fix in #29145
jvillafanez commentedon Oct 31, 2017
Fix merged and expected in 10.0.4
lock commentedon Aug 1, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.