No OCS message when updating a share
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 OCS 的 PUT shares 端点的 share-update 入口开始,检查 API 测试;这些测试目前没有一致地断言响应消息。确认成功更新会返回 OK,然后在相关的 API 测试中为此响应添加覆盖。
由索引模型根据 Issue 内容生成。
描述
Request:
PUT /owncloud-core/ocs/v1.php/apps/files_sharing/api/v1/shares/391 HTTP/1.1
Host: localhost
User-Agent: GuzzleHttp/6.5.4 curl/7.68.0 PHP/7.3.19-1+ubuntu20.04.1+deb.sury.org+1
Authorization: Basic QWxpY2U6MTIzNDU2
OCS-APIREQUEST: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 14
permissions=31
Response:
<?xml version="1.0"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message/>
<totalitems></totalitems>
<itemsperpage></itemsperpage>
</meta>
<data>
<id>391</id>
<share_type>0</share_type>
<uid_owner>Alice</uid_owner>
<displayname_owner>Alice Hansen</displayname_owner>
<permissions>31</permissions>
<stime>1594023692</stime>
<parent/>
<expiration/>
<token/>
<uid_file_owner>Alice</uid_file_owner>
<displayname_file_owner>Alice Hansen</displayname_file_owner>
<additional_info_owner/>
<additional_info_file_owner/>
<path>/Alice-folder</path>
<item_type>folder</item_type>
<mimetype>httpd/unix-directory</mimetype>
<storage_id>home::Alice</storage_id>
<storage>556</storage>
<item_source>2147537010</item_source>
<file_source>2147537010</file_source>
<file_parent>2147536991</file_parent>
<file_target>/Alice-folder</file_target>
<share_with>Brian</share_with>
<share_with_displayname>Brian Murphy</share_with_displayname>
<share_with_additional_info/>
<mail_send>0</mail_send>
<attributes/>
</data>
</ocs>
I would expect it to be
<message>OK</message>
probably that is the case in more places, the API tests don't check the message a lot
found it when looking into https://github.com/owncloud/ocis-reva/issues/332
- 主要语言
- PHP
- 星标
- 8.8k
- 派生
- 2.1k
- 平均合并
- 19 小时 32 分钟
- 30 天内合并 PR
- 56
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
owncloud/core 的其他 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 38/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 25/100
维护者通常 1 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
-
难度 1/5 1 小时以内 新手友好度 85/100
Automattic/static-site-importer#3129 ·
维护者通常 1 天内回复
-
Group 2 - Data Storage | Tripal DBX | Chado Group 5 - Search | ElasticSearch | Views Priority - Medium
难度 2/5 1-3 小时 新手友好度 74/100
-
category::bug code priority::normal
难度 1/5 1-3 小时 新手友好度 85/100
e0ipso/simple_oauth_21#58 ·
维护者通常 1 天内回复
-
nginx update required due to NGINX2Root可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 65/100
mailcow/mailcow-dockerized#7668 · 5 条评论 · 2 个 reaction ·
维护者通常 1 天内回复