[MGNLDAM-942] Move JCR search result supplier config to the app it references Created: 24/Feb/21 Updated: 02/Mar/21 Resolved: 25/Feb/21 |
|
| Status: | Closed |
| Project: | Magnolia DAM Module |
| Component/s: | DAM JCR Provider |
| Affects Version/s: | 3.0.5 |
| Fix Version/s: | 3.0.6 |
| Type: | Task | Priority: | Neutral |
| Reporter: | Jesus Alonso | Assignee: | Jesus Alonso |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 4m | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoR: |
Empty
|
| Epic Link: | Imaging and External DAM |
| Sprint: | Cloud Service 2 |
| Story Points: | 2 |
| Comments |
| Comment by Jesus Alonso [ 24/Feb/21 ] |
|
After excluding magnolia-dam-jcr from the cloud webapp, we have this exception java.util.concurrent.CompletionException: java.lang.RuntimeException: info.magnolia.periscope.search.SearchException: javax.jcr.NoSuchWorkspaceException: dam at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) ~[?:?] at java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) ~[?:?] at java.security.AccessController.doPrivileged(Native Method) ~[?:?] at java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.RuntimeException: info.magnolia.periscope.search.SearchException: javax.jcr.NoSuchWorkspaceException: dam at info.magnolia.periscope.Periscope.lambda$search$1(Periscope.java:125) ~[magnolia-periscope-core-1.2.3.jar:?] at info.magnolia.periscope.search.SearchRunner.lambda$execute$0(SearchRunner.java:91) ~[magnolia-periscope-core-1.2.3.jar:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?] ... 7 more The problem is the searchResultSupplier is defined in magnolia-dam-app instead of magnolia-dam-jcr, where JcrAssetProvider is defined. If it was defined in magnolia-dam-app then when exclude magnolia-dam-jcr we wouldn't have this issue. AC
|