Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

Testrail attachments not opening


The attachment does not exist or you do not have the permission to access it.


File: /var/www/testrail/sys/helpers/ex.php

Line: 25

Status Code: 500

Host: testrail.url

Uri: /testrail/index.php?/attachments/get/98162 (GET)

Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Firefox/45.0

PHP: 5.5.9-1ubuntu4.14

Server: Linux 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64


at ex::raise (controller.php:314)

at Controller->_raiset (attachments.php:289)

at Attachments_controller->get (:)

at call_user_func_array (controller.php:257)

at Controller->_invoke_web_call (controller.php:168)

at Controller->_invoke_web (controller.php:120)

at Controller->_invoke (gizmo.php:107)

at require_once (index.php:106)



Hi Vivek,

Thanks for your posting. If the attachment does exist, this means that you don’t have the permissions to access it. Can you check the project/global permissions for your user and/or the user who’s affected?