-
1. Re: Deletion of node still leave *.modeshape meta files.
rhauch Apr 27, 2012 10:39 AM (in response to dmitry.zhuravlev)That remaining node is the root node of the repository, and with JCR there's no way to remove the root node; a repository always contains an implicit root node. Of course, if you're destroying the repository, can't you pretty easily clean up the filesystem?
-
2. Re: Deletion of node still leave *.modeshape meta files.
dmitry.zhuravlev Apr 27, 2012 3:03 PM (in response to rhauch)Do you mean this is the root node of whole repository? I don't want to destroy whole repository. This repository contains a lot of files which is sheduled to clean up by date. Clean task works fine, but in repository still remain files "file1.modeshape", "file2.modeshape", "file3.modeshape" and so on. Every file that uploaded in repository have his own "modeint:nodeDefinition (string) " string. They are all small (129b) but they grows very fast every time shedule is started. What can you suggest me in this case? Delete this files like regular java.io.File, or I can do something with modeshape?
-
3. Re: Deletion of node still leave *.modeshape meta files.
rhauch Apr 27, 2012 3:08 PM (in response to dmitry.zhuravlev)Sorry, I misunderstood this statement:
This method successfully remove node except one file "file_name.modeshape" with content
modeint:nodeDefinition (string) "{httpwww.modeshape.org1.0}root//{httpwww.jcp.orgjcrnt1.0}base"
to imply that you were able to remove all the nodes and their corresponding *.modeshape files, but after that one additional file named "file_name.modeshape" remained.
When you are creating the nodes, are you assigning a primary type of 'nt:file' or something else?
-
4. Re: Deletion of node still leave *.modeshape meta files.
dmitry.zhuravlev Apr 27, 2012 3:17 PM (in response to rhauch)Randall Hauch wrote:
Sorry, I misunderstood this statement:
This method successfully remove node except one file "file_name.modeshape" with content
modeint:nodeDefinition (string) "{httpwww.modeshape.org1.0}root//{httpwww.jcp.orgjcrnt1.0}base"
to imply that you were able to remove all the nodes and their corresponding *.modeshape files, but after that one additional file named "file_name.modeshape" remained.
Oh, this is my fault I want to write "files" instead of "one file".
When you are creating the nodes, are you assigning a primary type of 'nt:file' or something else?
I presume this is "nt:file", because I use "upload" method in JcrTools class.
-
5. Re: Deletion of node still leave *.modeshape meta files.
rhauch Apr 27, 2012 3:32 PM (in response to dmitry.zhuravlev)The JcrTools.updateFile(...) methods do create nodes of type 'nt:file'. Do all of the *.modeshape files have the same content, or are they different? What's throwing me is the nodeDefinition value, which seems right for the root node but not for any other node.
-
6. Re: Deletion of node still leave *.modeshape meta files.
dmitry.zhuravlev Apr 28, 2012 4:41 AM (in response to rhauch)All *.modeshape files have the same set of mixins, but of course different mixins values.
What's throwing me is the nodeDefinition value, which seems right for the root node but not for any other node.
The root node is folder "files" (because
defaultWorkspaceName is files
). This folder have "jcr:primaryType (name) mode:root" in "files.modeshape" file. I think this is the root of repository. But every other file in repository has its own *.modeshape file with mixins and this string: "modeint:nodeDefinition (string) "{httpwww.modeshape.org1.0}root//{httpwww.jcp.orgjcrnt1.0}base"". -
7. Re: Deletion of node still leave *.modeshape meta files.
dmitry.zhuravlev May 12, 2012 9:40 AM (in response to rhauch)Randall, what do you think about this? Is this a bug of modeshape?
-
8. Re: Deletion of node still leave *.modeshape meta files.
rhauch May 14, 2012 10:35 AM (in response to dmitry.zhuravlev)Not sure, but it very well could be. Can you log an issue, preferably with a self-contained test case?
-
9. Re: Deletion of node still leave *.modeshape meta files.
dmitry.zhuravlev May 15, 2012 9:05 AM (in response to rhauch)I was posted issue about this problem with sample project MODE-1483
-
10. Re: Deletion of node still leave *.modeshape meta files.
rhauch May 15, 2012 11:09 AM (in response to dmitry.zhuravlev)Thank you very much, Dmitry!
-
11. Re: Deletion of node still leave *.modeshape meta files.
dmitry.zhuravlev May 15, 2012 1:17 PM (in response to rhauch)No problem! I hope you can provide some workaround for this issue.