unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15058: 24.3; ftp is still broken
@ 2013-08-09 10:10 Devon Sean McCullough
  2013-08-09 10:31 ` Eli Zaretskii
  2013-08-09 19:02 ` Glenn Morris
  0 siblings, 2 replies; 18+ messages in thread
From: Devon Sean McCullough @ 2013-08-09 10:10 UTC (permalink / raw)
  To: 15058

emacs -Q /ftp@ftp.gnu.org:

Should display the FTP.GNU.ORG: directory but instead bombs -
for details, look in the *ftp ftp@ftp.gnu.org* buffer.

In GNU Emacs 24.3.2 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36)
 of 2013-07-09 on Apple-Computers-MacBook-Air.local
Windowing system distributor `Apple', version 10.3.1038
Configured using:
 `configure '--with-ns' 'CC=gcc''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o r t SPC e m SPC SPC <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Opening FTP connection to ftp.gnu.org...done
Logging in as user ftp@ftp.gnu.org...done
Getting PWD... [2 times]
Warning! Unable to get home directory
Getting PWD... [2 times]
byte-code: Unable to obtain CWD

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rfc822 mml easymenu mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils ange-ftp
tramp-ftp tramp tramp-compat auth-source eieio byte-opt bytecomp
byte-compile cconv gnus-util mm-util mail-prsvr password-cache
tramp-loaddefs shell pcomplete comint ansi-color ring format-spec advice
help-fns cl-lib advice-preload time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process ns multi-tty emacs)






^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 10:10 bug#15058: 24.3; ftp is still broken Devon Sean McCullough
@ 2013-08-09 10:31 ` Eli Zaretskii
       [not found]   ` <C1CBBAA1-17C8-4B9C-AE7F-4DAE0A1D3963@jovi.net>
  2013-08-09 14:12   ` Stefan Monnier
  2013-08-09 19:02 ` Glenn Morris
  1 sibling, 2 replies; 18+ messages in thread
From: Eli Zaretskii @ 2013-08-09 10:31 UTC (permalink / raw)
  To: Devon Sean McCullough; +Cc: 15058

> From: Devon Sean McCullough <Emacs-Hacker2013@jovi.net>
> Date: Fri, 9 Aug 2013 18:10:49 +0800
> 
> emacs -Q /ftp@ftp.gnu.org:
> 
> Should display the FTP.GNU.ORG: directory but instead bombs -
> for details, look in the *ftp ftp@ftp.gnu.org* buffer.

Try this instead:

  emacs -Q /ftp:ftp@ftp.gnu.org:

IOW, you must have the METHOD: part before the URL.

I think this is a cockpit error, since the Emacs User Manual clearly
describes the correct syntax.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
       [not found]   ` <C1CBBAA1-17C8-4B9C-AE7F-4DAE0A1D3963@jovi.net>
@ 2013-08-09 13:45     ` Eli Zaretskii
  2013-08-09 15:53       ` Glenn Morris
                         ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Eli Zaretskii @ 2013-08-09 13:45 UTC (permalink / raw)
  To: Devon Sean McCullough; +Cc: 15058

> From: Devon Sean McCullough <Emacs-Hacker2013@jovi.net>
> Date: Fri, 9 Aug 2013 21:03:40 +0800
> 
> Really?  When was /HOST: syntax deprecated?

It wasn't.

Actually, I take back what I wrote earlier: your original example
works fine for me, even without the explicit "ftp:".

Maybe it's a Darwin thing or something specific to your system setup.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 10:31 ` Eli Zaretskii
       [not found]   ` <C1CBBAA1-17C8-4B9C-AE7F-4DAE0A1D3963@jovi.net>
@ 2013-08-09 14:12   ` Stefan Monnier
  1 sibling, 0 replies; 18+ messages in thread
From: Stefan Monnier @ 2013-08-09 14:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Devon Sean McCullough, 15058

