darcs

Issue 1718 impossible to pull/get a repository based at / using ssh

Title impossible to pull/get a repository based at / using ssh
Priority bug Status given-up
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, tittoassini
Assigned To
Topics FilePath, SSH

Created on 2009-12-15.11:57:19 by tittoassini, last changed 2017-07-30.23:43:17 by gh.

Messages
msg9635 (view) Author: tittoassini Date: 2009-12-15.11:57:17
Setup:

Server:
Ubuntu 8.0.4
darcs 2.3.1
Create a repository in the root directory (/)

Client:
Ubuntu 8.0.4
Running darcs 2.3.1
Try to pull the repository from server with command:

darcs get root@kamus.it:/

or:

darcs get root@kamus.it:/

I get:

Invalid repository:  root@kamus.it:.

darcs failed:  (scp) failed to fetch: root@kamus.it:./_darcs/hashed_inventory


Regards,

        titto




-- 
Pasqualino "Titto" Assini, Ph.D.
http://quicquid.org/
msg9636 (view) Author: kowey Date: 2009-12-15.11:59:49
Yuck, another filepath parsing bug (it seems).

Unless I'm missing something, this isn't something we can easily represent in 
our functional test suite (bunch of shell scripts) because of the remote server 
requirement.

So it looks like we just need somebody to develop some unit tests instead, one 
that will help us reproduce the error.

Titto: if you're familiar with Haskell, we'd love some help :-)
msg9637 (view) Author: kowey Date: 2009-12-15.12:01:59
Titto: actually, have a look at tests/external.sh
We test SSH stuff there by setting DARCS_SSH to some shell script.

Do you think I might be able to interest you in writing a regression test for 
this?

Hints on how to do this: http://wiki.darcs.net/Development/RegressionTests
msg9638 (view) Author: tittoassini Date: 2009-12-15.12:33:45
Hi Eric,

testing the bug is easy and does not require a remote server as one
can ssh to his own local machine.

However, is it acceptable to have a test that creates (temporarily) a
darcs repo in the tester's machine root directory?

    titto

2009/12/15 Eric Kow <bugs@darcs.net>:
>
> Eric Kow <kowey@darcs.net> added the comment:
>
> Titto: actually, have a look at tests/external.sh
> We test SSH stuff there by setting DARCS_SSH to some shell script.
>
> Do you think I might be able to interest you in writing a regression test for
> this?
>
> Hints on how to do this: http://wiki.darcs.net/Development/RegressionTests
>
> ----------
> assignedto:  -> tittoassini
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue1718>
> __________________________________
>



-- 
Pasqualino "Titto" Assini, Ph.D.
http://quicquid.org/
msg9639 (view) Author: kowey Date: 2009-12-15.12:43:14
On Tue, Dec 15, 2009 at 13:33:36 +0100, Pasqualino Titto Assini wrote:
> testing the bug is easy and does not require a remote server as one
> can ssh to his own local machine.

Right you are, but it's still not completely easy as it requires that
the user is running ssh on his local machine that it's configured to let
the user log in without some kind of intervention (password, key).

> However, is it acceptable to have a test that creates (temporarily) a
> darcs repo in the tester's machine root directory?

Whoops, no I don't think that's acceptable; I guess I was implicitly
hoping there would be a way to do without (for example, check for one
error message [not a repo] vs another [no path found: ./]

Perhaps we have to go the unit testing route after all (of course,
you could also argue that we ought to have unit tests *anyway*)...

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
msg10459 (view) Author: kowey Date: 2010-03-23.16:26:20
So it looks like the route of developing an automated test first is not
going to work for this.  So what we really need is for somebody to
investigate the cause of this, one likely culprit being the filepath
handling code.
History
Date User Action Args
2009-12-15 11:57:19tittoassinicreate
2009-12-15 11:59:54koweysetstatus: unknown -> needs-reproduction
priority: bug
title: BUG: impossible to pull/get a repository based at / using ssh -> impossible to pull/get a repository based at / using ssh
nosy: + kowey
messages: + msg9636
topic: + SSH, FilePath
2009-12-15 12:02:05koweysetassignedto: tittoassini
messages: + msg9637
2009-12-15 12:33:47tittoassinisetmessages: + msg9638
2009-12-15 12:43:16koweysetmessages: + msg9639
2010-03-23 16:26:29koweysetassignedto: tittoassini ->
messages: + msg10459
2017-07-30 23:43:17ghsetstatus: needs-reproduction -> given-up