Bug 38516 - Closed group basket not able to open pdf file with adobe The root object is missing or invalid
Summary: Closed group basket not able to open pdf file with adobe The root object is ...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-22 11:26 UTC by Hugo Agud
Modified: 2024-12-24 06:12 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
borken pdf (73.33 KB, application/pdf)
2024-11-22 11:26 UTC, Hugo Agud
Details
perl packages from ubuntu 22.04 (515.80 KB, image/jpeg)
2024-12-09 09:12 UTC, Hugo Agud
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Agud 2024-11-22 11:26:15 UTC
Created attachment 174925 [details]
borken pdf

We have realizaed from Koha 23.11 and 24.05 adobe is not able to open the pdf, it can be opened via broswer visor, or other pdf reader, but not with Adobe

It has been tested wit debian and ubuntu (both SO)

I get the error 
 The root object is missing or invalid

Test plan
1. Go to acquisition
2. Go to a vender with closed group basket
3. Try to export pdf file
4. Download locally
5. Open with Adobe
Comment 1 David Cook 2024-11-24 22:36:56 UTC
I tried reproducing using the test plan with the "main" and 23.11 branches, but it works fine for me. 

I do see the error when using the attached broken PDF though. 

--

I'm not super familiar with PDF markup, but looking at the broken and working files using notepad... the first 370 lines leading up to the first %%EOF are identical... and then the rest varies, which is probably related to the differing contents.

Looking at the broken file, I can see that it doesn't actually follow the test plan given in the "Description". 

--

Without a way to reproduce, we can't really take this one any further.
Comment 2 Hugo Agud 2024-11-29 07:15:12 UTC
I am thinking about what is different between you and me, and spanish characteres, and locale of servers, let me check twice
Comment 3 David Cook 2024-12-01 22:29:15 UTC
(In reply to Hugo Agud from comment #2)
> I am thinking about what is different between you and me, and spanish
> characteres, and locale of servers, let me check twice

I'd suggest trying to reproduce it using koha-testing-docker. (I thought that I'd suggested that before on here, but it looks like I forgot to!)
Comment 4 Hugo Agud 2024-12-09 09:12:50 UTC
Created attachment 175288 [details]
perl packages from ubuntu 22.04
Comment 5 Hugo Agud 2024-12-09 09:38:29 UTC
These are the packages comparisson

PDF::API2 	2.033 cs 2.044
PDF::Table (v0.9.3 )	0.10.1	vs 1.003
Text::PDF (0.29 ) vs 2.02
Comment 6 Hugo Agud 2024-12-20 11:59:15 UTC
Good morning, I have done a downgrade of the packages 

PDF::API2 	2.033 cs 2.044
PDF::Table (v0.9.3 )	0.10.1	vs 1.003
Text::PDF (0.29 ) vs 2.02

and now closed basket works fine
Comment 7 David Cook 2024-12-22 23:05:06 UTC
(In reply to Hugo Agud from comment #5)
> These are the packages comparisson
> 
> PDF::API2 	2.033 cs 2.044
> PDF::Table (v0.9.3 )	0.10.1	vs 1.003
> Text::PDF (0.29 ) vs 2.02

(In reply to Hugo Agud from comment #6)
> Good morning, I have done a downgrade of the packages 
> 
> PDF::API2 	2.033 cs 2.044
> PDF::Table (v0.9.3 )	0.10.1	vs 1.003
> Text::PDF (0.29 ) vs 2.02
> 
> and now closed basket works fine

These numbers don't seem to correspond to your image or to Ubuntu 22.04?
Comment 8 Hugo Agud 2024-12-23 06:34:55 UTC
AS I have tested on D12 and ubuntu2204 perhapts thar figures belongs to D12, however downgrade ubuntu 22.04 and D12 to those version numbers, the issue has gone
Comment 9 David Cook 2024-12-24 00:19:30 UTC
(In reply to Hugo Agud from comment #8)
> AS I have tested on D12 and ubuntu2204 perhapts thar figures belongs to D12,
> however downgrade ubuntu 22.04 and D12 to those version numbers, the issue
> has gone

Ok, but that suggests then that there is a potential problem for other people in the future.

Unless you're not using Debian packages and you're using all your modules from CPAN?
Comment 10 Hugo Agud 2024-12-24 06:12:30 UTC
i am using debían packsges, i just downgraded those three packages, as Inthough it was the source of the issue