Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSC with collective.psc.blobstorage: no file storage into blobstorage outside PSC posible #1

Open
andreasma opened this issue Aug 2, 2011 · 3 comments

Comments

@andreasma
Copy link
Member

I created a Plone site with PloneSoftwareCenter from git-source and the collective.psc.blobstorage extension. If I install the last one there is no way to store files outside the PSC into the blobstorage. Inside the PSC it works fine. If I try to add a new file, I get the error message below. I started with a fresh buildout with an empty database and blobstorage. It works with adding files until I made a second run of the buildout and added collective.psc.blobstorage and then activated it inside the management page.

Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.CMFPlone.FactoryTool, line 446, in call
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.CMFFormController.FSControllerPageTemplate, line 91, in call
Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in _call
Module Products.CMFFormController.ControllerBase, line 231, in getNext
Module Products.CMFFormController.Actions.TraverseTo, line 38, in call
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line 107, in call
Module Products.CMFFormController.ControllerBase, line 231, in getNext
Module Products.CMFFormController.Actions.TraverseTo, line 38, in call
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line 105, in call
Module Products.CMFFormController.Script, line 145, in call
Module Products.CMFCore.FSPythonScript, line 130, in call
Module Shared.DC.Scripts.Bindings, line 324, in call
Module Products.PloneHotfix20110531, line 106, in _patched_bindAndExec
Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 344, in _exec
Module script, line 1, in content_edit

  • <FSControllerPythonScript at /Plone/content_edit used for /Plone/portal_factory/File/file.2011-08-02.8963368285>
  • Line 1
    Module Products.CMFCore.FSPythonScript, line 130, in call
    Module Shared.DC.Scripts.Bindings, line 324, in call
    Module Products.PloneHotfix20110531, line 106, in _patched_bindAndExec
    Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
    Module Products.PythonScripts.PythonScript, line 344, in _exec
    Module script, line 13, in content_edit_impl
  • <FSPythonScript at /Plone/content_edit_impl used for /Plone/portal_factory/File/file.2011-08-02.8963368285>
  • Line 13
    Module Products.LinguaPlone.I18NBaseObject, line 411, in processForm
    Module Products.Archetypes.BaseObject, line 658, in processForm
    Module Products.LinguaPlone.I18NBaseObject, line 402, in _processForm
  • traceback_info: (<ATFile at /Plone/file.2011-08-02.8963368285>, <Field file(blob:rw)>, <function mutator at 0x847db90>)
    Module Products.Archetypes.utils, line 152, in mapply
    Module archetypes.schemaextender.field, line 68, in mutator
    Module Products.LinguaPlone.utils, line 151, in generatedMutator
    Module plone.app.blob.subtypes.file, line 15, in set
    Module plone.app.blob.field, line 208, in set
    Module collective.psc.blobstorage.adapters, line 24, in mimetype
    Module rfc822, line 388, in getitem
    KeyError: 'mime-type'
@acsr
Copy link

acsr commented Aug 3, 2011

Hi Andreas,
no idea what you can do, because I never installed PSC nor have the
current timme to take a look at this phenomenon.

I am using my community time to prepare the booth at the FrOSCon at
20-12th Aug in St. Augustin.
If you attend, feel free to visit the Python Project Room where we
have some Plone Experts joining.

I hope you have usually posted this mail on the appropriate lists as
well! But I saw nothing for now.

[email protected]
[email protected]

Do not forget to mention always the goal of your project as an
abstract, it may gain the attention a little bit.

Cheers Armin

Am 02.08.2011 um 21:44 schrieb andreasma:

I created a Plone site with PloneSoftwareCenter from git-source and
the collective.psc.blobstorage extension. If I install the last one
there is no way to store files outside the PSC into the blobstorage.
Inside the PSC it works fine. If I try to add a new file, I get the
error message below. I started with a fresh buildout with an empty
database and blobstorage. It works with adding files until I made a
second run of the buildout and added collective.psc.blobstorage and
then activated it inside the management page.

Traceback (innermost last):
...
KeyError: 'mime-type'

Reply to this email directly or view it on GitHub:
#1

@andreasma
Copy link
Member Author

Hi Armin,

sorry, but I can't attend the FrOSCon this year. I talked with Alex Clark about this issue in the irc and he told me that I should write an issue about the bug.

I'm currently not subscribed to the lists you mentioned in your post. I'm thinking about subscribing to them.

Cheers Andreas

@glenfant
Copy link
Member

This issue is 2 years old. Is it still actual, or is it fixed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants