[Zope] Problem of accessing nested ZClass by FTP

iap@y2fun.com iap@y2fun.com
Sat, 24 Nov 2001 20:14:17 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0015_01C17524.981E9CA0
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi,=20
I have a ZClass-based product, say ZClassTest.
There is a ZClass named "ZClass1" in that product folder.
There is another ZClass named "ZClass2" within the ZClass1.
i.e. ZClass2 is a  method of ZClass1.
The problem is that I can access the content of ZClass2 by WebDAV.
But failed to access the same content by FTP.
The error message says that there is not such file or directory.
that is :
ftp://host/Control_Panel/Products/ZClassTest/ZClass1/propertysheets/metho=
ds/ZClass2
is fine.( return a list with "propertyshees/methods")
but
ftp://host/Control_Panel/Products/ZClassTest/ZClass1/propertysheets/metho=
ds/ZClass2/propertysheets/methods
is broken. ( error 505)

I noticed that actually the zope responses an extra space behind =
"ZClass2", that is
ftp://host/Control_Panel/Products/ZClassTest/ZClass1/propertysheets/metho=
ds/ZClass2 /propertysheets/methods
I hacked the zope code () and strip that extra space off.
But the trouble is still there.

Any suggestion is highly appreciated.

Iap, Singuan



------=_NextPart_000_0015_01C17524.981E9CA0
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DMingLiu size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DMingLiu size=3D2>I have a ZClass-based product, say=20
ZClassTest.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>There is a ZClass named =
"ZClass1" in that product=20
folder.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>There is another ZClass =
named "ZClass2" within the=20
ZClass1.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>i.e. ZClass2 is a&nbsp; =
method of=20
ZClass1.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>The problem is that I can =
access the content of=20
ZClass2 by WebDAV.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>But failed to access the =
same content by=20
FTP.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>The error message says =
that there is not such file or=20
directory.</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>that is :</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2><A=20
href=3D"ftp://host/Control_Panel/Products/ZClassTest/ZClass1/propertyshee=
ts/methods/ZClass2">ftp://host/Control_Panel/Products/ZClassTest/ZClass1/=
propertysheets/methods/ZClass2</A></FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>is fine.( return a list =
with=20
"propertyshees/methods")</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>but</FONT></DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2><A=20
href=3D"ftp://host/Control_Panel/Products/ZClassTest/ZClass1/propertyshee=
ts/methods/ZClass2/propertysheets/methods">ftp://host/Control_Panel/Produ=
cts/ZClassTest/ZClass1/propertysheets/methods/ZClass2<FONT=20
face=3DMingLiu>/propertysheets/methods</A></FONT></FONT></DIV>
<DIV>is broken. ( error 505)</DIV>
<DIV>&nbsp;</DIV>
<DIV>I noticed that actually the zope responses an extra space behind =
"ZClass2",=20
that is</DIV>
<DIV>
<DIV><FONT face=3D=B2=D3=A9=FA=C5=E9 size=3D2><A=20
href=3D"ftp://host/Control_Panel/Products/ZClassTest/ZClass1/propertyshee=
ts/methods/ZClass2 =
/propertysheets/methods">ftp://host/Control_Panel/Products/ZClassTest/ZCl=
ass1/propertysheets/methods/ZClass2=20
<FONT face=3DMingLiu>/propertysheets/methods</A></FONT></FONT></DIV>
<DIV><FONT face=3DMingLiu>I hacked the zope code ()&nbsp;and strip that =
extra=20
space off.</FONT></DIV>
<DIV>But the trouble is still there.</DIV>
<DIV><FONT face=3DMingLiu></FONT>&nbsp;</DIV>
<DIV><FONT face=3DMingLiu>Any suggestion=20
is&nbsp;highly&nbsp;appreciated.</FONT></DIV>
<DIV><FONT face=3DMingLiu></FONT>&nbsp;</DIV>
<DIV><FONT face=3DMingLiu>Iap, Singuan</FONT></DIV>
<DIV><FONT face=3DMingLiu></FONT>&nbsp;</DIV>
<DIV><FONT =
face=3DMingLiu></FONT>&nbsp;</DIV></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0015_01C17524.981E9CA0--