[Zope] - Problem w/ 'add document': "The parameter, id, was omitted..."
David Ascher
da@skivs.ski.org
Mon, 7 Dec 1998 22:47:29 -0800 (Pacific Standard Time)
Like Christopher Petrilli, I started having problems w/ adding documents
to my Zope server (the one at work, not the one at home). Briefly: the
"manage_addDocument" (or manage_addFile, but not _addFolder) forms cause
the method call when 'add' is pressed to be called with no arguments.
After talking with Chris, who had to reinstall his entire Python
distribution to get it to work, I focused on the HTML of the
manage_addDocument web page. I'm no HTML expert, but I stumbled on the
fact that if I changed the HTML FORM tag to *not* have the
ENCTYPE="multipart/form-data"
attribute, then the form submission worked. With that ENCTYPE set, the
URL called by the SUBMIT button didn't include any of the parameter
values. Alternatively, if I specify the full URL "by hand" by e.g.
adding ?id=spam to the URL, it works fine.
I'm using Python 1.5.2a2, ZopeHTTPServer.py.
Does anyone have an idea as to how I should go about debugging this? Has
anyone else seen this problem?
Update: This started happening on my Zope server at home, which worked
just fine a few days ago, and I didn't change anything, really I didn't!
I'm stumped. The 'environ' in the comments of the error message show:
HTTP_CONNECTION: 'Keep-Alive'
REMOTE_HOST: 'localhost'
HTTP_HOST: 'localhost:8080'
HTTP_REFERER:
'http://localhost:8080/.?%3Amethod=manage_addDocumentForm'
SERVER_PROTOCOL: 'HTTP/1.0'
SERVER_PORT: '8080'
PATH_TRANSLATED: 'd:\\local\\src\\Zope\\manage_addDocument'
GATEWAY_INTERFACE: 'CGI/1.1'
REQUEST_METHOD: 'POST'
HTTP_ACCEPT_CHARSET: 'iso-8859-1,*,utf-8'
CONTENT_TYPE: 'multipart/form-data;
boundary=---------------------------2054256799955'
HTTP_COOKIE: 'tree-s="eJyLjjaMjQUABOIBog"'
SCRIPT_NAME: ''
SERVER_SOFTWARE: 'BoboHTTP/0.4 Python/1.5.2a2'
HTTP_ACCEPT_LANGUAGE: 'en'
HTTP_ACCEPT: 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
*/*'
PATH_INFO: '/manage_addDocument'
SERVER_NAME: 'annex4.ski.org'
REMOTE_ADDR: '127.0.0.1'
HTTP_USER_AGENT: 'Mozilla/4.03 [en] (WinNT; I)'
CONTENT_LENGTH: '350'
--david ascher
PS: I've tried Netscape, IE5, clearing caches, etc. It's possible that I
have some older versions of ExtensionClasses or the like around, but I
tried hard to isolate things, w/ no luck so far.
PPS: Both of these are on NT, but I believe that Chris had the same
problem on a Unix box.