>> emacs -Q /ftp@ftp.gnu.org:
> Try this instead:
>   emacs -Q /ftp:ftp@ftp.gnu.org:

I guess Tramp could try and output a useful error message to help the
user fix his file name.


        Stefan





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 13:45     ` Eli Zaretskii
@ 2013-08-09 15:53       ` Glenn Morris
  2013-08-09 17:15         ` Devon Sean McCullough
  2013-08-09 17:55         ` Eli Zaretskii
  2013-08-09 18:04       ` Devon Sean McCullough
                         ` (2 subsequent siblings)
  3 siblings, 2 replies; 18+ messages in thread
From: Glenn Morris @ 2013-08-09 15:53 UTC (permalink / raw)
  To: Devon Sean McCullough, 15058


>> From: Devon Sean McCullough <Emacs-Hacker2013@jovi.net>
>> Date: Fri, 9 Aug 2013 21:03:40 +0800
>> 
>> Really?  When was /HOST: syntax deprecated?

That's not what you used. You used /METHOD@HOST:, which is not
documented to work.

http://www.gnu.org/software/emacs/manual/html_node/emacs/Remote-Files.html





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 15:53       ` Glenn Morris
@ 2013-08-09 17:15         ` Devon Sean McCullough
  2013-08-09 17:55         ` Eli Zaretskii
  1 sibling, 0 replies; 18+ messages in thread
From: Devon Sean McCullough @ 2013-08-09 17:15 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 15058

On 2013 Aug 9, at 11:53 PM, Glenn Morris wrote:
> You used /METHOD@HOST:, which is not documented to work.

That's /USER@HOST: where USER is ftp, HOST is ftp.gnu.org
and FILENAME is empty to specify the landing page////dir
configured by the server administrator,
a useful and important capability.

> http://www.gnu.org/software/emacs/manual/html_node/emacs/Remote-Files.html
... /USER@HOST:FILENAME ...
  1. If the host name starts with `ftp.' (with dot), Emacs uses FTP.
  2. If the user name is `ftp' or `anonymous', Emacs uses FTP.

		Peace
			--Devon





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 15:53       ` Glenn Morris
  2013-08-09 17:15         ` Devon Sean McCullough
@ 2013-08-09 17:55         ` Eli Zaretskii
  2013-08-09 18:08           ` Glenn Morris
  1 sibling, 1 reply; 18+ messages in thread
From: Eli Zaretskii @ 2013-08-09 17:55 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Emacs-Hacker2013, 15058

> From: Glenn Morris <rgm@gnu.org>
> Date: Fri, 09 Aug 2013 11:53:42 -0400
> 
> 
> >> From: Devon Sean McCullough <Emacs-Hacker2013@jovi.net>
> >> Date: Fri, 9 Aug 2013 21:03:40 +0800
> >> 
> >> Really?  When was /HOST: syntax deprecated?
> 
> That's not what you used. You used /METHOD@HOST:, which is not
> documented to work.
> 
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Remote-Files.html

It's /user@host:, and it works fine for me on fencepost.gnu.org.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 13:45     ` Eli Zaretskii
  2013-08-09 15:53       ` Glenn Morris
@ 2013-08-09 18:04       ` Devon Sean McCullough
  2013-08-09 18:23       ` Stefan Monnier
  2013-08-09 20:43       ` Devon Sean McCullough
  3 siblings, 0 replies; 18+ messages in thread
From: Devon Sean McCullough @ 2013-08-09 18:04 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 15058

On 2013 Aug 9, at 9:45 PM, Eli Zaretskii wrote:
> Maybe it's a Darwin thing or something specific to your system setup.

Yes, the bug is OS specific:

CentOS 21.4.1 	ok
Debian 6.0.7 	BUG
MacOS 10.6.8 	BUG
Ubuntu 10.04 	ok

		Peace
			--Devon





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 17:55         ` Eli Zaretskii
@ 2013-08-09 18:08           ` Glenn Morris
  0 siblings, 0 replies; 18+ messages in thread
From: Glenn Morris @ 2013-08-09 18:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Emacs-Hacker2013, 15058

Eli Zaretskii wrote:

> It's /user@host:, and it works fine for me on fencepost.gnu.org.

Ah, OK (I waa expecting the user to be "anonymous").
Works for me too, on 2 different systems.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 13:45     ` Eli Zaretskii
  2013-08-09 15:53       ` Glenn Morris
  2013-08-09 18:04       ` Devon Sean McCullough
@ 2013-08-09 18:23       ` Stefan Monnier
  2013-08-09 18:38         ` Eli Zaretskii
  2013-08-09 20:43       ` Devon Sean McCullough
  3 siblings, 1 reply; 18+ messages in thread
From: Stefan Monnier @ 2013-08-09 18:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Devon Sean McCullough, 15058

>> Really?  When was /HOST: syntax deprecated?
> It wasn't.

We slightly changed the way it works because of the ambiguity between
/HOST: and /METHOD:, so IIRC /HOST: still works fine, but only if HOST
is not also a valid METHOD.  So you need "/ftp:ftp" in order to connect
to a host named "ftp".


        Stefan





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 18:23       ` Stefan Monnier
@ 2013-08-09 18:38         ` Eli Zaretskii
  0 siblings, 0 replies; 18+ messages in thread
From: Eli Zaretskii @ 2013-08-09 18:38 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs-Hacker2013, 15058

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Devon Sean McCullough <Emacs-Hacker2013@jovi.net>,  15058@debbugs.gnu.org
> Date: Fri, 09 Aug 2013 14:23:22 -0400
> 
> >> Really?  When was /HOST: syntax deprecated?
> > It wasn't.
> 
> We slightly changed the way it works because of the ambiguity between
> /HOST: and /METHOD:, so IIRC /HOST: still works fine, but only if HOST
> is not also a valid METHOD.  So you need "/ftp:ftp" in order to connect
> to a host named "ftp".

Again, on fencepost, I don't need the METHOD.





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 10:10 bug#15058: 24.3; ftp is still broken Devon Sean McCullough
  2013-08-09 10:31 ` Eli Zaretskii
@ 2013-08-09 19:02 ` Glenn Morris
  1 sibling, 0 replies; 18+ messages in thread
From: Glenn Morris @ 2013-08-09 19:02 UTC (permalink / raw)
  To: Devon Sean McCullough; +Cc: 15058

Devon Sean McCullough wrote:

> emacs -Q /ftp@ftp.gnu.org:
>
> Should display the FTP.GNU.ORG: directory but instead bombs -

What do you actually mean by "it bombs"?

> for details, look in the *ftp ftp@ftp.gnu.org* buffer.

Please show us the contents, since no-one else seems to be able to
reproduce this.

> Opening FTP connection to ftp.gnu.org...done
> Logging in as user ftp@ftp.gnu.org...done
> Getting PWD... [2 times]
> Warning! Unable to get home directory

What's going on here?

Seems to resemble
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1972

Something to do with active/passive ftp?





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 13:45     ` Eli Zaretskii
                         ` (2 preceding siblings ...)
  2013-08-09 18:23       ` Stefan Monnier
@ 2013-08-09 20:43       ` Devon Sean McCullough
  2013-08-09 23:17         ` Glenn Morris
                           ` (2 more replies)
  3 siblings, 3 replies; 18+ messages in thread
From: Devon Sean McCullough @ 2013-08-09 20:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 15058

On 2013 Aug 9, at 9:45 PM, Eli Zaretskii wrote:
> Maybe it's a Darwin thing or something specific to your system setup.

The bug seems to depend on whether /usr/bin/ftp
re-writes certain server responses ...

MacOS and Debian BUG: 	(ange-ftp-get-pwd "ftp.gnu.org" "ftp") ==> (nil . "Remote directory: /")
CentOS and Ubuntu OK: 	(ange-ftp-get-pwd "ftp.gnu.org" "ftp") ==> (t . "257 \"/\"")

... apparently emacs is blind to the re-written PWD reply.

		Peace
			--Devon






^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 20:43       ` Devon Sean McCullough
@ 2013-08-09 23:17         ` Glenn Morris
  2013-08-09 23:45         ` Glenn Morris
  2013-08-10  4:14         ` Wolfgang Jenkner
  2 siblings, 0 replies; 18+ messages in thread
From: Glenn Morris @ 2013-08-09 23:17 UTC (permalink / raw)
  To: 15058


I think we'd have wasted less time on this had you said "bug#8346
still exists" from the start.







^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 20:43       ` Devon Sean McCullough
  2013-08-09 23:17         ` Glenn Morris
@ 2013-08-09 23:45         ` Glenn Morris
  2013-08-10  8:41           ` Devon Sean McCullough
  2013-08-10  4:14         ` Wolfgang Jenkner
  2 siblings, 1 reply; 18+ messages in thread
From: Glenn Morris @ 2013-08-09 23:45 UTC (permalink / raw)
  To: Devon Sean McCullough; +Cc: 15058


Maybe this fixes it

*** lisp/net/ange-ftp.el	2013-08-09 21:22:44 +0000
--- lisp/net/ange-ftp.el	2013-08-09 23:44:10 +0000
***************
*** 700,706 ****
    "Regular expression matching the start of a multiline FTP reply.")
  
  (defvar ange-ftp-good-msgs
!   "^220 \\|^230 \\|^226 \\|^25. \\|^221 \\|^200 \\|^[Hh]ash mark"
    "Regular expression matching FTP \"success\" messages.")
  
  ;; CMS and the odd VMS machine say 200 Port rather than 200 PORT.
--- 700,706 ----
    "Regular expression matching the start of a multiline FTP reply.")
  
  (defvar ange-ftp-good-msgs
!   "^220 \\|^230 \\|^226 \\|^25. \\|^221 \\|^200 \\|^[Hh]ash mark\\|Remote directory"
    "Regular expression matching FTP \"success\" messages.")
  
  ;; CMS and the odd VMS machine say 200 Port rather than 200 PORT.
***************
*** 3021,3026 ****
--- 3021,3027 ----
      (if (car result)
  	(save-match-data
  	  (and (or (string-match "\"\\([^\"]*\\)\"" line)
+ 		   (string-match "Remote directory: \\(.*\\)" line)
  		   (string-match " \\([^ ]+\\) " line))	; stone-age VMS servers!
  	       (setq dir (match-string 1 line)))))
      (cons dir line)))






^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 20:43       ` Devon Sean McCullough
  2013-08-09 23:17         ` Glenn Morris
  2013-08-09 23:45         ` Glenn Morris
@ 2013-08-10  4:14         ` Wolfgang Jenkner
  2013-08-10  4:27           ` Wolfgang Jenkner
  2 siblings, 1 reply; 18+ messages in thread
From: Wolfgang Jenkner @ 2013-08-10  4:14 UTC (permalink / raw)
  To: Devon Sean McCullough; +Cc: 15058

On Fri, Aug 09 2013, Devon Sean McCullough wrote:

> On 2013 Aug 9, at 9:45 PM, Eli Zaretskii wrote:
>> Maybe it's a Darwin thing or something specific to your system setup.
>
> The bug seems to depend on whether /usr/bin/ftp
> re-writes certain server responses ...
>
> MacOS and Debian BUG: 	(ange-ftp-get-pwd "ftp.gnu.org" "ftp") ==> (nil . "Remote directory: /")

If this is tnftp (aka lukemftp[1]) then there's actually no server
response to report here because the client reuses a cached value and
doesn't send anything to the server at this point.  The value comes from
automatically sending a `pwd' after logging in.  You can set the `debug'
flag to observe this.

[1] ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/tnftp-20091122.tar.gz

> CentOS and Ubuntu OK: 	(ange-ftp-get-pwd "ftp.gnu.org" "ftp") ==> (t . "257 \"/\"")

Wolfgang





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-10  4:14         ` Wolfgang Jenkner
@ 2013-08-10  4:27           ` Wolfgang Jenkner
  0 siblings, 0 replies; 18+ messages in thread
From: Wolfgang Jenkner @ 2013-08-10  4:27 UTC (permalink / raw)
  To: Devon Sean McCullough; +Cc: 15058

On Sat, Aug 10 2013, Wolfgang Jenkner wrote:

> [1] ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/tnftp-20091122.tar.gz

There's actually a newer version of this (which compiles and works out
of the box on a GNU/Linux system here)

ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/tnftp-20130505.tar.gz

Wolfgang





^ permalink raw reply	[flat|nested] 18+ messages in thread

* bug#15058: 24.3; ftp is still broken
  2013-08-09 23:45         ` Glenn Morris
@ 2013-08-10  8:41           ` Devon Sean McCullough
  0 siblings, 0 replies; 18+ messages in thread
From: Devon Sean McCullough @ 2013-08-10  8:41 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 15058

Glenn,

Thanks for the patch - this nearly identical one works great on MacOS.

		Peace
			--Devon

P.S. I added four characters (two carets, a colon and a space)
--- ange-ftp.el.~0~	2013-02-11 09:13:09.000000000 +0800
+++ ange-ftp.el	2013-08-10 15:50:44.000000000 +0800
@@ -700,7 +700,7 @@
   "Regular expression matching the start of a multiline FTP reply.")
 
 (defvar ange-ftp-good-msgs
-  "^220 \\|^230 \\|^226 \\|^25. \\|^221 \\|^200 \\|^[Hh]ash mark"
+  "^220 \\|^230 \\|^226 \\|^25. \\|^221 \\|^200 \\|^[Hh]ash mark\\|^Remote directory: "
   "Regular expression matching FTP \"success\" messages.")
 
 ;; CMS and the odd VMS machine say 200 Port rather than 200 PORT.
@@ -3021,6 +3021,7 @@
     (if (car result)
 	(save-match-data
 	  (and (or (string-match "\"\\([^\"]*\\)\"" line)
+		   (string-match "^Remote directory: \\(.*\\)" line)
 		   (string-match " \\([^ ]+\\) " line))	; stone-age VMS servers!
 	       (setq dir (match-string 1 line)))))
     (cons dir line)))







^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-08-10  8:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-09 10:10 bug#15058: 24.3; ftp is still broken Devon Sean McCullough
2013-08-09 10:31 ` Eli Zaretskii
     [not found]   ` <C1CBBAA1-17C8-4B9C-AE7F-4DAE0A1D3963@jovi.net>
2013-08-09 13:45     ` Eli Zaretskii
2013-08-09 15:53       ` Glenn Morris
2013-08-09 17:15         ` Devon Sean McCullough
2013-08-09 17:55         ` Eli Zaretskii
2013-08-09 18:08           ` Glenn Morris
2013-08-09 18:04       ` Devon Sean McCullough
2013-08-09 18:23       ` Stefan Monnier
2013-08-09 18:38         ` Eli Zaretskii
2013-08-09 20:43       ` Devon Sean McCullough
2013-08-09 23:17         ` Glenn Morris
2013-08-09 23:45         ` Glenn Morris
2013-08-10  8:41           ` Devon Sean McCullough
2013-08-10  4:14         ` Wolfgang Jenkner
2013-08-10  4:27           ` Wolfgang Jenkner
2013-08-09 14:12   ` Stefan Monnier
2013-08-09 19:02 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).