Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持中文文件夹? #28

Closed
yinggoga opened this issue Jan 18, 2024 · 3 comments
Closed

不支持中文文件夹? #28

yinggoga opened this issue Jan 18, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@yinggoga
Copy link

如图所示,中文文件夹会报错,改成非中文可以正常预览
image
image

@zhendi zhendi self-assigned this Jan 18, 2024
@zhendi zhendi added the bug Something isn't working label Jan 18, 2024
@Rader
Copy link
Collaborator

Rader commented Jan 18, 2024

csghub-server服务端接口支持中文文件夹路径,前端页面请求的时候需要对path的参数内容进行url编码 @hiveer @zhendi

http://localhost:8080/api/v1/datasets/taylor/dataset/tree?path=%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%A4%B9
http://localhost:8080/api/v1/datasets/taylor/dataset/tree?path=中文文件夹

会返回正确的内容

{
    "msg": "OK",
    "data": [
        {
            "name": "wechat_group.jpg",
            "type": "file",
            "lfs": false,
            "size": 119015,
            "commit": {
                "id": "526df2f000a994149d09dc3bfa9d94fafde6b697",
                "committer_name": "",
                "committer_email": "",
                "committer_date": "2024-01-18 02:39:29 +0000 UTC",
                "created_at": "",
                "message": "Upload files to \"中文文件夹\"\n",
                "author_name": "",
                "author_email": "",
                "authored_date": ""
            },
            "path": "中文文件夹/wechat_group.jpg",
            "mode": "100644",
            "sha": "526df2f000a994149d09dc3bfa9d94fafde6b697",
            "url": "http://localhost:3001/datasets_taylor/dataset/raw/branch/main/%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%A4%B9%2Fwechat_group.jpg",
            "download_url": "http://localhost:3001/datasets_taylor/dataset/raw/branch/main/%E4%B8%AD%E6%96%87%E6%96%87%E4%BB%B6%E5%A4%B9%2Fwechat_group.jpg",
            "content": "",
            "lfs_relative_path": ""
        }
    ]
}

@zhendi
Copy link
Collaborator

zhendi commented Jan 18, 2024

修复已合并到 main 分支,可以拉取最新代码更新修复此问题。如果使用的是 all-in-one 镜像,更新会有滞后,请等待镜像更新后再试,或者去 SaaS 版体验:https://portal.opencsg.com/

@zhendi zhendi closed this as completed Jan 18, 2024
@wayneliu0019
Copy link
Collaborator

镜像已更新,最新portal镜像修复改问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants