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: ON_QA --- QA Contact: Karel Volný <kvolny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, fsumsal, jwboyer, kdudka, kvolny
Target Milestone: rcKeywords: Triaged
Target Release: ---   
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: 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.