Running into an issue where attachments downloaded or viewed in the helpdesk web interface are not viewable. When
downloading an attachment or any file type we get an error along the lines of the file being corrupt. This started happening after the upgrade to 1.17.2

Same goes for pasting in a screenshot into the body of the ticket.

However, the recipient sees the pasted in image in the email they receive. As well as being able to open attached files of all types just fine. It is only when trying to open files downloaded from the helpdesk.

I've checked permissions on the attachments folder and even set it recursively to 777 as well as chowning apache:apache whereas before we had the owner set as an osticket user account on the centOS box this is all running on.

My initial thoughts were permissions or maybe no free space on the VM but those both check out.

I should also mention I checked the database and the attachments are showing non 0 values for size. I had seen that issue a few times when searching for a resolution to this. Also selinux is disabled.

    it-law-man changed the title to Attachmetns on the file system broken after upgrade.

    it-law-man

    You’d need to check the error logs for more information. It sounds like permission/ownership issues.

    Cheers.

    5 days later

    Also did you upgrade the Storage :: Attachments on the Filesystem plugin after you upgraded?
    Are you running any other security products similar to SELinux?

      ntozier
      No other security and I did update the plugin. I actually found the issue. There was a post I came across when researching an issue with emails with aliases coming into the default department. The fix for that was to make some changes to the "class.mailfetch.php" and "api.tickets.php" I reverted those back to default and issue immediately resolved itself. However now we are having the issue again where a bunch of random tickets are getting put into the wrong department. Luckily I can create filters for 99% of them. I can provide the 4 files (2 original and 2 modified) if anyone wants to take a look at what could have possibly fixed the other issue and broke attachments.

      Write a Reply...