Error with filenames during FTP
Hi John, --- John Poltorak <jp@w...> wrote:
On Sun, Sep 19, 2004 at 10:01:52PM +0200, Dieter Maurer wrote:
John Poltorak wrote at 2004-9-17 22:43 +0100:
Are there any known issues when uploading via FTP files with names like:-
content.asp%3Fcontent_category_id=1
I get a '426 Error creating file.' msg after it has been sent.
What can I do about it? "%" is not allowed in Zope ids. In stock Zope, only the following characters are allowed in Zope ids: 'a-zA-Z0-9-_~,.$()# '
Either avoid names with characters not allowed in Zope ids or relax the Zope id restriction.
I'm attempting to import a FrontPage-built website into Zope and would prefer to make as few changes as possible. Oh no! FrontPage ;-). Some time ago (more than one year) somebody wanted to upload a website made with FronPage to our server. We saw it didn't upload some files, then we figured out that this software creates temporary files starting with "_" (underscore). Try to find those, make a copy of the contents and delete the temporary files. We also detected that normal html files were uploaded as dtml documents (Perhaps this has changed, I haven't used ftp since a long time), so, if you have some invalid expressions that conflict with dtml, it won't create the file on zope. Don't answer me what kind of expressions, I don't remmember it, but I can tell you they weren't dtml at all.
I can't see anything about 'relaxing Zope id restriction'. Any hints about where I should look? I think this isn't a good solution. You could break something else, and if you succeeded, then you will have to remmember to do this each time you upgrade your zope; otherwise, you will have a lot of nice broken links. I think the best way is to manually edit the conflicting pages.
Conclusion: Don't use FrontPage. It adds extra unnecessary info to your pages. Don't even edit your html files with word. I saw once that this software changes all the slashes on your paths for backslashes, so your site will work perfect on IE, but it will fail with other browsers (netscape 4.x comes in mind, mozilla I think copes with this) Finally don't use ftp, it's insecure. You had better user localfs with scp (google for winscp for windows systems). Regards, Josef _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Hi, Josef Albert Meile wrote:
Conclusion: Don't use FrontPage. It adds extra unnecessary info to your pages. Don't even edit your html files with word. I saw once that this software changes all the slashes on your paths for backslashes, so your site will work perfect on IE, but it will fail with other browsers (netscape 4.x comes in mind, mozilla I think copes with this)
When I've had to pull stuff into Zope from the likes of FrontPage, I've "ripped" the site to a static copy using HTTrack (Open source, cross-platform, http://www.httrack.com/). This gave me a lot less to deal with manually than trying to start from the server-side files. HTH -- Regards, PhilK Email: phil@xfr.co.uk / Voicemail & Facsimile: 07092 070518 "Work as if you lived in the early days of a better nation." - Alasdair Gray
Hi, Philip Kilner wrote:
When I've had to pull stuff into Zope from the likes of FrontPage, I've "ripped" the site to a static copy using HTTrack (Open source, cross-platform, http://www.httrack.com/). This gave me a lot less to deal with manually than trying to start from the server-side files.
D'Oh! Hit send too early! What I meant to say was that such tools usually have the option for, say, 8+3 file names, rather than file names based on the URLs in a dynamic site. If the problem file names come from ripping the site, re-ripping it using such an option may help - easier than dealing with it retrospectively, anyway. -- Regards, PhilK Email: phil@xfr.co.uk / Voicemail & Facsimile: 07092 070518 "Work as if you lived in the early days of a better nation." - Alasdair Gray
On Tue, Sep 21, 2004 at 09:17:28AM +0100, Philip Kilner wrote:
Hi,
Josef Albert Meile wrote:
Conclusion: Don't use FrontPage. It adds extra unnecessary info to your pages. Don't even edit your html files with word. I saw once that this software changes all the slashes on your paths for backslashes, so your site will work perfect on IE, but it will fail with other browsers (netscape 4.x comes in mind, mozilla I think copes with this)
When I've had to pull stuff into Zope from the likes of FrontPage, I've "ripped" the site to a static copy using HTTrack (Open source, cross-platform, http://www.httrack.com/). This gave me a lot less to deal with manually than trying to start from the server-side files.
I've had quite a bit of success using WGET for pulling down web pages, and there may well be options included for converting filenames but I haven't needed to do this previously. I prefer a command line program for this sort of thing.
HTH
--
Regards,
PhilK
Email: phil@xfr.co.uk / Voicemail & Facsimile: 07092 070518
"Work as if you lived in the early days of a better nation." - Alasdair Gray
-- John
participants (3)
-
John Poltorak -
Josef Albert Meile -
Philip Kilner