使用Compiere ERP集成Pentaho(Linux中的v5.1.0)(Windows中的v.3.81)
尝试在URL中传递用户ID和密码。 requestParameterProcessingFilter (api& Plugin)在文件系统/ applicationContext-spring-security.xml中更新
方法1:
TESTSERVER:8080 / Pentaho的/ API /回购/%家%管理员%31.prpt /观众的用户ID =管理员&安培;密码=密码
始终在所有浏览器中使用HTTP登录框提示用户ID和密码参数
方法2:
管理员:密码@ TESTSERVER:8080 / Pentaho的/ API /回购/%家%管理员%31.prpt /观众
在Chrome中正常工作,首次启动时提示登录框并询问确认框(从其他PC访问),Link dosnt在Internet Explorer中工作
任何人都可以帮我解决这个问题。
答案 0 :(得分:0)
版本4.8和5.0(以及5.1)之间存在一些安全性更改:
根据这个bug-report,你像下一步那样改变applicationContext-spring-security.xml
:
/api/**=securityContextHolderAwareRequestFilterForWS,httpSessionPentahoSessionContextIntegrationFilter,httpSessionContextIntegrationFilter,requestParameterProcessingFilter,basicProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilterForWS,filterInvocationInterceptorForWS
/plugin/**=securityContextHolderAwareRequestFilterForWS,httpSessionPentahoSessionContextIntegrationFilter,httpSessionContextIntegrationFilter,requestParameterProcessingFilter,basicProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilterForWS,filterInvocationInterceptorForWS
重要提示:重启BA服务器!
Internet Explorer不喜欢类似ftp的连接参数。 Here我找到了如何绕过它,它对我有用,但我失去了20分钟来正确更改网址。
:为%3A
?为%3F
**为**%5C
%为%25
#为%23
/ 为%2F
答案 1 :(得分:0)
您必须修改:/pentaho-solutions/system/applicationContext-spring-security.xml
<bean id="filterChainProxy" class="org.springframework.security.util.FilterChainProxy">
<property name="filterInvocationDefinitionSource">
<value>
<![CDATA[CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/webservices/**=securityContextHolderAwareRequestFilterForWS,httpSessionPentahoSessionContextIntegrationFilter,httpSessionContextIntegrationFilter,basicProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilterForWS,filterInvocationInterceptorForWS
/api/repos/**/parameter=securityContextHolderAwareRequestFilterForWS,httpSessionPentahoSessionContextIntegrationFilter,httpSessionContextIntegrationFilter,basicProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilterForWS,filterInvocationInterceptorForWS
/api/**=securityContextHolderAwareRequestFilterForWS,httpSessionPentahoSessionContextIntegrationFilter,httpSessionContextIntegrationFilter,basicProcessingFilter,requestParameterProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilterForWS,filterInvocationInterceptorForWS
/plugin/**=securityContextHolderAwareRequestFilterForWS,httpSessionPentahoSessionContextIntegrationFilter,httpSessionContextIntegrationFilter,basicProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilterForWS,filterInvocationInterceptorForWS
/**=securityContextHolderAwareRequestFilter,httpSessionPentahoSessionContextIntegrationFilter,httpSessionContextIntegrationFilter,httpSessionReuseDetectionFilter,logoutFilter,authenticationProcessingFilter,basicProcessingFilter,requestParameterProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor]]>
</value>
</property>
</bean>