• Document.remove(true) doesn't delete the document

    By Bjørn Tore Olsen Cintra 1 decade ago

    A call to document.remove(true) returns false, and the Document is not removed, and no error occurs.

     

    Bjørn

     

    • Still valid...

      By Bjørn Tore Olsen Cintra 1 decade ago

      ...however, if I replace doc.remove(true) with doc.removePermanently(true) it behaves as expected.

      If the behaviour of doc.remove() has changed compared to the lotus.domino.*-API, then this should probably be documented. I am currently replacing the old lotus.domino in an existing project, and if it behaved the same way, that would be much easier. :)

      In this case, I am lucky, as I have a single point where all documents go to be removed, but there are probably other changes like this?

      regards

      Bjørn

      • I'll have a look at this.

        By Nathan T Freeman 1 decade ago

        There's some shielding around Document.remove() to account for DatabaseTransactions, so I could easily have gotten overly aggressive. :-)