Bug 56344 - hardcoded maxsize of profile picture
hardcoded maxsize of profile picture
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-23 15:39 CEST by Tim Breidenbach
Modified: 2023-07-23 15:44 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.051
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Breidenbach univentionstaff 2023-07-23 15:39:32 CEST
The following UCR variable:

umc/server/upload/max: 2048
This variable configures the maximum size of file uploads in kilobyte.

has no affect to the hardcoded value in the User Profile picture JavaScript widget:
management/univention-web/js/widgets/ImageUploader.js
[...]
maxSize: 262400
[...]

management/univention-management-console-module-udm/umc/js/udm/DetailPage.js
[...]
maxSize: 262144, // make sure that user pictures are not too large
[...]

So the administrator can only set profile pictures to 0,3MB! 

We should either set it as default consistent to the umc/server/upload/max: 2048
or give an configuration option.