Skip to content

Commit

Permalink
Test credentials with GET for root.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 4, 2024
1 parent eec4701 commit f2aa0df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions s3/src/main/java/ch/cyberduck/core/s3/S3Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/

import ch.cyberduck.core.Credentials;
import ch.cyberduck.core.DisabledListProgressListener;
import ch.cyberduck.core.Host;
import ch.cyberduck.core.HostKeyCallback;
import ch.cyberduck.core.ListService;
Expand Down Expand Up @@ -349,9 +350,8 @@ public void login(final LoginCallback prompt, final CancelCallback cancel) throw
else {
final Path home = new DelegatingHomeFeature(new DefaultPathHomeFeature(host)).find();
if(home.isRoot()) {

log.debug("Skip querying region for {}", home);

log.debug("Skip querying region for {}", home);
new S3ListService(this, acl).list(home, new DisabledListProgressListener());
}
else {
final Location.Name location = new S3LocationFeature(this, regions).getLocation(home);
Expand Down

0 comments on commit f2aa0df

Please sign in to comment.