Jump to:

7911 Posts in 1354 Topics by 930 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Bug Reports

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to End
Author Topic: 37659 Views
  • Mad_Clog
    Avatar
    Community Member
    78 Posts

    Re: Bug Reports Link to this post

    Bug with FileDataObjectManager and importing files (in IE), getting CSRF attack error because SecurityID was not posted.

    File: code/FileDataObjectManager.php
    Line: 500

    Old code

    $fields->push(new LiteralField("_ul","</ul"));


    New code

    $fields->push(new LiteralField("_ul","</ul>"));

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Nice! I've been trying to track that one down!

  • redactuk
    Avatar
    Community Member
    115 Posts

    Re: Bug Reports Link to this post

    When you edit an Album in ImageGallery and choose to Replace Cover Image, the From File Store option only ever lists folders and never any files. Surely this is a bug?

  • zenmonkey
    Avatar
    Community Member
    483 Posts

    Re: Bug Reports Link to this post

    I'm having a problem with the Image DOM, It appears to have issues accessing Directory with a dash (-) in the name. The files in that dir are accessible from the rest of the CMS, and if I move them to directory without a dash in the name they're accessible from the DOM.

    Firebug reports a 500 error when I try to access those directories. Its not a critical bug (I can just change the naming structure), but I thought you should know. I'm running on MAMP right now, I haven't rolled the site out to my full testing server yet.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    What do you mean by "accessible from DOM?"

  • zenmonkey
    Avatar
    Community Member
    483 Posts

    Re: Bug Reports Link to this post

    I'm setting Internal Server Errors when trying to access certain folders through the "Import from an existing folder" dropdown in a nested ImageDataObjectManager. However if I try to add images from those folders through the standard HTMLEditor field, I have no problems

  • Iain_vdw
    Avatar
    Community Member
    22 Posts

    Re: Bug Reports Link to this post

    We think we've found a bug in SWFUpload/FileDataObjectManager. It's caused when a user without full admin rights tries to upload a file in "Files & Images" through an SWFUploadField.

    Setup:
    SS 2.4.0 / 2.4.1
    Latest DOM and SWFUpload modules
    User with access to CMSMain, AssetAdmin, Reports and Comments. No full admin rights.

    Bug:
    When selecting a file in the SWFUpload field and pressing "Upload", the request freezes on processing. With the use of the SWFUpload debug mode and some var_dump()'ing we've located that the permission check in FileDataObjectManager.php line 587 checks for the wrong permission. The checked for permission is

    if(!Permission::check("CMSAccess_CMSMain"))


    when it should be

    if(!Permission::check("CMS_ACCESS_CMSMain"))

    We've tried and tested this and it works normally now without errors.

    Users with full admin rights automatically pass the Permission::check() function because they've got access to all parts of the CMS and the function automatically adds the "ADMIN" role to check for.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Yup, that was fixed in the last rev. Thanks.

    37659 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.