[ALF-10840] SOLR indexing fails for unescaped string metadata Created: 15-Oct-11  Updated: 04-Nov-11  Resolved: 19-Oct-11

Status: Closed
Project: Alfresco
Component/s: Search and Indexing (non-UI)
Affects Version/s: 4.0.a Community
Fix Version/s: 4.0 Enterprise
Security Level: external (External user)

Type: Bug Priority: Blocker
Reporter: Andreas Steffan (Inactive) Assignee: Closed Issues
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File alfresco-4.0.a-solrserializer.diff    
Date of First Response:


Solr Indexing (almost silently) fails for nodes with indexed string properties (of type d:text) where the value needs escaping - dl:simpletaskComments of dl:simpletask is an example. Insert a " or a line-break and all you see is a one line warning in solr's log. Attached, you'll find a fix.

Comment by Andreas Steffan (Inactive) [ 15-Oct-11 ]


Comment by Ravi Manthena [X] (Inactive) [ 01-Nov-11 ]

Assigned to Alfresco QA Team for re-testing.

please confirm before you start testing this bug

1. Ensure that Head build number is 604
2. Ensure Subversion revision number is 31562 or less than 31562

Comment by Alfresco QA Team (Inactive) [ 02-Nov-11 ]

Please, provide more info how to validate this issue

Comment by Steven Glover [X] (Inactive) [ 02-Nov-11 ]

There is a unit tests that covers this (see SOLRWebScriptTest.testNodeMetaDataStringEscaping). However, you could test from the web client by creating a node with an author that
has a double quote or line break in it (as outlined in the bug description e.g. set the author to steve"1) and then doing an advanced search on author to ensure that the node has been indexed e.g. search for "steve" in the author field (with the Solr subsystem enabled). The search should return
the node.

Comment by Alfresco QA Team (Inactive) [ 04-Nov-11 ]

Successfully validated against Alfresco Enterprise build 604(r 31562), Tomcat, PostgreSQL, Java (all installer deployed), WinXP SP3, FF 7.0.1.

Generated at Tue Mar 09 08:27:47 GMT 2021 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.