SenseNet / sn-client

Monorepo for sensenet client packages šŸ±ā€šŸ’»
https://sensenet.com
GNU General Public License v2.0
25 stars 37 forks source link

AdminUI crashes on contents with parenthesis in their names #1370

Closed VargaJoe closed 2 years ago

VargaJoe commented 3 years ago

repro:

popup: An error occured and your request couldn't be completed. TypeError: Cannot read property 'replace' of undefined at https://admin.test.sensenet.com/static/js/main.d067b5d8.js:1:2452 at Array.map () at Breadcrumbs_Breadcrumbs (https://admin.test.sensenet.com/static/js/main.d067b5d8.js:1:2247) at oh (https://admin.test.sensenet.com/static/js/131.b3b6ac6b.js:2:1868515) at di (https://admin.test.sensenet.com/static/js/131.b3b6ac6b.js:2:1878139) at gl (https://admin.test.sensenet.com/static/js/131.b3b6ac6b.js:2:1919752) at Qj (https://admin.test.sensenet.com/static/js/131.b3b6ac6b.js:2:1910594) at Kj (https://admin.test.sensenet.com/static/js/131.b3b6ac6b.js:2:1910517) at yj (https://admin.test.sensenet.com/static/js/131.b3b6ac6b.js:2:1907328) at https://admin.test.sensenet.com/static/js/131.b3b6ac6b.js:2:1854575 Error message: Cannot read property 'replace' of undefined

VargaJoe commented 2 years ago

custom react app from sensenet core package is also affected

VargaJoe commented 2 years ago

sensenet client has the same problem when creating react app with it and try to use content.load()

a workaround to encode parenthesis "(" to "%28" and ")" to "%29" in the path with idOrPath

tusmester commented 2 years ago

Hey @Restobit Iā€™m using ZenHub in GitHub, click this link to join my workspace and see other features available in GitHub or download the ZenHub extension and sign up with your GitHub account. Posted using ZenHub