ColdFusion Access Manager尝试清除受信任的缓存时出错 [英] ColdFusion Access Manager Error when attempting to clear trusted cache
问题描述
<cfscript>
if (isDefined("url.clearTrustedCache")) {
clearTrustedCache();
}
function clearTrustedCache() {
adminObj = createObject("component","cfide.adminapi.administrator");
adminObj.login("admin");
runtimeObj = createObject("component","cfide.adminapi.runtime");
runtimeObj.clearTrustedCache();
}
</cfscript>
我试图使用上述代码通过URL param清除可信缓存。我收到以下错误消息:
I am trying to use the above code to clear the trusted cache via URL param. I am getting the following error message:
The current user is not authorized to invoke this method
我在网上找到的唯一尝试是 http://helpx.adobe.com/coldfusion/kb/error-current-user-authorized-invoke.html 但它没有'
The only thing I found online to try was http://helpx.adobe.com/coldfusion/kb/error-current-user-authorized-invoke.html but it didn't work (unless I am doing it incorrectly).
有关如何修复此问题的任何想法或想法?
Any thoughts or ideas on how to fix this?
推荐答案
解决方案是在登录时使用密码,因为它被设置为在Coldfusion管理中需要。如果在Coldfusion管理中不需要它(我不推荐,那么可能不需要密码)。
The solution was to use a password with the login because it was set up to be required in the Coldfusion Admin. If it's not required in the Coldfusion admin (which I don't recommend then a password may not be necessary.
示例:
adminObj.login(passwordHere,loginHere);
这篇关于ColdFusion Access Manager尝试清除受信任的缓存时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!