为什么我的 jasperserver 不允许我将图像(或任何“文件”)上传到存储库?

发布于 2024-12-13 22:25:32 字数 199 浏览 1 评论 0原文

我刚刚安装了全新安装的 tomcat 和 jasper 服务器。由于某种原因,当我右键单击并选择“添加资源”将新图像添加到存储库时,它没有给我“文件”选项,所以我不能。我在另外两台服务器上运行 jasper 服务器,并且“添加资源”-> “文件”-> “图像”按其应有的方式出现。有其他人遇到过这个问题或者知道新设置有什么问题吗?我似乎找不到任何地方可以启用“文件”资源。

I just setup a fresh install of tomcat and jasper server. For some reason when I right click and select "Add Resource" to add a new image to the repository it doesn't give me "File" as and option so I can not. I have jasper server running on two other servers and the "Add Resource" -> "File" -> "Image" appears as it should. Has anyone else had this problem or know what's wrong with the new setup? I can't seem to find anywhere to enable the "File" resource.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

围归者 2024-12-20 22:25:32

是的...这是一个令人尴尬的错误,是吗?查看文件 .../WEB-INF/actionModel-search.xml。您会在第 21 行附近找到此代码片段:

<selectAction labelKey="RM_NEW_RESOURCE_FILE" className="flyout"
                        clientTest="canResourceBeCreated" clientTestArgs="FileResource" >

That code should not be returned by this:

<condition test="isProVersion">...</condition>

但它包围。哦。既然您知道要查找什么,那么您可能可以弄清楚如何手动修改它。或者您可以从工作机器上获取该文件的旧副本,看看它应该是什么样子。或者,您可以等待下一个版本恢复正常运行。祝你好运。

Yeah... that's an embarrassing bug, eh? Take a look at the file .../WEB-INF/actionModel-search.xml. You'll find this snippet around line 21:

<selectAction labelKey="RM_NEW_RESOURCE_FILE" className="flyout"
                        clientTest="canResourceBeCreated" clientTestArgs="FileResource" >

That code should not be surrounded by this:

<condition test="isProVersion">...</condition>

But it is surrounded by that. Doh. You can probably figure out how to modify it manually now that you know what to look for. Or you could grab an old copy of that file from your working machines to see how it should be. Or you can wait for the next release when it's back to working as it should. Good luck.

忘羡 2024-12-20 22:25:32

您必须按照 mdahlman 的建议删除包含 selectAction 标签的条件标签,而不是 selectAction 内的标签:

**<!-- 
    <condition test="isProVersion">
        <condition test="isSupportedDevice">
            <option labelKey="RM_NEW_DOMAIN" action="invokeCreate" actionArgs="SemanticLayerDataSource" clientTest="canResourceBeCreated" clientTestArgs="SemanticLayerDataSource" className="up"/>
        </condition>
-->**

        <selectAction labelKey="RM_NEW_RESOURCE_FILE" className="flyout" clientTest="canResourceBeCreated" clientTestArgs="FileResource" >

         ...

        </selectAction>
**<!-- 
    </condition>
 -->**

You have to remove the condition tags where the selectAction tags are enclosed in, as suggested by mdahlman, not the tags inside selectAction:

**<!-- 
    <condition test="isProVersion">
        <condition test="isSupportedDevice">
            <option labelKey="RM_NEW_DOMAIN" action="invokeCreate" actionArgs="SemanticLayerDataSource" clientTest="canResourceBeCreated" clientTestArgs="SemanticLayerDataSource" className="up"/>
        </condition>
-->**

        <selectAction labelKey="RM_NEW_RESOURCE_FILE" className="flyout" clientTest="canResourceBeCreated" clientTestArgs="FileResource" >

         ...

        </selectAction>
**<!-- 
    </condition>
 -->**
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文