문제

하려고 해요 문서를 게시 SharePoint 사이트에서 통해 Microsoft 의 의견을 더욱 쉽게 확인할 수 있게 되었 커넥터에 연결합니다.

소비 응용 프로그램은 여러 포함하여,LifeRay portal(실행 중인 리눅스에서),및 다른 SharePoint2010 팜(다른 도메인,트러스트)를 CMIS 소비자 웹 파트를 기반으로 합니다.

궁극적인 목표는 것을 반영할 수 있는 사용자의 사용 권한 소모 측.

첫 번째 목표 이상을 보여주는 익명으로 문서에서 소비자들입니다.

여기에는 정보의 내 프로듀서 사이트:

  • 클레임 인증을 사용합니다.
  • 세 url 을 연결할 수 있한 웹 응용 프로그램:
  • 익명 사용자가 볼 수 있는 전 사이트 콘텐츠

첫 번째 실패 테스트를 했고,추가 CMIS 소비자가 웹에서 다른 농장(말했듯이,사이에 신뢰가 없 농장이나 도메인 간).

When I 드롭 웹,나는 도구를 열창하고 지정 http://a.site.corp/sites/testcmis/_vti_bin/CMISSoapwsdl.aspx 로 WSDL 주소입니다.나"를 클릭을 얻을 저장소의 목록은"즉시"를 얻을 WSDL 연결할 수 없"오류가 있습니다.

면의 열기는 페이지는 Internet Explorer 에서 또는 크롬,나는 볼 수 있습니다 wsdl 과 인증 필요 없습니다.

경 Fiddler http,메시지 내가 볼 수있는 두 가지 요청은:

  1. 첫 번째는 읽 wsdl 파일이 오류 없(Http200:OK).에서 볼 수 있는 http 메시지는 올바른 WSDL 콘텐츠
  2. 두 번째는 요청이 해고,타겟팅 http://a.site.corp/sites/testcmis/_vti_bin/cmis/soap/RepositoryService.svc/anonymous.이 시간을,내가 내부 오류가(HTTP500.

을 얻을 수 있는지에 대한 응답으로 이 웹사 서비스는 잘못:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <s:Fault>
            <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode>
            <faultstring xml:lang="en-GB">SecurityContextProperty is missing from the request Message, this may indicate security is configured incorrectly.</faultstring>
            <detail>
                <ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                    <HelpLink i:nil="true"/>
                    <InnerException i:nil="true"/>
                    <Message>SecurityContextProperty is missing from the request Message, this may indicate security is configured incorrectly.</Message>
                    <StackTrace>   at System.ServiceModel.Dispatcher.SecurityImpersonationBehavior.StartImpersonation2(MessageRpc&amp; rpc, ServiceSecurityContext securityContext, Boolean isSecurityContextImpersonationOn)&#xD;
   at System.ServiceModel.Dispatcher.SecurityImpersonationBehavior.StartImpersonation(MessageRpc&amp; rpc, IDisposable&amp; impersonationContext, IPrincipal&amp; originalPrincipal, Boolean&amp; isThreadPrincipalSet)&#xD;
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&amp; rpc)&#xD;
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace>
                    <Type>System.InvalidOperationException</Type>
                </ExceptionDetail>
            </detail>
        </s:Fault>
    </s:Body>
</s:Envelope>

faultstring 은 나를 괴롭히는.대상 사이트에 익명 허용,왜 통신 설정 보안 Context?

두 번째 시험이었다 더욱 성공적이었을 사용하여 LifeRay SharePoint CMIS 소비자 커넥터

에 liferay portal(지 않는 생산을 서버입니다.이 중 하나에서 실행되었 dev 상자 실행 W2K8R2)을 추가 문서 저장소의 종류 SharePoint CMIS.

여전히 작동하지 않습니다.아직도 피들러스(어떤 멋진 도구는 그렇지?), 저는 관찰할 수 있는 다른 행동을 하도록 합니다.두 가지 요청은 해고무(를 사용하여 프로토콜 이 시간).나는 타겟팅이 시간 adm 의 url 접두사:

  1. 첫 번째 요청은 가져 오는 저장소 정보를 사용하여 url: http://adm.site.corp/sites/testcmis/_vti_bin/cmis/rest/16ff1075-1069-4066-9048-3f9a8b002fd9?getRepositoryInfo (guid 의 ID 가 공동 문서 라이브러리).오류,Http 상태 200
  2. 두 번째 요청한 경우 수신 403 오류가 있습니다.피들러가 보여주는 날 예상치 못한 http 헤더를 응답:

X-MSDAVEXT_Error:917656;액세스 거부되었습니다.기 전에 파일을 열에 위치해야 합니다 웹 사이트를 찾고 선택하는 옵션이 자동으로 로그인.

쿼리 전송을 통해 나머지는 api 는 이 하나:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<query xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:ns3="http://docs.oasis-open.org/ns/cmis/restatom/200908/">
       <statement>SELECT cmis:objectId FROM cmis:folder WHERE IN_FOLDER('-1')</statement>
       <searchAllVersions>false</searchAllVersions>
       <includeAllowableActions>true</includeAllowableActions>
       <includeRelationships>none</includeRelationships>
       <renditionFilter>cmis:none</renditionFilter>
       <maxItems>1000</maxItems>
       <skipCount>0</skipCount>
