Важно ажурирање: Waldek Mastykarz has posted a workaround here: http://blog.mastykarz.nl/inconvenient-sharepoint-2010-content-query-web-part-anonymous-access/.
</заврши ажурирање>
Оваа недела, my team and I were upgrading a customer’s public internet site from MOSS to SP 2010. The MOSS site uses the CQWP in several places.
Отидовме низ многу детални постапка да се обезбеди точност, quality and all that good stuff. Despite that, we ran into a problem in the 11th hour that we didn’t expect or uncover until very late. Специјално, our CQWP wouldn’t render for anonymous users. It rendered find for the authors (кои беа најавени во), но тоа не ќе покаже содржина за анонимни корисници.
Ние направивме многу за истражување и овие се параметри и активности ние почнавме да се изолира однесување:
- CQWP би го направила парична казна кога беше влечење содржини од сопствени листа.
- CQWP би го направила содржини од / Страници библиотека.
- Тоа не би го направила содржини од / SiteCollectionImages
- We created a new document library and uploaded a few docs to it. We did not add any content types to the library – this was a simple out of the box doc lib with no customization. Existing CQWP could not read from it.
- We created a new page and added a CQWP to it using all default values. it would not render for anonymous.
- Ние (малку пребрзано) постави нова СП 2010 животната средина, директно од кутијата повторно и реплицира ова однесување.
Крајна линија, it appears that CQWP in SP2010 can’t render content for anonymous users when the data source is a document library. Can this be true?
Ова е грешка што сме го виделе во логови:
Веб Дел наслов: Содржината Пребарување Веб Дел 653d91fb-2f83-4e6a-83af-1f39e8939f0a
07/30/2010 12:03:56.90 w3wp.exe (0x0F30) 0x1540 SharePoint Foundation Web Parts 89a1 High Error while executing web part: System.NullReferenceException: Референца на објект не е поставена на пример на објект. at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.SetDocumentIconUrlAndOnClickString(SPWeb веб, DataRow ред, Стринг strDefaultItemOpen, Boolean fSetDocIcon, Булова fSetOnClick, Стринг fileRefColumnRef, Стринг progIdColumnRef, Стринг fsobjTypeColumnRef, Стринг permMaskColumnRef) at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.PreProcessForDocumentIconAndOnClickAttribute() at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.AddContentQueryData() at Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart.GetXPathNavigator(Стринг viewPath) at Microsoft.SharePoint.WebPartPages.DataFormWebPart…. 653d91fb-2f83-4e6a-83.-1f39e8939f0a
It just seems kind of impossible that CQWP wouldn’t work for anonymous users. If you know any more about this, Ве молиме да поставите коментар.
</крајот>
Да се претплатите на мојот блог.
Следете ме на Twitter во http://www.twitter.com/pagalvin
Pingback: Tweets that mention SP 2010 CQWP, Document Libraries and Anonymous Users « Paul Galvin's SharePoint Space -- Topsy.com
Pingback: Inconvenient SharePoint 2010 Content Query Web Part and Anonymous Access - Waldek Mastykarz
Paul, did you ever get this resolved? I have had a love / hate relationship with the CQWP since SP 2007. Ви благодариме за пост.
-Eugene
Just because I didnt see any links postet here yet, a few pointers:
http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/892c9b5e-9ef3-4471-8825-6d632d046118
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/90223bf3-278f-4168-b124-3413489b936a
http://www.sharepointoverflow.com/questions/3979/content-query-web-part-cqwp-fails-to-show-picture-items-from-a-document-picture/4008#4008
http://blog.mastykarz.nl/inconvenient-sharepoint-2010-content-query-web-part-anonymous-access/
A few workarounds, but there apparently is no FIX for this problem. The CQWP just doesnt work anonymously i suppose…
Did you ever find out more about this issue?
I am having the same problem. Site going live soon and I’ve discovered that CQWP don’t show content from the Pages library when not logged in. I have triple checked that all pages are checked-in and published.
Содржината Пребарување Веб Дел (CQWP) has to be tweaked to work with Anonymous Access please see http://blogs.edork.com/MikeGeyer/Lists/Posts/Post.aspx?ID=20
Јас само се стрча во овој проблем, however I also have a case of it working when querying for videos 😐
If I find out more I’ll report back