Sergiu Dumitriu wrote:
Sebastian Kannengiesser wrote:
Hi Ricardo,
thanx for the tip, but apparently in my case it does not work.
Doing just the $xwiki.getDocument("myspace.<em class=") return me the document as I find by looking at the class field of the returned object. But calling delete on it has no effect. :(
That is because the document name isn't "<em class=". First find out the real document name with:
#foreach($i in $xwiki.searchDocuments(" where doc.space like '%class=%'"))
Sorry, it was supposed to be doc.name, not doc.space
* $xwiki.getXMLEncoded($i) #end
then use that as the document name.
On Wed, May 27, 2009 at 11:54 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team <[email protected]> wrote:
Hi Sebastian,
To hack the database is always a delicate issue!
Perhaps this could help you...
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToDeleteAnInaccessibleDocument
Please, let us know is this makes the trick. Thanks.
Cheers,
Ricardo
Sebastian Kannengiesser wrote:
Hi guys,
is raw database hacking the only way to remove such pages?
e.g. when looking at the orphaned pages tab in AllDocs, I find documents, generated through faulty code evaluation, such as .../SpaceName/<em class= , so to say, somehow the page was created with somje html stuff in its name. I've got lots of other examples. But when clicking on delete, XWiki tells me, that the page does not even exist yet. So, what can I do to delete it without hacking in the database itself.
-- Sergiu Dumitriu http://purl.org/net/sergiu/