</query>

고,ULS 로그에,나는 이 시간:

SharePoint Foundation      Logging Correlation Data   xmnv   Medium Name=Request (POST:http://adm.site.corp.com:80/sites/testcmis/_vti_bin/cmis/rest/8ae634c6-cace-48cd-a9c6-10a311fd1968?Query) 30db2510-0247-4fc5-8454-79fdd83c856d
SharePoint Foundation      Logging Correlation Data   xmnv   Medium Site=/sites/testcmis  30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      Current request url is  http://adm.site.corp.com/sites/testcmis/_vti_bin/cmis/rest/8ae634c6-cace-48cd-a9c6-10a311fd1968?Query  30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      Selected service: Microsoft.SharePoint.CMIS.Binding.CmisQueryService    30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      Start calling into GetCurrentWeb. 30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      statement : SELECT cmis:objectId FROM cmis:folder WHERE IN_FOLDER('-1') 30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      searchAllVersions : false  30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      includeRelationships : none       30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      renditionFilter : cmis:none       30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      includeAllowableActions : true    30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      maxItems : 1000     30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      skipCount : 0 30db2510-0247-4fc5-8454-79fdd83c856d
Unknown      CMIS Repository Interfaces 0000   Verbose      Source id length is larger or equal than destination length id. Returned false.  30db2510-0247-4fc5-8454-79fdd83c856d
SharePoint Foundation      Monitoring   b4ly   High   Leaving Monitored Scope (EnsureListItemsData). Execution Time=4.58745455078788   30db2510-0247-4fc5-8454-79fdd83c856d
SharePoint Foundation      General      8e2s   Medium Unknown SPRequest error occurred. More information: 0x80070005   30db2510-0247-4fc5-8454-79fdd83c856d
SharePoint Foundation      Monitoring   b4ly   Medium Leaving Monitored Scope (Request (POST:http://adm.site.corp.com:80/sites/testcmis/_vti_bin/cmis/rest/8ae634c6-cace-48cd-a9c6-10a311fd1968?Query)). Execution Time=34.7641948906914 30db2510-0247-4fc5-8454-79fdd83c856d

한 경우에는 내가 열리는 페이지 http://adm.site.corp.com/sites/testcmis/_vti_bin/cmis/rest/8ae634c6-cace-48cd-a9c6-10a311fd1968?getRepositoryInfo 브라우저에서,그것은(아직 인증을 사용하지 않).

마지막 테스트았던 이전에 동일한지만,사용하는 익명으로 웹 앱 url

은과 같은 단계를 전에,LifeRay,도를 가져오 정보 저장소에서 url: http://a.site.corp.com/sites/testcmis/_vti_bin/cmis/rest/8ae634c6-cace-48cd-a9c6-10a311fd1968?getRepositoryInfo (또,이 페이지에 접근할 수 있으로 브라우저).

  1. 첫 번째 쿼리가 실행하기 http://a.site.corp.com/sites/testcmis/_vti_bin/cmis/rest/8ae634c6-cace-48cd-a9c6-10a311fd1968?getRepositoryInfo.이 성공(http200).
  2. 두 번째는 쿼리를 http://a.site.corp.com/sites/testcmis/_vti_bin/cmis/rest/8ae634c6-cace-48cd-a9c6-10a311fd1968?getRepositoryInfo&repositoryId=8ae634c6-cace-48cd-a9c6-10a311fd1968.이 성공은 너무(http200).
  3. 고 마지막 쿼리 http://a.site.corp.com/sites/testcmis/_vti_bin/cmis/rest/8ae634c6-cace-48cd-a9c6-10a311fd1968?Query.

최신 쿼리를 던져 403Http 러(금).의 몸이 오류가 쿼리에는 이 하나의(동전):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<query xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:ns3="http://docs.oasis-open.org/ns/cmis/restatom/200908/">
    <statement>SELECT cmis:objectId FROM cmis:folder WHERE IN_FOLDER('-1')</statement>
    <searchAllVersions>false</searchAllVersions>
    <includeAllowableActions>true</includeAllowableActions>
    <includeRelationships>none</includeRelationships>
    <renditionFilter>cmis:none</renditionFilter>
    <maxItems>1000</maxItems>
    <skipCount>0</skipCount>
</query>

을 체결하는 사람이 적을 만들 수 있는 이 작업,그리고 어떻게?

도움이 되었습니까?

해결책

우리는 CMIS 커넥터를 사용하여 막 다른 종단을 사용한다고 결론지었습니다.

여러 가지 이유 :

  1. 커넥터는 ko ko (리소스 파일을 수동으로 작성하여 해결 방법)입니다.
  2. Java의 앱을 CMIS에 대해 인증하도록하는 악몽입니다.

  3. 이 커넥터와 관련된 자원이 거의 없으며, 우리가 거의 사용되지 않는다고 생각합니다.

  4. 실패하면 지원을받는 방법?.실제로 위험이 적고 SharePoint에서 사용자 정의 웹 서비스와 Java Application Side의 사용자 정의 커넥터를 모두 빌드하는 것이 더 낮습니다.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top