Bug 53811 - UCR leaks open files
UCR leaks open files
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCR
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-0-errata
Assigned To: Nikola Radovanovic
Arvid Requate
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-09-20 11:28 CEST by Florian Best
Modified: 2021-12-08 17:17 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): bitesize
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-09-20 11:28:31 CEST
unittest revelas some warnings:

/usr/lib/python3/dist-packages/univention/config_registry/handler.py:793: ResourceWarning: unclosed file <_io.TextIOWrapper name='/etc/univention/templates/files/*' mode='r' encoding='utf-8'>                          
  handler.variables = grep_variables(open(from_path, 'r', encoding='utf-8').read())

/usr/lib/python3/dist-packages/univention/config_registry/handler.py:912: ResourceWarning: unclosed file <_io.TextIOWrapper name='/etc/univention/templates/info/*.info' mode='r' encoding='utf-8'>
  for section in parseRfc822(open(info, 'r', encoding='utf-8').read()):
Comment 2 Nikola Radovanovic univentionstaff 2021-11-04 10:20:13 CET
854bde8426 | UCR stop leaking open files
31dc9b4566 | Advisory update
fed6883d0a | UCR stop leaking open files
f693c80615 | Advisory update
Comment 3 Arvid Requate univentionstaff 2021-12-06 17:45:08 CET
Verified:
* Code review
* Package update
* Advisory