Bug 2241929 - opendmarc-expire fails on an empty database
Summary: opendmarc-expire fails on an empty database
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: opendmarc
Version: epel9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-03 13:48 UTC by Frank Büttner
Modified: 2023-10-03 13:48 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Frank Büttner 2023-10-03 13:48:03 UTC
Description of problem:
When the database is empty the tool fails with exit code 1

Version-Release number of selected component (if applicable):
opendmarc-1.4.2-10.el9.x86_64

How reproducible:
Every time

Steps to Reproduce:
1. Create an empty database with the default schema
2. call OPENDMARC_PASSWORD=XXXXXX /usr/sbin/opendmarc-expire --verbose;echo $?


Actual results:
It fails with:
opendmarc-expire: started at Tue Oct  3 15:45:33 2023
opendmarc-expire: connected to database
opendmarc-expire: expiring messages older than 180 day(s)
opendmarc-expire: no rows deleted
1

Expected results:
That an empty database will be intercepted.

Additional info:
The error comes from line 323 of the perl script.


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