Bug 2213761 - If a PDF is deflate encoded, it does not mean it's password protected
Summary: If a PDF is deflate encoded, it does not mean it's password protected
Keywords:
Status: ON_QA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: file
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Vincent Mihalkovič
QA Contact: Karel Volný
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-09 08:33 UTC by Ville-Pekka Vainio
Modified: 2023-08-10 13:00 UTC (History)
5 users (show)

Fixed In Version: file-5.39-14.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-159373 0 None None None 2023-06-09 10:40:19 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.