Skip to content

need support gzip mime type  #16

@ailantian

Description

@ailantian

Products.MimetypesRegistry/Products/MimetypesRegistry/mime_types/mime.types

dont support gzip type.

application/x-compressed-tar

if I upload gzip files to plone , it will break the list of the content.
if I upload zip , it is ok.

logs like this.


2018-10-31T07:18:30 ERROR Zope.SiteErrorLog 1540970310.150.711799500944 http://192.168.13.181:8080/km-automotive/bsp/qnx/resources/listing_view
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.Five.browser.metaconfigure, line 485, in call
Module Products.Five.browser.pagetemplatefile, line 125, in call
Module Products.Five.browser.pagetemplatefile, line 59, in call
Module zope.pagetemplate.pagetemplate, line 137, in pt_render
Module five.pt.engine, line 98, in call
Module z3c.pt.pagetemplate, line 163, in render
Module chameleon.zpt.template, line 261, in render
Module chameleon.template, line 191, in render
Module chameleon.template, line 171, in render
Module 52b0be4dfffc9fcded1a6f44700a23e2.py, line 1854, in render
Module a1e74227a4b9c6058f9a3d830ea6de85.py, line 1223, in render_master
Module a1e74227a4b9c6058f9a3d830ea6de85.py, line 420, in render_content
Module 52b0be4dfffc9fcded1a6f44700a23e2.py, line 1842, in __fill_content_core
Module 52b0be4dfffc9fcded1a6f44700a23e2.py, line 538, in render_content_core
Module 52b0be4dfffc9fcded1a6f44700a23e2.py, line 363, in render_listing
Module 52b0be4dfffc9fcded1a6f44700a23e2.py, line 1647, in render_entries
Module 52b0be4dfffc9fcded1a6f44700a23e2.py, line 1229, in render_listitem
Module five.pt.expressions, line 161, in call
Module plone.app.contentlisting.contentlisting, line 168, in MimeTypeIcon
IndexError: tuple index out of range

  • Expression: "item/MimeTypeIcon"
  • Filename: ... .egg/plone/app/contenttypes/browser/templates/listing.pt
  • Location: (line 59: col 52)
  • Source: tal:attributes="src item/MimeTypeIcon">
    ^^^^^^^^^^^^^^^^^
  • Arguments: repeat: {...} (0)
    template: <ViewPageTemplateFile - at 0x7f532fcca750>
    views: <ViewMapper - at 0x7f532c5b0810>
    modules: <instance - at 0x7f5338348248>
    args: <tuple - at 0x7f5340a0e050>
    here: <ImplicitAcquisitionWrapper resources at 0x7f532c7c3fa0>
    user: <ImplicitAcquisitionWrapper - at 0x7f532c7c39b0>
    nothing: <NoneType - at 0x559fdf489560>
    container: <ImplicitAcquisitionWrapper resources at 0x7f532c7c3fa0>
    request: <instance - at 0x7f532ce18878>
    wrapped_repeat: <SafeMapping - at 0x7f532c4e3af8>
    traverse_subpath: <list - at 0x7f532c918518>
    default: <object - at 0x7f534092b560>
    loop: {...} (1)
    context: <ImplicitAcquisitionWrapper resources at 0x7f532c7c3fa0>
    view: <SimpleViewClass from /home/ailantian/Plone/buildout-cache/eggs/plone.app.contenttypes-1.4.15-py2.7.egg/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f532c60d090>
    translate: <function translate at 0x7f532c5130c8>
    root: <ImplicitAcquisitionWrapper Zope at 0x7f532c4f7320>
    options: {...} (0)
    target_language: <NoneType - at 0x559fdf489560>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions