Bug 2292632

Summary: Missing dependency python3-cmarkgfm
Product: [Fedora] Fedora EPEL Reporter: Michal Konecny <mkonecny>
Component: python-postoriusAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel9CC: epel-packagers-sig, infra-sig, michel, mkonecny, ngompa13, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-postorius-1.3.8-8.fc39 python-postorius-1.3.8-8.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-08-27 02:00:19 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:
Bug Depends On: 2307985    
Bug Blocks:    

Description Michal Konecny 2024-06-17 07:59:49 UTC
Description of problem:
This missing dependency is causing postorius to throw 500 on admin page for some of the mailing lists, this is caused by markdown being used in the description of mailing list.
You can notice the missing dependency during the start of postorius with this warning:
```
UserWarning: Markdown renderers are not available. Install 'readme_renderer[md]' to enable Markdown rendering.
```
With some help I was able to identify that the missing dependency is python3-cmarkgfm and tested out that installing this solves the issue.

Version-Release number of selected component (if applicable):
postorius-1.3.8-3.el9.noarch

How reproducible:
If the mailing list has markdown in their description it will start throwing 500.

Steps to Reproduce:
1. Create a new mailing list with markdown in description
2. Try to open the postorius admin page for it

Actual results:
The page returns 500 with issue about rendering the description field.

Expected results:
The page is open.

Additional info:

Comment 1 Michel Lind 2024-08-26 18:04:46 UTC
So I suspect this is because we change the dependency on readme-renderer[md] to just readme-renderer... the proper fix is probably to fix python-readme-renderer to ship the extra 'md' and then just stop patching the dependency.

Looking...

Comment 2 Michel Lind 2024-08-26 19:02:50 UTC
Should be fixed in 1.3.8-8

michel in python-postorius on  rawhide [?⇡] 
⬢ [f40-packaging] ❯ rpm -qp --requires /home/michel/src/fedora/pkgs-mailman/collab/python-readme-renderer/repo/results/fedora-rawhide-x86_64/python-postorius-1.3.8-8.fc42/postorius-1.3.8-8.fc42.noarch.rpm 
(python3.13dist(django) < 4.3~~ with python3.13dist(django) >= 3.2)
python(abi) = 3.13
python3.13dist(django-mailman3) >= 1.3.8
python3.13dist(mailmanclient) >= 3.3.3
python3.13dist(readme-renderer)
python3.13dist(readme-renderer[md])
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1
rpmlib(RichDependencies) <= 4.12.0-1
rpmlib(TildeInVersions) <= 4.10.0-1

michel in python-postorius on  rawhide [?⇡] 
⬢ [f40-packaging] ❯ rpm -qp --requires /home/michel/src/fedora/pkgs-mailman/collab/python-readme-renderer/repo/results/fedora-rawhide-x86_64/python-readme-renderer-43.0-1.fc42/python3-readme-renderer+md-43.0-1.fc42.noarch.rpm 
python(abi) = 3.13
python3-readme-renderer = 43.0-1.fc42
python3.13dist(cmarkgfm) >= 0.8
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1

Comment 3 Fedora Update System 2024-08-26 22:27:11 UTC
FEDORA-2024-655169bbf2 (python-postorius-1.3.8-8.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-655169bbf2

Comment 4 Fedora Update System 2024-08-26 22:28:44 UTC
FEDORA-2024-655169bbf2 (python-postorius-1.3.8-8.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2024-08-26 22:39:59 UTC
FEDORA-2024-21181a1583 (python-postorius-1.3.8-8.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-21181a1583

Comment 6 Fedora Update System 2024-08-26 22:41:02 UTC
FEDORA-2024-7ece5571c4 (python-postorius-1.3.8-8.fc40 and python-readme-renderer-43.0-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-7ece5571c4

Comment 7 Fedora Update System 2024-08-26 22:41:27 UTC
FEDORA-2024-f47d682917 (python-postorius-1.3.8-8.fc39 and python-readme-renderer-43.0-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f47d682917

Comment 8 Fedora Update System 2024-08-26 22:43:44 UTC
FEDORA-2024-21181a1583 (python-postorius-1.3.8-8.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-08-27 02:00:19 UTC
FEDORA-2024-f47d682917 (python-postorius-1.3.8-8.fc39 and python-readme-renderer-43.0-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-08-27 17:08:42 UTC
FEDORA-2024-7ece5571c4 (python-postorius-1.3.8-8.fc40 and python-readme-renderer-43.0-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.