Skip to content
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

Duck CLI: Cannot invoke "ch.cyberduck.core.PathAttributes.getRegion()" #14028

Closed
jasttw opened this issue Dec 31, 2022 · 2 comments · Fixed by #14031
Closed

Duck CLI: Cannot invoke "ch.cyberduck.core.PathAttributes.getRegion()" #14028

jasttw opened this issue Dec 31, 2022 · 2 comments · Fixed by #14031
Assignees
Labels
bug cli Command Line Interface

Comments

@jasttw
Copy link

jasttw commented Dec 31, 2022

This ticket system is to report bugs and feature requests. For support, visit the help page first.

  • If you have trouble connecting to a server or your login credentials are not valid, try to resolve the issue with the assistance of your hosting service provider. Any such ticket will be closed with a resolution of thirdparty.

Describe the bug
using CLI Cyberduck 8.5.3 (38959). I am not able to authenticate cloud services. When i type duck --list onedrive: I get this (removed client ID from links):

OneDrive connection opened…
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=(...)&code_challenge_method=S256&redirect_uri=https://cyberduck.io/oauth&response_type=code&scope=files.readwrite.all%20offline_access%20user.read&state=STqI
Disconnecting graph.microsoft.com
Unknown. Cannot invoke "ch.cyberduck.core.PathAttributes.getRegion()" because the return value of "ch.cyberduck.core.Path.attributes()" is null.

the same thing happens when i try duck --list dropbox:/

Dropbox connection opened…
https://www.dropbox.com/1/oauth2/authorize?client_id=(...)&code_challenge=(...)&code_challenge_method=S256&redir
Disconnecting www.dropbox.com
Unknown. Cannot invoke "ch.cyberduck.core.PathAttributes.getRegion()" because the return value of "ch.cyberduck.core.Path.attributes()" is null.

To Reproduce
Steps to reproduce the behavior:
1.Enter the command duck --list onedrive: or duck --list dropbox:/

Expected behavior
Print a list of files in the cloud service or authenticate the account if it was not authenticated.

Desktop (please complete the following information):

  • Raspberry PI OS Debian Bullseye
  • Ubuntu Server 22.04
@AliveDevil AliveDevil self-assigned this Jan 2, 2023
@AliveDevil AliveDevil added bug cli Command Line Interface labels Jan 2, 2023
@AliveDevil
Copy link
Contributor

Confirmed here, thanks for bringing this to our attention.

@AliveDevil
Copy link
Contributor

We aren't waiting for oauth prompt, thus continuing and failing.

[background-1] WARN  ch.cyberduck.core.threading.AbstractRetryCallable - No retry for failure BackgroundException{class=class ch.cyberduck.core.exception.LoginCanceledException, file=null, message='null', detail='Access denied', cause='BackgroundException{class=class ch.cyberduck.core.exception.LocalAccessDeniedException, file=null, message='Access denied', detail='Failed to launch web browser for https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=f40bc18f-cd02-4212-b7f1-15243e4e2ad3&code_challenge=M-DHg0jIKSh7bqqQSBp_yqWwR-JrUpQxBN0Ob2w1DLE&code_challenge_method=S256&redirect_uri=https://cyberduck.io/oauth&response_type=code&scope=files.readwrite.all%20offline_access%20user.read&state=2DEFDpwe&prompt=select_account', cause='null'}'}

Something here: d684c5c

Need to change TerminalPreferences to reflect changes in Preferences factories:
056a87d#diff-06a3023764b6e7863df7d32b2ced43a2beabe0fb97d5128927eb301bd5442449R1384

@AliveDevil AliveDevil assigned dkocher and unassigned AliveDevil Jan 2, 2023
@dkocher dkocher linked a pull request Jan 2, 2023 that will close this issue
AliveDevil added a commit that referenced this issue Jan 2, 2023
Fix return value to notify URL is handled.
dkocher added a commit that referenced this issue Jan 4, 2023
Make sure we either get result or exception regardless of failure type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cli Command Line Interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants