sonatype / nexus-public

Sonatype Nexus Repository Open-source codebase mirror
https://www.sonatype.com/products/repository-oss-download
Eclipse Public License 1.0
1.96k stars 578 forks source link

Error when filtering permissions for a role in 3.70.3-01 #495

Open dymq opened 1 month ago

dymq commented 1 month ago

Hi, when trying to use filter in privileges selection for a role I am able only to type a subset of letters and unlimited asterisks, insertion of any other char causes following error to show up:

Uncaught TypeError: Cannot read properties of null (reading 'toLowerCase') (https://NEXUS-ADDRESS/static/nexus-rapture-bundle.js?_v=3.70.3-01&_e=OSS&_c=2024-10-02-1800-19686:2)

image

From dev tools console:

Uncaught TypeError: Cannot read properties of null (reading 'toLowerCase') at at Array.filter (<anonymous>) at filteredData () at at Array.reduce (<anonymous>) at E () at H () at e.resolveTransition () at e.transition () at
  | (anonymous) | @ | PrivilegeSelectionMachine.js:72 -- | -- | -- | --   | filteredData | @ | PrivilegeSelectionMachine.js:72   | (anonymous) | @ | utils.js:385   | E | @ | utils.js:367   | H | @ | actions.js:429   | e.resolveTransition | @ | StateNode.js:876   | e.transition | @ | StateNode.js:812   | (anonymous) | @ | interpreter.js:695   | a | @ | serviceScope.js:9   | e.nextState | @ | interpreter.js:694   | (anonymous) | @ | interpreter.js:102   | e.process | @ | scheduler.js:64   | e.schedule | @ | scheduler.js:43   | send | @ | interpreter.js:98   | onChange | @ | PrivilegesSelectionModal.jsx:78   | onChange | @ | NxTextInput.js:72   | Be | @ | react-dom.production.min.js:52   | Xe | @ | react-dom.production.min.js:52   | (anonymous) | @ | react-dom.production.min.js:53   | Mr | @ | react-dom.production.min.js:100   | Nr | @ | react-dom.production.min.js:101   | (anonymous) | @ | react-dom.production.min.js:113   | Ve | @ | react-dom.production.min.js:292   | (anonymous) | @ | react-dom.production.min.js:50   | Pr | @ | react-dom.production.min.js:105   | Jt | @ | react-dom.production.min.js:75   | Kt | @ | react-dom.production.min.js:74   | t.unstable_runWithPriority | @ | scheduler.production.min.js:18   | Wa | @ | react-dom.production.min.js:122   | He | @ | react-dom.production.min.js:292   | Zt | @ | react-dom.production.min.js:73

image

The issue was not present in 3.70.2-01.

BR, Damian