Uploading file and transaction error?
I have an uploading section on may intranet site (no ZCLASS), where people are able to upload files from their local pcs, setting properties for the files and selecting a subfolder (or creating a new one), where the file will be stored.
Now I get from time to time an attribute error and I have no clue, why and what I should do to prevent this.
Error type: AttributeError Error value: commit_sub
the traceback:
File D:\PROGRA~1\zope_214\lib\python\ZPublisher\Publish.py, line 214, in publish_module File D:\PROGRA~1\zope_214\lib\python\ZPublisher\Publish.py, line 179, in publish File D:\PROGRA~1\zope_214\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File D:\PROGRA~1\zope_214\lib\python\ZPublisher\Publish.py, line 169, in publish File D:\PROGRA~1\zope_214\lib\python\ZODB\Transaction.py, line 246, in commit
Has anybody seen this too?
I get this exact same problem trying to add completely normal File Objects to my Zope site. I can create the object empty if I don't include an upload, but the instant I try and upload anything it dies with the above error. It happens _constantly_ for me, not just time to time. Evan Gibson -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ May the machines watch over you with loving grace.
Evan Gibson schrieb: [Transaction error / Error value: commit_sub]
I get this exact same problem trying to add completely normal File Objects to my Zope site. I can create the object empty if I don't include an upload, but the instant I try and upload anything it dies with the above error. It happens _constantly_ for me, not just time to time.
Hmm .. this sounds really weird. In my case I observed the following. Structure: / +Intermobil +daten (up-/download section with form for upload, dtml-methods, external methods etc) +category1 +category2 +... (sub- and subsubfolders for storing the files) testfile is a Winzip/Zip file (1.129 KB), uploading it gives the error. I created a test folder somewhere else and pasted the content of the daten folder (without category subfolders), tried to upload my zip file there .. and -voila- it worked. Then I changed the upload method in my test folder by inserting a <dtml-with "Intermobil.daten"> in order to redirect the upload into a category subfolder of the original daten folder .. and -surprisingly for me- the upload of the test file worked, too. I deleted the file, went back to daten, tried again and got the same error as before. So here I'm really confused, cause I don't know where to look and what exactly could have caused this problem. Thanks for bringing up this to the list again, Thomas
On Wed, Mar 01, 2000 at 12:41:09PM +0100, Thomas Weiner wrote:
Evan Gibson schrieb:
[Transaction error / Error value: commit_sub]
I get this exact same problem trying to add completely normal File Objects to my Zope site. I can create the object empty if I don't include an upload, but the instant I try and upload anything it dies with the above error. It happens _constantly_ for me, not just time to time.
Hmm .. this sounds really weird. In my case I observed the following. . . . Then I changed the upload method in my test folder by inserting a <dtml-with "Intermobil.daten"> in order to redirect the upload into a category subfolder of the original daten folder .. and -surprisingly for me- the upload of the test file worked, too.
I deleted the file, went back to daten, tried again and got the same error as before.
So here I'm really confused, cause I don't know where to look and what exactly could have caused this problem.
What I've observed is that I'm running Zope on Linux and accessing it from a browser on a Windows box. I can create empty File objects and file objects containing _text_ files without a problem, but as soon as I try and include or upload an _.exe_ file it barfs with the commit_sub error. I'm wondering whether there's something occuring inside the .exe file that's playing up with the storage mechanism, maybe some kind of terminator or something... (I tried uploading files from Solaris and uploaded text files from there fine, so I was thinking it was a windows problem, but upon trying them text files worked under windows as well. It definitely seems to be an exe problem instead.) -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ May the machines watch over you with loving grace.
participants (2)
-
Evan Gibson -
Thomas Weiner