Uploaded image for project: 'LLM AI Integration'
  1. LLM AI Integration
  2. LLMAI-237

Deleting a collection that indexes wiki pages through the REST API fails with an error 500

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.1
    • 0.5
    • None
    • Unknown

    Description

      Problem

      DELETE /rest/wikis/xwiki/aiLLM/collections/<name> answers 500 for a collection that indexes wiki pages, and the collection is not deleted. Collections whose documents were uploaded through the API are deleted correctly.

      Steps to reproduce

      1. Create a collection that indexes the pages of a wiki space.
      2. Send DELETE /rest/wikis/xwiki/aiLLM/collections/<name>.

      Result

      The response is an error 500 and the collection still exists.

      Expected

      The collection and its chunks are removed. The wiki pages it indexed are left untouched.

      Cause

      Deleting a collection first deletes each of its documents. For a collection that indexes wiki pages the documents are the wiki pages themselves, which the collection must not delete, so that step is refused and the whole deletion fails.

      Attachments

        Activity

          People

            ppantiru Paul Pantiru
            ppantiru Paul Pantiru
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: