[
https://issues.apache.org/jira/browse/NIFI-16352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18120878#comment-18120878
]
ASF subversion and git services commented on NIFI-16352:
--------------------------------------------------------
Commit c48597468a343a39701e04ec3e404a4925a32df3 in nifi's branch
refs/heads/main from Rob Fellows
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=c48597468a3 ]
NIFI-16352 - Disable Component State single-entry clear when the listing is
partial (#11685)
> UI - Disable Component State single-entry clear when the listing is partial
> ---------------------------------------------------------------------------
>
> Key: NIFI-16352
> URL: https://issues.apache.org/jira/browse/NIFI-16352
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core UI
> Reporter: Rob Fellows
> Assignee: Rob Fellows
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> h2. Problem
> When GET /state is truncated (totalEntryCount greater than the returned
> entries; cap is 5000 via SortedStateUtils.MAX_COMPONENT_STATE_ENTRIES), the
> Component State dialog already sets partialResults and shows “Showing partial
> results.” Per-entry delete is still offered.
> Clear-entry does not send “delete this key.” The UI POSTs the *visible
> remainder* of the map. The server requires that payload to be the *full live
> map minus exactly one key*
> (StandardComponentStateDAO.hasExactlyOneKeyRemoved). A partial listing fails
> that check with:
> Unable to remove a state key for component … Exactly one key removal is
> supported.
> Reproduced on DebugFlow with Generate State Entries above the GET cap (e.g.
> clearing debug_state_key_00000).
> h2. Fix
> When partialResults is true:
> * Do not offer per-entry delete (hide or disable the actions column)
> * Do not dispatch clearComponentStateEntry
> * Keep *Clear state* for the whole map
> * Optional tooltip/copy explaining why single-entry clear is unavailable on
> a partial listing
> h2. Out of scope
> * Changing the clear-entry API
> * Raising the 5000-entry GET cap
--
This message was sent by Atlassian Jira
(v8.20.10#820010)