Cyberduck Mountain Duck CLI

#10156 closed defect (fixed)

Triton: duck.sh URL format invalid

Reported by: tjcelaya Owned by: tjcelaya
Priority: normal Milestone: 6.3.1
Component: triton Version: 6.3
Severity: normal Keywords:
Cc: Architecture:
Platform:

Description

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"

Change History (4)

comment:1 Changed on Nov 29, 2017 at 12:00:50 AM by tjcelaya

  • Status changed from new to assigned

comment:2 Changed on Nov 29, 2017 at 12:09:52 AM by tjcelaya

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.

Last edited on Nov 29, 2017 at 12:13:35 AM by tjcelaya (previous) (diff)

comment:3 Changed on Nov 29, 2017 at 8:01:27 PM by tjcelaya

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()

comment:4 Changed on Nov 29, 2017 at 9:14:08 PM by dkocher

  • Milestone set to 6.3.1
  • Resolution set to fixed
  • Status changed from assigned to closed

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

Note: See TracTickets for help on using tickets.
swiss made software