[ 
https://jira.nuxeo.com/browse/NXP-6315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Grisel updated NXP-6315:
--------------------------------

    Attachment: NXP-6315.patch

Updated version of the fix. Now includes a proper regression test to 
demonstrate the fix. I wonder if the call to session.getNodeById(docId) to test 
whether the whole document has not been deleted is not overkill but could not 
find any other trivial way to do it.

> Fulltext index is not updated when removing a single attached files in the 
> files tab
> ------------------------------------------------------------------------------------
>
>                 Key: NXP-6315
>                 URL: https://jira.nuxeo.com/browse/NXP-6315
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Core SQL Storage
>    Affects Versions: 5.4.0.1
>            Reporter: Olivier Grisel
>            Assignee: Olivier Grisel
>             Fix For: 5.4.1
>
>         Attachments: NXP-6315.patch
>
>
> Steps to reproduce:
> 1- create an empty file on your drive named "uniqueword1.txt" and with 
> content "uniqueword2"
> 2- create a document of type File with no main attachment and title "Test 
> File document"
> 3- go to the "Files" tab of "Test File document" and attach "uniqueword1.txt"
> By using the search box, you should be able to find "Test File document" with 
> both "uniqueword1.txt"  and "uniqueword2" as query words. Everything is fine 
> so far.
> 4- go back to the  "Files" tab of "Test File document" and click the red 
> minus button to delete the  "uniqueword1.txt" file attachment.
> 5-  query both on "uniqueword1.txt"   and "uniqueword2" in the nuxeo search 
> box
> Expected: "Test File document"  does not show up in the search results
> Observed: "Test File document"  does show up in the search results
> The culprit seams to be 
> PersistenceContext#findDirtyDocuments(Set<Serializable> dirtyStrings, 
> Set<Serializable> dirtyBinaries) that ignores documents where an element of a 
> complex property is deleted.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to