Bug 2108030

Summary: Should prompt error info when add label value with more than 53 characters
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.11   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-18 10:52:11 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:
Attachments:
Description Flags
long-label-value none

Description Yanping Zhang 2022-07-18 10:28:32 UTC
Created attachment 1897902 [details]
long-label-value

Description of problem:
Edit label of one resource, eg, deployment/secret, add new label with value more than 63 characters, click "Save", 

Version-Release number of selected component (if applicable):
4.11.0-0.nightly-2022-07-16-020951

How reproducible:
Always

Steps to Reproduce:
1.Go to one secret page, click "Edit labels" from action list.
2.Input new label with value more then 63 characters, eg: testnew=1111111111111111112222222222222222333333333333333344444444444444444555555555555555556666666666666667777777777777777777. and click "Save".
3.

Actual results:
2.There is no response after click "Save", there is error info in developer console:
main-chunk-212b3af777b3dbd5674c.min.js:1 handlePromise failed in component : a: Error "Invalid value: "1111111111111111112222222222222222333333333333333344444444444444444555555555555555556666666666666667777777777777777777": must be no more than 63 characters" for field "metadata.labels".

Expected results:
2.Should prompt error in the edit modal.

Additional info:

Comment 1 Jakub Hadvig 2022-07-18 10:52:11 UTC
Closing this one since it depth its a duplicate of the same issue thats causing https://bugzilla.redhat.com/show_bug.cgi?id=2102098, where we are not properly rendering error message in the label modal.

*** This bug has been marked as a duplicate of bug 2102098 ***