本文介绍了Opencms webdav 不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 OpenCms 7.5.3 全新安装:

With OpenCms 7.5.3 fresh install:

  1. 我创建了一个 index.htm 页面,然后通过 webdav 将其导出到磁盘.它
    创建 index.html.xml 和 __properties/index.html.xml.properties.没关系.

  1. I create an index.htm page, then export it via webdav to disk. It
    creates index.html.xml and __properties/index.html.xml.properties.Thats ok.

从 OpenCms 中删除 index.html 并发布.

Delete index.html from OpenCms and publish.

尝试通过 webdav 和...导入以前导出的文件

Try to import previously exported files via webdav and...

导入 __properties/index.html.xml 时出现错误 409 冲突

Error 409 conflict when importing __properties/index.html.xml

我尝试了 3 个不同的 webdav 客户端,包括用于 webdav 的 Eclipse 插件.也尝试过 OpenCms 7.5.4 和 8.5.0

I tried with 3 different webdav clients, including the Eclipse plugin for webdav.Also tried with OpenCms 7.5.4 and 8.5.0

有什么想法吗?谢谢.

推荐答案

Alkacon(OpenCms 开发人员)似乎是一个已知问题:

It seems to be a known problem by Alkacon (OpenCms developer):

这是一个可能的原因:https://github.com/alkacon/opencms-core/issues/73(pbeltran"是我在那里.)

Here is a possible cause:https://github.com/alkacon/opencms-core/issues/73("pbeltran" is me there.)

如果有帮助,我们在 OpenCms 8.5 上做了以下操作以避免错误,但牺牲了属性文件:(

If it helps we did the following on OpenCms 8.5 in order to avoid the error, but sacrificing properties files :(

只需编辑 WEB-INF/config/opencms-importexport.xml 并替换为:

<repository name="standard" class="org.opencms.repository.CmsRepository">
            <params>
                <param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp</param>
                <param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent</param>
                <param name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlPage</param>
                <param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</param>
                <!--param name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</param-->
            </params>
            <filter type="include">
                <regex>/</regex>
                <!--regex>/__properties/.*</regex-->
                <regex>/sites/.*</regex>
                <regex>/system/</regex>
                <!--regex>/system/__properties/.*</regex-->
                <regex>/system/galleries/.*</regex>
                <regex>/system/modules/.*</regex>
                <!--regex>/system/workplace/.*</regex-->
            </filter>
        </repository>

重启服务器后.

我们定期从 OpenCms 导出模块以保留整个包(文件和属性),以便将解决方案保持在受控版本 (SVN) 之下.您可以创建一个带有指向站点/默认资源的模块来执行此操作.但在对该模块进行任何导入/导出之前选择根站点至关重要(如果不这样做,您可能会破坏 ocms 安装).

We do regular exports from OpenCms of the modules to keep the whole package (files and properties) in order to keep the solution under control version (SVN). You can create a module with a resource pointing to sites/default to do that. But it's critical to select root site before doing any import/export of that module (if you dont you can break your ocms installation).

这篇关于Opencms webdav 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 11:19