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

Crosby Dome, geändert vor 3 Jahren.

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

Youngling Beiträge: 2 Beitrittsdatum: 28.11.20 Neueste Beiträge
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, geändert vor 3 Jahren.

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

Jedi Council Member Beiträge: 755 Beitrittsdatum: 12.02.09 Neueste Beiträge
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, geändert vor 3 Jahren.

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

Padawan Beiträge: 92 Beitrittsdatum: 01.09.12 Neueste Beiträge
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, geändert vor 3 Jahren.

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

Youngling Beiträge: 2 Beitrittsdatum: 28.11.20 Neueste Beiträge
Thank you so much!