Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Phil Whittaker 63 posts 267 karma points MVP 4x c-trib
    May 01, 2015 @ 21:39
    Phil Whittaker
    0

    media protect not blocking requests

    I am using media protect on localhost as a trial and its performing very strangely. I am using Umbraco 7.2.2

    Any new items that I add to my media folder are not protected but, even when I add them as specific permission. Any images that existed before I installed media protect are protected without a problem.

    I have turned on loggging but it doesn't look like any log files are generated. Where are they stored?

    Any help will be appreciated?

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    May 02, 2015 @ 07:51
    Richard Soeteman
    0

    Hi Phil,

    Are the new images using the image cropper? If so check the manual how to enable protection on cropped images. Enable logging is logging requests to the database to give an overview in the backoffice dashboard.

    Hope this helps,

    Richard

  • Phil Whittaker 63 posts 267 karma points MVP 4x c-trib
    May 02, 2015 @ 08:44
    Phil Whittaker
    0

    Hi Richard

    Thanks for your reply, I just found the bug, shows what a good nights sleep will do to think through a problem. 

    It wasn't the image cropper that was the issue but rather a problem with media folder synchronisation. I am working on a site that is already live and my media folder on my local was out of sync, I'm not sure if you will be able to do anything to combat this or if the issue is with the core code. 

    On the filesystem in the media folder there were image folders missing but they were present in the db, when I added a new image Umbraco created a new folder sequentially and it clashed with an existing folder in the db. Umbraco seemed to be ok with this but it could have caused issues later when I deployed. So in a way I'm glad I found it now. 

    The clashing sequenatially added folder were failing protection. as soon as I took out the newly added folders on my local and downloaded from production all the new folders, then added a new image with a new folder to the db and filesystem it worked as expected. 

    Hopefully this helps someone else.

    Phil

Please Sign in or register to post replies

Write your reply to:

Draft