Ticket #4351 (closed Bug: fixed)
Can't upload image into plone root folder with Kupu
| Reported by: | csenger | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.1 |
| Component: | Templates/CSS | Version: | |
| Severity: | Keywords: | ||
| Cc: |
Description
Uploading images with the kupu image drawer (Upload...) doesnt work in root folder Upload to a subfolder or memberfolder works.
plone-2.1 and zope 2.8 checkout 2005-07-30 10:50 kupu is revision 15398 CMFPlone rev. 7708 Browsers are firefox 1.0.2 kubuntu and firefox 1.0.6 kubuntu linux zope 2.8 svn rev. 37592
Reproduce the bug: Install zope/plone Add new plone instance Add new page | edit startpage (shows kupu) Press Image Button -> shows image drawer Select Home Folder Press Upload... Select Image and add Title Press ok Browser sends data, but ImageDrawer remains on screen Image is neither added to folder nor inserted into page. you can press cancel or select existing image
traceback (security-policy-implementation python, verbose-security on):
2005-07-30 10:51:26 ERROR Zope.SiteErrorLog http://localhost:8080/test/kupuUploadImage Traceback (most recent call last):
File "/var/zope/Zope-2_8-branch/lib/python/ZPublisher/Publish.py", line 113, in publish
request, bind=1)
File "/var/zope/Zope-2_8-branch/lib/python/ZPublisher/mapply.py", line 88, in mapply
if debug is not None: return debug(object,args,context)
File "/var/zope/Zope-2_8-branch/lib/python/ZPublisher/Publish.py", line 40, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/var/zope/Zope-2_8-branch/Products/CMFCore/FSPythonScript.py", line 108, in call
return Script.call(self, *args, kw)
File "/var/zope/Zope-2_8-branch/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in call
return self._bindAndExec(args, kw, None)
File "/var/zope/Zope-2_8-branch/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/var/zope/Zope-2_8-branch/Products/CMFCore/FSPythonScript.py", line 163, in _exec
result = f(*args, kw)
File "Script (Python)", line 45, in kupuUploadImage File "/var/zope/Zope-2_8-branch/Products/CMFCore/FSPythonScript.py", line 108, in call
return Script.call(self, *args, kw)
File "/var/zope/Zope-2_8-branch/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in call
return self._bindAndExec(args, kw, None)
File "/var/zope/Zope-2_8-branch/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/var/zope/Zope-2_8-branch/Products/CMFCore/FSPythonScript.py", line 163, in _exec
result = f(*args, kw)
File "Script (Python)", line 132, in check_id File "/var/zope/Zope-2_8-branch/lib/python/AccessControl/ImplPython.py", line 652, in guarded_getattr
v = getattr(inst, name)
AttributeError: getTypeInfo

Fixed in svn, thanks.