Alfresco Webscript找不到“公司主目录”文件夹 [英] Alfresco webscript can't find Company Home folder

查看:83
本文介绍了Alfresco Webscript找不到“公司主目录”文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Alfresco社区上创建自定义网络脚本。我正在学习本教程: http://docs.alfresco.com/ community / concepts / ws-folderListing-intro.html

I'm trying to create a custom webscript on Alfresco Community. I'm following this tutorial: http://docs.alfresco.com/community/concepts/ws-folderListing-intro.html.

一开始一切都很好。当我导航到

Everything works out fine in the beginning. When I navigate to

localhost:8080/alfresco/service/

并单击刷新网页,我的新网页已注册。

and click on 'Refresh webscripts', my new webscript is registered.

但是现在当我导航到

localhost:8080/alfresco/service/dir/Company%20Home

我收到以下消息:

The Web Script /alfresco/service/dir/Company Home has responded with a status of 404 - Not Found.

404 Description:     Requested resource is not available.

Message:    Folder Company Home not found.
Server: Community v4.2.0 (r63893-b12) schema 6.033
Time:   21-mei-2014 17:04:59

Diagnostics:    Inspect Web Script (org/example/dir.get)

出了什么问题?我完全按照了教程中的所有步骤进行操作。

What is going wrong? I followed all the steps in the tutorial precisely.

推荐答案

检查Alfresco是否在操作系统中使用的语言不同于EN。将翻译所有默认文件夹的名称,具体取决于您操作系统中使用的语言(在我的情况下使用法语),因此没有 Company Home ,但是有 Espace Racine

Check if you are using a different language then EN in your OS because Alfresco will translate all default folders's names depends in what language are used in your OS in my case am using French so there's no Company Home but there's Espace Racine.

关于列表文件夹API,没有理由为此编写网络脚本,因为默认情况下该文件已存在于Alfresco的路径下:

About the listing folders API, there's no reason to do a web script for that because it's already exist by default in Alfresco under the path:

http://localhost:8080/alfresco/service/sample/folder/Company%20Home.

这篇关于Alfresco Webscript找不到“公司主目录”文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