[MGNLUI-5651] Wildcard searches crash in content apps on Windows Created: 04/Feb/20  Updated: 05/Mar/21  Resolved: 05/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.6.12, 5.7.6
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

The reason is the path check with a filesystem library. On windows a InvalidPathException is thrown and not catched.

See info.magnolia.ui.workbench.search.SearchJcrContainer#getQueryWhereClauseSearch

if (Path.isAbsolute(escapedFullTextExpression)) {

Please change this implementation like you describe on info.magnolia.cms.core.Path#isAbsolute to solve this issue.

Steps to reproduce(OS: Windows; Magnolia:5):
1. Go to Pages App.
2. Look for a page using a wildcard, for instance: abou*
3. An exception comes out.



 Comments   
Comment by Roman Kovařík [ 05/Mar/21 ]

Closing as doesn't seem critical after couple of major versions.

Generated at Mon Feb 12 09:28:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.