Bug 2108030 - Should prompt error info when add label value with more than 53 characters
Summary: Should prompt error info when add label value with more than 53 characters
Keywords:
Status: CLOSED DUPLICATE of bug 2102098
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-18 10:28 UTC by Yanping Zhang
Modified: 2022-07-18 10:52 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-18 10:52:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
long-label-value (165.33 KB, image/png)
2022-07-18 10:28 UTC, Yanping Zhang
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.