Re: [JGIT PATCH] Test and fix handling of quotes in ~/.ssh/config
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Sep 22, 2008, 21:07 UTC
- Message-ID
- <20080922210734.GE3669@spearce.org>
- In-Reply-To
- <200809222242.29165.robin.rosenberg.lists@dewire.com>
Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:
Show 5 quoted lines
> söndagen den 21 september 2008 13.25.19 skrev Jonas Fonseca:
> > + assertEquals("bad.tld\"", osc.lookup("bad").getHostName());
> This one is really (as you noted) bad so we shouldn't allow it at all. A new
> subclass of TransportExcpeption should be thrown to indicate a serious
> configuration problem when attempting to use the option.Probably so.
But then we need to mark that the Host is invalid, because we are serving requests from a cache, not from the file itself. And TransportException isn't something that the SshSessionFactory knows about. Probably better to use a a subclass of IOException.
-- Shawn.