O link do SharePoint para o Cognos TM1 Server causa 403

O link do SharePoint para o Cognos TM1 Server causa 403

Temos um problema estranho em que um link direto do SharePoint para uma URL do Cognos TM1 causa um 403; no entanto, se atualizarmos ou colarmos o link diretamente, ele funcionará.

A causa pode estar relacionada à remoção do "http" inicial (veja abaixo com os outros navegadores), no entanto, isso não está claro no link HTML bruto ou nos resultados do Fiddler:

insira a descrição da imagem aqui

Alguma ideia sobre uma causa/solução?

Em um item de menu do SharePoint:

GET http://server:9510/tm1web/ HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://portal/Pages/home.aspx
Accept-Language: en-AU
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: server:9510
Connection: Keep-Alive

Resultado [falhar]:

HTTP/1.1 403 Forbidden
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 23 Feb 2015 01:25:29 GMT

Acertar F5/Atualizar no navegador após o 403:

GET http://server:9510/tm1web/ HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-AU
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: server:9510
Cookie: JSESSIONID=6A01B8265CC22BD13A9DD46575A6485F; DWRSESSIONID=gIilAwYv2K33Yahd$G7keNo4QKk

Resultado [funciona]:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/html;charset=UTF-8
Content-Length: 684
Date: Mon, 23 Feb 2015 01:43:40 GMT

Outros navegadores:

  • O Chrome também recebe um 403 - mas não exibe "http" inicial no URL - isso significa que pressionar F5 não tem efeito:

insira a descrição da imagem aqui

  • Firefox é igual ao Chrome:

insira a descrição da imagem aqui


Nossa solução alternativa é usar um servidor web que não seja do SharePoint com uma página para fazer o redirecionamento (por exemplo, um redirecionamento HTML META).

Nós pensamos queMódulo PermissivoXFrameHeader HTTP Modulepode estar causando isso, mas desativá-lo em nosso servidor de desenvolvimento ainda causa o problema.


Exemplo adicional:

Em uma Redirectpágina do SharePoint:

GET http://portal/Pages/TM1-Redirect.aspx HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://portal/Pages/home.aspx
Accept-Language: en-AU
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: portal
Connection: Keep-Alive
Cookie: ...

Resultado nº 1 - redirecionamento:

HTTP/1.1 302 Found
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Sun, 08 Feb 2015 01:45:45 GMT
Last-Modified: Mon, 23 Feb 2015 01:45:45 GMT
Location: http://server:9510/tm1web/
Server: Microsoft-IIS/8.0
X-SharePointHealthScore: 0
X-AspNet-Version: 4.0.30319
SPRequestGuid: 9664ec9c-9790-10c2-3b44-67b194daa158
request-id: 9664ec9c-9790-10c2-3b44-67b194daa158
SPRequestDuration: 74
SPIisLatency: 0
WWW-Authenticate: Negotiate ...
Persistent-Auth: true
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 15.0.0.4561
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
Date: Mon, 23 Feb 2015 01:45:45 GMT
Content-Length: 146

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="http://server:9510/tm1web/">here</a>.</h2>
</body></html>

Resultado #2 - [falhar- o mesmo que acima]:

HTTP/1.1 403 Forbidden
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 23 Feb 2015 01:45:45 GMT

Responder1

Para contornar esse problema, modifique o arquivo tm1web_config.xml da seguinte forma:

mude isso

<add key="CrossDomainAccessList" value="" />

para

<add key="CrossDomainAccessList" value="*" />

e reinicie o serviço do Servidor de Aplicativos.

informação relacionada