[pbs-devel] [PATCH proxmox-backup] ui: add consent banner maxLength

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Dec 9 12:29:02 CET 2024


Am 06.12.24 um 13:23 schrieb Gabriel Goller:
> Add a maxLength of 24000 to the consentBanner. This is the same limit as
> in PVE, and while it makes sense there (file size limits in pmxcfs), it
> acts more as an arbitrary stop-gap here.
> 
> Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
> ---
>  www/config/NodeOptionView.js | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/www/config/NodeOptionView.js b/www/config/NodeOptionView.js
> index c327356f7f24..966e6d719469 100644
> --- a/www/config/NodeOptionView.js
> +++ b/www/config/NodeOptionView.js
> @@ -59,6 +59,9 @@ Ext.define('PBS.NodeOptionView', {
>  	    name: 'consent-text',
>  	    text: gettext('Consent Text'),
>  	    deleteEmpty: true,
> +	    fieldOpts: {
> +		maxLength: 24000,

But that's frontend only? So not really a limitation for anybody.
While it is great to have for UX, the real check should go into
the backend.




More information about the pbs-devel mailing list