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

PDF versions of the reports


#1

Has anyone tested the PDF creation of the reports with the new version 5.5?

I loaded 5.5 in our Test environment and tested emailing a report as PDF and then just downloading the PDF. I found errors every time. I never get the email even though I do get the test emails. When I create and then try and download as a PDF I get “404 - Not Found” errors.

Looking at the system logs I see the following:

[NotFoundException] Report file or resource not found

Details:
File: C:\Program Files (x86)\Resurgent\Web Sites\TestRail\sys\helpers\ex.php
Line: 25
Status Code: 404
Host: XXXXXXX
Uri: /index.php?/reports/get_pdf/1424/1 (GET)

Looks like 1424 is the report it is trying to load or send. Looking at the Report folder the report does seem to exist:
image

But in the PDF folder - nothing:
image

I don’t see any specific requirements for downloading as PDF so I assmue the install should be fine. If I download as HTML - no problems downloads in seconds.

We don’t really do reports but would like to have it available if it is needed.

Thanks,
Brian G

PS:
We are using Chrome 67.0.3396.62 and this is the trace form the logs:

Trace:
at ex::raise (ex.php:25)
at ex::raise (ex.php:77)
at ex::raiset (reports.php:399)
at Reports_controller->_stream_file (reports.php:461)
at Reports_controller->get_pdf (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)


#2

Hi BGanger,

thanks for your posting. This problem you encountered happens because you are trying to download/share a PDF version of a report that was generated before v5.5.0, where PDFs were not supported yet. Try creating a new report and you should be able to share/download PDF.

I hope it helps,

Regards,
Sabina


#3

Hi - in the example in this thread was created on 6/4/2018 which was yesterday after I patched our Test environment. I created at least 2 new reports yesterday after I patched all with the same results which is why I posted…

Thanks,

Brian


#4

Hi Brian,

Thanks for your reply! If the report was created manually after the update to TestRail 5.5 (and not scheduled before the update on a previous TestRail version), then there could be some other issue at play. Is this happening with all reports, even those that have been newly created/scheduled after you updated to TestRail 5.5? If the report was scheduled before TestRail 5.5 and the generation attempt was after you upgraded, then you may need to recreate the scheduled report again. If you’re still unsure, can you enable debug logs, create a new report manually with the PDF options, reproduce the error, and then send us a copy of the logs for review:

http://docs.gurock.com/testrail-faq/system-debug

You can send this directly to contact@gurock.com and reference this forum post. We look forward to hearing back!

Regards,
Marco


#5

Marco - I will send in an email - all of the reports are non-scheduled. When I test a new TR version I always create a new report and I can see the report in TR but the PDF is not downloadable.

Email sent with log file.


#6

Hi! Gurock team I have similar trouble! You know solutions? Please write how to fixed this problem?
Thank you!


#7

Hi,

I have the same problem.


#8

I emailed the support team Friday that the newest patch released did not fix our PDF issue. I might use Fiddler to see if I can get any more info.


#9

Good, I check directory for report and I saw what directory with pdf is empty. I think pdf doesn’t created with report, I don’t know maybe it’s correct and pdf created of html report


#10

Since our error is a 404 error on the GET for the report I would bet it does need to be created as part of the report creation and that folder should not be empty.


#11

I’ve the same problem. Report is completely new, not scheduled. Server version, PHP 7.
I sent a bug report so support


#12

Same for the 404 on PDF reports. And we have some troubles about reports, some of them are not complete.