Details
-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
Description
2015-01-07 09:51:38,180 ERROR h.solrsearchprovider.logic.indexer.SolrIndexerImpl: error reading streams 2015-01-07 09:51:38,184 ERROR h.solrsearchprovider.logic.indexer.SolrIndexerImpl: Server returned HTTP response code: 401 for URL: http://localhost:8080/magnoliaAuthor/dam/solr/Magnolia_Flyer_4-0/neco.pdf
Problem is probably caused by that solr server sends request to document as anonymous user, but that one has no permission to read the document from dam.
Proposal:
Store dam document as temp file and then use ContentStreamUpdateRequest.addFile(file) instead of using ContentStreamBase.URLStream(url); up.addContentStream(base); in info.magnolia.search.solrsearchprovider.logic.indexer.SolrIndexerImpl#pullExtract method.
Checklists
Acceptance criteria