Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-13529

Deleted documents not hanlded correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.5.2, 2.6.0
    • Component/s: Search
    • Labels:
      None

      Description

      Search does not appear to be handling deleted documents correctly.

      In this case, a folder was created and 2 files added to the folder. The files were indexed. Then using WebDAV, the folder was renamed. This produces the following events:

      57843509 2008-05-14 14:41:17 content.delete /content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/ 9f289db3-9681-4dd4-a849-12cf12b63301 m
      57843508 2008-05-14 14:41:17 content.delete /content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/discourse2 9f289db3-9681-4dd4-a849-12cf12b63301 m
      57843507 2008-05-14 14:41:17 content.delete /content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc 9f289db3-9681-4dd4-a849-12cf12b63301 m
      57843506 2008-05-14 14:41:16 content.new /content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Gone Some Name/discourse2 9f289db3-9681-4dd4-a849-12cf12b63301 m
      57843505 2008-05-14 14:41:16 content.new /content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Gone Some Name/DA module outline.doc 9f289db3-9681-4dd4-a849-12cf12b63301 m
      57843504 2008-05-14 14:41:15 content.new /content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Gone Some Name/ 9f289db3-9681-4dd4-a849-12cf12b63301 m

      (i.e. content.delete for the old folder and 2 files, and content.new for the new folder and files)

      Search does not appear to process the content.delete items correctly, e.g.:

      DEBUG: Notify content.delete (2008-05-14 14:41:17,799 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchNotificationAction)
      DEBUG: Add resource org.sakaiproject.event.impl.BaseNotificationService$BaseNotificationEdit@4405a711::0:content.delete@/content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc[m, 0] (2008-05-14 14:41:17,800 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl)
      DEBUG: new entitycontent producer (2008-05-14 14:41:17,800 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl)
      DEBUG: Skipped ECP org.sakaiproject.chat2.model.impl.ChatContentProducer@1d672476 (2008-05-14 14:41:17,800 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl)
      DEBUG: Skipped ECP uk.ac.cam.caret.sakai.rwiki.component.service.impl.RWikiEntityContentProducer@4475a0c6 (2008-05-14 14:41:17,800 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl)
      DEBUG: Message.email.getReference/content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc:org.sakaiproject.entity.impl.ReferenceComponent@2e57edd (2008-05-14 14:41:17,800 TP-Processor2_org.sakaiproject.search.component.adapter.message.MessageContentProducer)
      DEBUG: Skipped ECP org.sakaiproject.search.component.adapter.message.MessageContentProducer@6a790e37 (2008-05-14 14:41:17,800 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl)
      DEBUG: Message.announcement.getReference/content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc:org.sakaiproject.entity.impl.ReferenceComponent@28ebe0a7 (2008-05-14 14:41:17,800 TP-Processor2_org.sakaiproject.search.component.adapter.message.MessageContentProducer)
      DEBUG: Skipped ECP org.sakaiproject.search.component.adapter.message.MessageContentProducer@3194737d (2008-05-14 14:41:17,800 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl)
      DEBUG: ContentHosting.getAction0:content.delete@/content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc[m, 0]:delete (2008-05-14 14:41:17,800 TP-Processor2_org.sakaiproject.search.component.adapter.contenthosting.ContentHostingContentProducer)
      DEBUG: Resource Not present in CHS /content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc (2008-05-14 14:41:17,801 TP-Processor2_org.sakaiproject.search.component.adapter.contenthosting.ContentHostingContentProducer)
      DEBUG: ContentHosting.getAction0:content.delete@/content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc[m, 0]:uknown (2008-05-14 14:41:17,801 TP-Processor2_org.sakaiproject.search.component.adapter.contenthosting.ContentHostingContentProducer)
      DEBUG: ContentHosting.matches0:content.delete@/content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc[m, 0]:false (2008-05-14 14:41:17,802 TP-Processor2_org.sakaiproject.search.component.adapter.contenthosting.ContentHostingContentProducer)
      DEBUG: Skipped ECP org.sakaiproject.search.component.adapter.contenthosting.ContentHostingContentProducer@121bcc9f (2008-05-14 14:41:17,802 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl)
      DEBUG: Failed to match any Entity Content Producer for event 0:content.delete@/content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc[m, 0] (2008-05-14 14:41:17,802 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl)
      DEBUG: Not indexing /content/group/7a0c58e8-766e-4858-8db4-0815a7a8cf7c/Colon: Some Name/DA module outline.doc as it has no context (2008-05-14 14:41:17,802 TP-Processor2_org.sakaiproject.search.component.service.impl.SearchIndexBuilderImpl)

      The result of the above is orphaned index entries which can no longer be resolved, so user's see results such as :

      : You do not have permission to view this search result, please contact the worksite administrator

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    Unassigned
                    Reporter:
                    smarquard Stephen Marquard
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    1 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration