Skip to content

Commit

Permalink
Fix #10370.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Dec 20, 2018
1 parent 73ddf5c commit d15b5f3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -27,6 +27,7 @@
import ch.cyberduck.core.URIEncoder;
import ch.cyberduck.core.UrlProvider;
import ch.cyberduck.core.UserDateFormatterFactory;
import ch.cyberduck.core.WebUrlProvider;
import ch.cyberduck.core.exception.BackgroundException;
import ch.cyberduck.core.preferences.PreferencesFactory;
import ch.cyberduck.core.shared.DefaultUrlProvider;
Expand Down Expand Up @@ -60,9 +61,7 @@ public class SwiftUrlProvider implements UrlProvider {
= new PathContainerService();

private final SwiftSession session;

private final SwiftRegionService regionService;

private final Map<Region, AccountInfo> accounts;

public SwiftUrlProvider(final SwiftSession session) {
Expand Down Expand Up @@ -94,6 +93,7 @@ public DescriptiveUrlBag toUrl(final Path file) {
list.addAll(new DefaultUrlProvider(session.getHost()).toUrl(file));
}
else {
list.addAll(new WebUrlProvider(session.getHost()).toUrl(file));
list.add(new DescriptiveUrl(
URI.create(region.getStorageUrl(containerService.getContainer(file).getName(), containerService.getKey(file)).toString()),
DescriptiveUrl.Type.provider,
Expand Down

0 comments on commit d15b5f3

Please sign in to comment.