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

Triton: duck.sh URL format invalid #10156

Closed
cyberduck opened this issue Nov 29, 2017 · 3 comments
Closed

Triton: duck.sh URL format invalid #10156

cyberduck opened this issue Nov 29, 2017 · 3 comments
Labels
bug fixed triton Joyent Triton Object Storage
Milestone

Comments

@cyberduck
Copy link
Collaborator

3d620ce created the issue

The suggested format for accessing Triton through duck.sh looks like the following:

Joyent Triton Object Storage (us-east)
	iterate GmbH://<hostname>/<folder>/<file>

Invoking any kind of action using that format (enclosed in quotes so it's read as a single argument) results in the following error:

Error. Unknown application error. The String is not a valid Base64-encoded string.

Currently debugging to figure out how "iterate GmbH" became our protocol identifier instead of "manta"

@cyberduck
Copy link
Collaborator Author

3d620ce commented

It seems like this is the line which renders the template, but since getProvider just calls getIdentifier I'm not sure how this would occur:

protocols.append("\t").append(String.format("%s://<hostname>/<folder>/<file>", p.isBundled() ? p.getIdentifier() : p.getProvider()));

in cli/src/java/ch/cyberduck/cli/TerminalHelpPrinter.java. Still tracking down where the protocol is actually read.

@cyberduck
Copy link
Collaborator Author

3d620ce commented

To clarify the previous edit, I was looking at the Protocol class instead of the Profile class.

I'm under the impression the aforementioned line is actually the one that needs to be changed. It doesn't seem like the fact that the profile is bundled should impact the format of the URL.

Since using manta://... works at the present I'll open a PR to change

p.isBundled() ? p.getIdentifier() : p.getProvider()

to just

p.getIdentifier()

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In 0d536d9. We cannot make this change as installed profiles share the identifier of the parent bundled protocol.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed triton Joyent Triton Object Storage
Projects
None yet
Development

No branches or pull requests

1 participant