-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.35
-
None
-
Empty show more show less
-
Yes
-
Yes
-
Nucleus 42, Nucleus 43
-
5
-
Yes
Steps to reproduce
In demo author:
- Export an asset from dam app
- Open importer subapp of Jcr-Tools app
- Select dam repository, root path and behaviour: replace existing nodes with the same ID
- Press execute
Expected results
Node is imported correctly and replaced
Actual results
There is an error message:
javax.jcr.query.InvalidQueryException: Query: SELECT * FROM [nt:resource] WHERE(*); expected: NOT, (
Development notes
The query is not correctly generated in method info.magnolia.importexport.command.JcrImportCommand.validate(Node, Context, NodeIterator). The value of statement is:
SELECT * FROM [nt:resource] WHERE
It's assumed that there's always a where clause while there are some cases in which it's not the case. Adding an empty string check in line 118 will fix this issue.
Acceptance criteria
- is duplicated by
-
JCRTOOLS-63 Jcr importer is failing for XML files
- Closed
1.
|
Implementation | Completed | Antonín Juran | |
2.
|
Code review | Completed | Adam Siska | |
3.
|
Pre-integration QA | Completed | Adam Siska | |
4.
|
Final QA | Completed | Quach Hao Thien |