Copied to clipboard

Flag this post as spam?

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


  • Huw Reddick 533 posts 1723 karma points
    Mar 30, 2021 @ 16:54
    Huw Reddick
    0

    pdf files weirdness

    Hi Stuart,

    Seem to be having a problem synching pdf's that are larger than about 38KB is there a limit on the size of files it can fetch?

  • Stuart Mullinger 63 posts 289 karma points
    Mar 31, 2021 @ 09:15
    Stuart Mullinger
    0

    Morning Huw,

    There is no limit on the size of the files imposed by Converge. And that seems very small to be triggering any other limits. Does it result in ErrorMerging? If so, any further message when you hover over that? Is there anything reported in the log file? Does the file return from the remote server if you click on the link in the Media section?

    I've just tried a 6.6MB pdf file and it worked fine.

    Another idea is to just merge that file by itself, see if that makes any difference.

  • Huw Reddick 533 posts 1723 karma points
    Mar 31, 2021 @ 11:34
    Huw Reddick
    0

    Thanks for confirming there is no limit. I will do some more digging. It basically just results in a broken pdf in my local copy which is roughly 36KB in size, it doesn't give an errormerging and the pdf opens fine on the remote site, any pdf smaller than this appears to transfer intact, it's an odd one as it only seems to affect pdf files as far as I can tell, even just doing a single one results in the same broken pdf.

    I'll clean up the error logs and do some more testing later see if i can work it out, they have some code to protect certain media files from being linked to directly so it may be that getting in the way.

  • Huw Reddick 533 posts 1723 karma points
    Apr 01, 2021 @ 17:48
    Huw Reddick
    0

    Hi Stuart,

    Still no idea what is going on here, but it definitely only affects pdf file but not all of them and doesn't appear to be related to file size either as some that are 300+KB synch fine and other just seem to get cut off at around 36-37KB very odd indeed!

  • Stuart Mullinger 63 posts 289 karma points
    Apr 02, 2021 @ 08:55
    Stuart Mullinger
    0

    Afraid I'm running out of ideas Huw.

    If there was any kind of exception when getting the file from the remote server, you would see "Could not download media file '[name]' from '[url]'." in the log file. But, no file would exist in that case.

    If there was a problem saving to the local database then I would expect you to see an error generated from the Umbraco MediaService.

    I'm happy to experiment with one of the PDFs here, if that's possible. Appreciate that you may not be able to if it's not publicly available.

    As you say, very odd!

  • Huw Reddick 533 posts 1723 karma points
    Apr 02, 2021 @ 09:23
    Huw Reddick
    0

    I managed to figure it out, it is related to the media protection code they have on certain media folders, I disabled it and now all synched up, now I just need to work out why it is having a problem with the protected media files.

    If I log in to the back office with the same user as converge is using I can access the media files ok, so just need to figure out why converge is having an issue with them.

    Sorry to have bothered you with this one.

  • Stuart Mullinger 63 posts 289 karma points
    Apr 02, 2021 @ 09:40
    Stuart Mullinger
    0

    Think I know the answer to that one. Converge only uses the user credentials to get the rest of the content, document types, etc.

    To get the media binary, it references the /media/xyz/image.jpg directly, it expects it to be publicly available. Usually, it is.

    Is it a separate package that protects the media? Your own code? Or have I missed something within Umbraco?

  • Huw Reddick 533 posts 1723 karma points
    Apr 02, 2021 @ 10:10
    Huw Reddick
    0

    It is own code as they have some files that only certain members are allowed to access and yes it doesn't think it is logged in so won't return the media files. At least I know why now so can work around it, I just commented out the lines in the media folders web.config.

Please Sign in or register to post replies

Write your reply to:

Draft