bzr+ssh://host:/ fails with "invalid port number in url"

Bug #184342 reported by Jari Aalto
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

The syntax bzr+ssh://host:/ fails with "invalid port number". It could equally well treat the empty port part as meaning the default.

--- old description follows ---

In SSH the connect syntax is:

  user@host:/path/to/file

In Bazaar the syntax:

  bzr+ssh://user@host:/path/to/file

gives error

  bzr: ERROR: Invalid url supplied to transport: "invalid port number in url:

Because the port number seems to be mandatory after the colon.

SUGGESTION

1) Please make the syntax compatible with the SSH notation, so that the missing port number
is not considered an error, but as a sign to use default port number of the transport. Here, the SSH 22

2) Please allow writing SSH-style repository locations. E.g. GIT allows
writing repository locations in pure SSH-syntax:

     user@host:/path/to/file

Make this be interpreted by bzr as "bzr+ssh" transport by default

Martin Pool (mbp)
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

I agree about point #2, though it's a different bug, and already discussed in bug 121195.

Revision history for this message
Martin Pool (mbp) wrote :

rcp and url syntax are fundamentally different. The colon is not meant to be there according to the url grammar. However, I agree that we should just treat it as the default.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 184342] Re: bzr+ssh://host:/ fails with "invalid port number in url"

On Mon, 2008-01-21 at 04:18 +0000, Martin Pool wrote:
> rcp and url syntax are fundamentally different. The colon is not meant
> to be there according to the url grammar. However, I agree that we
> should just treat it as the default.

OTOH the : on its own is a good indication that the user is trying rcp
syntax, and we could use that as a way to give the user clear feedback.
-Rob

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Martin Pool (mbp)
description: updated
Changed in bzr:
importance: Medium → Low
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.