Can not generate PDF (exception) for TCR-table with filters applied

Crosby Dome, modified 2 Years ago.

Can not generate PDF (exception) for TCR-table with filters applied

Youngling Posts: 2 Join Date: 11/28/20 Recent Posts
Environment and versions:    Operating System:        Name: Linux        Version: 3.10.0-1127.19.1.el7.x86_64        Architecture: amd64    Java:        Version: 11.0.8        Vendor: AdoptOpenJDK        Home: /root/klaros-testmanagement/jre        Runtime Name: OpenJDK Runtime Environment        Runtime Version: 11.0.8+10        VM Name: OpenJDK 64-Bit Server VM        VM Version: 11.0.8+10    Database:        Name: PostgreSQL        Version: 12.4        Driver Name: PostgreSQL JDBC Driver        Driver Version: 42.2.16    Version:        Installed Version: 5.0.3 - Build 4876 (2020-10-14 19:46:29)        Release Date: 10/14/2020        Latest available Version: ""        Home: /data/klaros-home/    License: Community Edition    Installed via: https://github.com/klaros-testmanagement/klaros-docker/blob/master/Documentation.adoc


StepsToReproduce: 
- Navigate to "Evaluate"->"TestCaseResults"
- Click on filter button
- Setup filters:
    - Field = "Test Suite"
    - Type = "Equals"
    - Value = "TestSuiteName"
- Click on "Apply" button
- Click on "Export table" button
- Choose "PDF Export"

**BUG:**
"Well, this is unexpected ..." page shows up.
**Exception line:**
`The number of columns in PdfPTable constructor must be greater than zero.`

P.S.: Is there ability on your forum to attach files? I have additional, may be, useful files to help analyze problem (screenshots, video/screencast, logs)
thumbnail
Torsten Stolpmann, modified 2 Years ago.

RE: Can not generate PDF (exception) for TCR-table with filters applied

Jedi Council Member Posts: 748 Join Date: 2/12/09 Recent Posts
Hi Crosby,

thanks for reporting this issue.

I tried, but was not able to reproduce this behavior yet. I would be glad if you could add the log file (logs/catalina.out) and a screenshot of the page before exporting to your post.

Yes, this forum allows attachments, but you probably missed the buttons further below. I added a screenshot for clarification.

Regards,

Torsten
thumbnail
Fabian Klaffke, modified 2 Years ago.

RE: Can not generate PDF (exception) for TCR-table with filters applied (Answer)

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Crosby,

Klaros-Testmanagement 5.0.0 up to version 5.0.3 had an issue where applying a filter could cause the table to temporarily disappear. This in turn causes the table exporter to fail.

As this has been fixed as KLAROS-4461 in version 5.0.4, I would recommend that you upgrade to that version:

https://github.com/klaros-testmanagement/klaros-docker#update

Regards,
Fabian
Crosby Dome, modified 2 Years ago.

RE: Can not generate PDF (exception) for TCR-table with filters applied

Youngling Posts: 2 Join Date: 11/28/20 Recent Posts
Thank you so much!