Bug 2213761

Summary: If a PDF is deflate encoded, it does not mean it's password protected
Product: Red Hat Enterprise Linux 9 Reporter: Ville-Pekka Vainio <vpvainio>
Component: fileAssignee: Vincent Mihalkovič <vmihalko>
Status: CLOSED ERRATA QA Contact: Karel Volný <kvolny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, fsumsal, jwboyer, kdudka, kvolny, lzaoral
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: file-5.39-14.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:55:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ville-Pekka Vainio 2023-06-09 08:33:52 UTC
Description of problem:
I'm running tests for our project https://github.com/Digital-Preservation-Finland/file-scraper against EL9. At this point I'm using Alma 9. It seems C9S and Alma 9 have the same package version of file.

This is what I get when I run file against https://github.com/Digital-Preservation-Finland/file-scraper/blob/master/tests/data/application_pdf/valid_A-1a.pdf

$ file tests/data/application_pdf/valid_A-1a.pdf
tests/data/application_pdf/valid_A-1a.pdf: PDF document, version 1.4 (password protected)

However, the file is not password protected. This commit upstream fixes the bug: https://github.com/file/file/commit/239852073ad3a5ba5cf62b21e95565f122869f6a

I'll make a merge request adding the patch.

Version-Release number of selected component (if applicable):
file-5.39-12.el9.x86_64

Comment 1 Ville-Pekka Vainio 2023-06-09 09:26:56 UTC
Here's my merge request: https://gitlab.com/redhat/centos-stream/rpms/file/-/merge_requests/10

In case it's needed, my FAS/CAS account is vpv.

BTW, you may want to update the MR template. It says something about Red Hat Jira, but the documentation in https://docs.centos.org/en-US/stream-contrib/quickstart/ says nothing about a Jira.

Comment 2 Josh Boyer 2023-06-09 10:39:01 UTC
(In reply to Ville-Pekka Vainio from comment #1)
> BTW, you may want to update the MR template. It says something about Red Hat
> Jira, but the documentation in
> https://docs.centos.org/en-US/stream-contrib/quickstart/ says nothing about
> a Jira.

Thanks for this note.  In this case the Quick Start guide needs to be updated.

Comment 9 errata-xmlrpc 2023-11-07 08:55:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (file bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6693