collective / collective/collective.quickupload

#25 — Cannot upload more than one image at a time

Open
#14 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Moved from Plone Issue Tracker

Plone Quick Upload 1.3.1
Cannot upload more than one image at a time without getting this error. Logged in as a Manager.

Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Products.CMFFormController.FSControllerPageTemplate, line 91, in **call**
Module Products.CMFFormController.BaseControllerPageTemplate, line 31, in _call
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Products.PloneHotfix20110531, line 106, in _patched_bindAndExec
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 240, in _exec
Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
Module Products.PageTemplates.PageTemplate, line 79, in pt_render
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 888, in do_useMacro
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 946, in do_defineSlot
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 858, in do_defineMacro
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
- URL: file:c:\plone4\eggs\products.cmfplone-4.1.4-py2.6.egg\Products\CMFPlone\skins\plone_content\author.cpt
- Line 27, Column 4
- Expression:
- Names:
{'container': ,
'context': ,
'default': ,
'here': ,
'loop': {},
'nothing': None,
'options': {'args': (),
'state': },
'repeat': ,
'request': ,
'root': ,
'template': ,
'traverse_subpath': ['cgw2'],
'user': }
Module Products.PageTemplates.ZRPythonExpr, line 48, in **call**
- **traceback_info**: (not isAnon or allowAnonymousViewAbout) or here.raiseUnauthorized()
Module PythonExpr, line 1, in
Module Products.CMFCore.FSPythonScript, line 130, in **call**
Module Shared.DC.Scripts.Bindings, line 322, in **call**
Module Products.PloneHotfix20110531, line 106, in _patched_bindAndExec
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 344, in _exec
Module script, line 2, in raiseUnauthorized
-
- Line 2
Unauthorized: Unauthorized()

Version Overview

```
Plone 4.1.4 (4113)

CMF 2.2.5

Zope 2.13.12

Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]

PIL 1.1.7-enfold2
```

Added by Thomas Desvenain on Jul 29, 2012 09:13 PM

looks like it tries to display an author page whereas it is forbidden to anonymous... but why does it try so ? it's hard to say.

may you upgrade plone and collective.quickupload to last version (4.1.6 and 1.5.4)
you should also remove hotfix, which is included in last zope version

then, if it doesn't fix the problem, give me the new traceback

bests.

thomas

PS : do you use flash upload or js-only quick upload ?

PPS : please now use github issue tracker
Added by Joe Bigler on Jul 30, 2012 02:02 AM
Thomas. Thanks for the quick response. Will try that in a few days. Am in a conference and will be a while before I can try that.

It was the js-only quick upload.

I will use that tracker. Can I move this to the github issue tracker?

Joe Bigler
Added by Thomas Desvenain on Jul 30, 2012 06:20 AM
Ok, just copy/paste this discussion ;)

See you

Thomas

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with the JS-only quick upload described in the issue, using the listed Plone 4.1.4 environment. Read the traceback locations in Products/CMFPlone/skins/plone_content/author.cpt and the /Plone/raiseUnauthorized script, then determine why a multi-image upload reaches the anonymous author page. Done means multiple images upload without the Unauthorized traceback.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
backend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.