test_ftp_auth_keyfile reported to fail on Windows #2398

Closed
opened 2015-04-03 17:23:40 +00:00 by daira · 6 comments
daira commented 2015-04-03 17:23:40 +00:00
Owner

Reported by WinLAFS on tahoe-dev (against master):

[ERROR]
Traceback (most recent call last):
  File "c:\lafs\src\allmydata\test\test_client.py", line 220, in test_ftp_auth_keyfile
    c = client.Client(basedir) # just make sure it can be instantiated
  File "c:\lafs\src\allmydata\client.py", line 151, in __init__
    self.init_ftp_server()
  File "c:\lafs\src\allmydata\client.py", line 470, in init_ftp_server
    s = ftpd.FTPServer(self, accountfile, accounturl, ftp_portstr)
  File "c:\lafs\src\allmydata\frontends\ftpd.py", line 318, in __init__
    c = AccountFileChecker(self, accountfile)
  File "c:\lafs\src\allmydata\frontends\auth.py", line 34, in __init__
    for line in open(abspath_expanduser_unicode(accountfile), "r"):
exceptions.IOError: [Errno 2] No such file or directory: u'\\\\?\\C:\\lafs\\_trial_temp\\private\\accounts'

allmydata.test.test_client.Basic.test_ftp_auth_keyfile
Reported by WinLAFS on tahoe-dev (against master): ``` [ERROR] Traceback (most recent call last): File "c:\lafs\src\allmydata\test\test_client.py", line 220, in test_ftp_auth_keyfile c = client.Client(basedir) # just make sure it can be instantiated File "c:\lafs\src\allmydata\client.py", line 151, in __init__ self.init_ftp_server() File "c:\lafs\src\allmydata\client.py", line 470, in init_ftp_server s = ftpd.FTPServer(self, accountfile, accounturl, ftp_portstr) File "c:\lafs\src\allmydata\frontends\ftpd.py", line 318, in __init__ c = AccountFileChecker(self, accountfile) File "c:\lafs\src\allmydata\frontends\auth.py", line 34, in __init__ for line in open(abspath_expanduser_unicode(accountfile), "r"): exceptions.IOError: [Errno 2] No such file or directory: u'\\\\?\\C:\\lafs\\_trial_temp\\private\\accounts' allmydata.test.test_client.Basic.test_ftp_auth_keyfile ```
tahoe-lafs added the
code-frontend-ftp-sftp
normal
defect
1.10.0
labels 2015-04-03 17:23:40 +00:00
tahoe-lafs added this to the undecided milestone 2015-04-03 17:23:40 +00:00
tahoe-lafs modified the milestone from undecided to 1.10.1 2015-04-12 22:07:59 +00:00
daira commented 2015-04-12 22:09:55 +00:00
Author
Owner

Release-blocker because this is a new test for this release, and it should pass on all platforms.

Release-blocker because this is a new test for this release, and it should pass on all platforms.
daira commented 2015-04-13 23:22:52 +00:00
Author
Owner

I can reproduce this. Looking at it now.

I can reproduce this. Looking at it now.
daira commented 2015-04-13 23:38:11 +00:00
Author
Owner

For some reason the test is looking for _trial_temp\private\accounts, which does not exist, rather than _trial_temp\client.Basic.test_ftp_auth_keyfile\private\accounts which does. Will investigate further at Nuts & Bolts tomorrow.

For some reason the test is looking for `_trial_temp\private\accounts`, which does not exist, rather than `_trial_temp\client.Basic.test_ftp_auth_keyfile\private\accounts` which does. Will investigate further at Nuts & Bolts tomorrow.
daira commented 2015-04-13 23:40:30 +00:00
Author
Owner

Oh, probably it's because a relative path private\accounts is being expanded relative to the working directory _trial_temp, rather than the node directory of the test. But why is that failing only on Windows?

Oh, probably it's because a relative path `private\accounts` is being expanded relative to the working directory `_trial_temp`, rather than the node directory of the test. But why is that failing only on Windows?
daira commented 2015-04-23 21:52:30 +00:00
Author
Owner

Fixed in eb34e0d.

Fixed in eb34e0d.
daira closed this issue 2015-04-23 21:52:30 +00:00
daira commented 2015-04-23 21:54:11 +00:00
Author
Owner

The problem was that Windows used a different code path to expand the path, and that code path hadn't been updated to take account of the base parameter to fileutil.abspath_expanduser_unicode.

The problem was that Windows used a different code path to expand the path, and that code path hadn't been updated to take account of the `base` parameter to `fileutil.abspath_expanduser_unicode`.
daira reopened this issue 2015-05-19 16:42:18 +00:00
tahoe-lafs added the
fixed
label 2015-05-19 16:42:30 +00:00
daira closed this issue 2015-05-19 16:42:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#2398
No description provided.