Skip to content

[QA] fails to connect with new credentials #164

Description

@jnweiger

Seen with 2.0.2 and core 10.15.0-rc.3. Not a regression: Also seen with 2.0.1

  • To connect create a new app and new token, following the instructions in eg. github/owncloud/QA/tools/hetzner-deploy/ tasks/files_external_dropbox.sh
       Account -> Settings > Apps >
        Apps you connect will show up here. Get started on App Center.
        -> https://www.dropbox.com/apps
         -> [manage] -> [build an app]
 1) Choose an API
  (*) Scoped access New
 2) Choose the type of access you need
  (*) App folder
 3) Name your app
  [oc-qa]
 [x] I agree ...
        -> [Create app]
 Copy paste
        App key:        t7jXXXXXXy8
        App secret:     [show] .....
 Development teams      1/0 ...
 Development users      -> Enable additional users      ??maybe not needed.??
                        1/500

 OAuth2
        Redirect URI:   https://$oc10_fqdn/index.php/settings/admin?sectionid=storage
                -> Add
        Redirect URI:   https://$oc10_fqdn/settings/admin?sectionid=storage
                -> Add
 Switch from 'Settings' to 'Permissions' tab
        Files and folder
                -> [x]
                check all checkboxes in that section.
                -> Submit

firefox https://$oc10_fqdn/index.php/settings/admin?sectionid=storage
 -> Add Storage -> Dropbox V2
  -> paste App key    into [Client ID]
  -> paste App secret into [Client secret]
   -> grant Access
        This app only has a small number of users and may not be the app you were intending to link.
        -> Continue
        oc-qa would like to: View basic information about your Dropbox account ...
        -> Allow

  • the connection remains red. BAD.
  • server log has errors:
{"reqId":"Zo6Z1dLdGkfv5j0WLk1b@wAAAAk","level":3,"time":"2024-07-10T14:25:25+00:00","remoteAddr":"176.7.8.187","user":"admin","app":"files_external","method":"POST","url":"\/apps\/files_external\/globalstorages","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Creating \\\\OCA\\\\Files_external_dropbox\\\\Storage\\\\Dropbox storage failed\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/External\\\/LegacyUtil.php(203): OCA\\\\Files_external_dropbox\\\\Storage\\\\Dropbox->__construct()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(253): OC\\\\Files\\\\External\\\\LegacyUtil::getBackendStatus()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/GlobalStoragesController.php(119): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(169): OCA\\\\Files_External\\\\Controller\\\\GlobalStoragesController->create()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(99): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(925): OC\\\\Route\\\\Router->match()\\n#9 \\\/var\\\/www\\\/owncloud\\\/index.php(32): OC::handleRequest()\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps-external\\\/files_external_dropbox\\\/lib\\\/Storage\\\/Dropbox.php\",\"Line\":118}"}
{"reqId":"Zo6aFccF6iKY4tic2S0-ZAAAAAg","level":3,"time":"2024-07-10T14:26:30+00:00","remoteAddr":"176.7.8.187","user":"kalice@example.com","app":"files_external","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/2?testOnly=false","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Creating \\\\OCA\\\\Files_external_dropbox\\\\Storage\\\\Dropbox storage failed\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/External\\\/LegacyUtil.php(203): OCA\\\\Files_external_dropbox\\\\Storage\\\\Dropbox->__construct()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(253): OC\\\\Files\\\\External\\\\LegacyUtil::getBackendStatus()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/UserGlobalStoragesController.php(124): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(169): OCA\\\\Files_External\\\\Controller\\\\UserGlobalStoragesController->show()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(99): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(925): OC\\\\Route\\\\Router->match()\\n#9 \\\/var\\\/www\\\/owncloud\\\/index.php(32): OC::handleRequest()\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps-external\\\/files_external_dropbox\\\/lib\\\/Storage\\\/Dropbox.php\",\"Line\":118}"}
{"reqId":"Zo6aLeIMcdpBswaSceu@JAAAAAQ","level":1,"time":"2024-07-10T14:26:53+00:00","remoteAddr":"176.7.8.187","user":"--","app":"OC\\User\\Session::loginInOwnCloud","method":"POST","url":"\/login?redirect_url=%252Fsettings%252Fusers","message":"login admin using \"password\" login type"}
{"reqId":"Zo6aN@IMcdpBswaSceu@KQAAAAQ","level":3,"time":"2024-07-10T14:27:03+00:00","remoteAddr":"176.7.8.187","user":"admin","app":"files_external","method":"GET","url":"\/apps\/files_external\/globalstorages\/2?testOnly=true","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Creating \\\\OCA\\\\Files_external_dropbox\\\\Storage\\\\Dropbox storage failed\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/External\\\/LegacyUtil.php(203): OCA\\\\Files_external_dropbox\\\\Storage\\\\Dropbox->__construct()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(253): OC\\\\Files\\\\External\\\\LegacyUtil::getBackendStatus()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(307): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(169): OCA\\\\Files_External\\\\Controller\\\\StoragesController->show()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(99): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(925): OC\\\\Route\\\\Router->match()\\n#9 \\\/var\\\/www\\\/owncloud\\\/index.php(32): OC::handleRequest()\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps-external\\\/files_external_dropbox\\\/lib\\\/Storage\\\/Dropbox.php\",\"Line\":118}"}

Mabye related to #113 ?

Workaround:

  • us an old app, with an api-key / api-secret pair generated in 2022. Then everything works!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions