Skip to content

在链接管理中上传webp格式的logo提交后提示登录已过期需要重新登录 #8133

@baoxinwen

Description

@baoxinwen

Prerequisites

  • I have searched for related issues in the issues list.
  • This is an issue with the Halo project itself. If it is not an issue with the project itself(For example: Installation and deployment issues.), it is recommended to submit it in the Discussions.
  • I have tried disabling all plugins to rule out plugins as the cause of the problem.
  • If it is an issue with plugins and themes, please submit it in the respective plugin and theme repositories.

System information

What is the project operation method?

Docker Compose

What happened?

在链接管理中,通过输入webp格式的链接上传logo,然后点击提交,会弹窗提示登录已过期,当前登录已过期,点击确定跳转到登录页面,请确保当前内容已保存,你可以点击取消之后手动复制未保存的内容。输入png格式的链接上传logo就正常,目前只发现率webp格式的有问题

Reproduce Steps

No response

Relevant log output

{
    "message": "Request failed with status code 401",
    "name": "AxiosError",
    "stack": "AxiosError: Request failed with status code 401\n    at Xe (https://xsfly.com/console/assets/axios/axios.9231872f.js:2:32059)\n    at XMLHttpRequest.y (https://xsfly.com/console/assets/axios/axios.9231872f.js:2:36898)\n    at e.<anonymous> (https://xsfly.com/console/assets/axios/axios.9231872f.js:2:49272)\n    at p (https://xsfly.com/console/assets/axios/axios.9231872f.js:2:3448)\n    at Generator.<anonymous> (https://xsfly.com/console/assets/axios/axios.9231872f.js:2:4779)\n    at Generator.throw (https://xsfly.com/console/assets/axios/axios.9231872f.js:2:3858)\n    at p (https://xsfly.com/console/assets/axios/axios.9231872f.js:2:9996)\n    at s (https://xsfly.com/console/assets/axios/axios.9231872f.js:2:10235)",
    "config": {
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        },
        "adapter": [
            "xhr",
            "http",
            "fetch"
        ],
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
            "Accept": "application/json, text/plain, */*",
            "Content-Type": "application/json",
            "X-Requested-With": "XMLHttpRequest"
        },
        "baseURL": "",
        "withCredentials": true,
        "paramsSerializer": {},
        "method": "put",
        "data": "{\"spec\":{\"url\":\"https://linjhs.top\",\"displayName\":\"LinJHS个人小站\",\"description\":\"分享网络安全技术、资讯、生活\",\"groupName\":\"link-group-wdktkdjp\",\"logo\":\"https://linjhs.top/upload/logo.webp\"},\"apiVersion\":\"core.halo.run/v1alpha1\",\"kind\":\"Link\",\"metadata\":{\"generateName\":\"link-\",\"name\":\"link-urmqthho\",\"annotations\":{\"rss_url\":\"https://linjhs.top/rss.xml\",\"email\":\"\",\"linkPageUrl\":\"https://linjhs.top/links\",\"rssUrl\":\"https://linjhs.top/rss.xml\",\"mi-siteshot\":\"\",\"mi-label\":\"\",\"recommendationIndex\":\"2\"},\"version\":4,\"creationTimestamp\":\"2025-12-28T13:11:42.625856536Z\"}}",
        "url": "/apis/core.halo.run/v1alpha1/links/link-urmqthho",
        "allowAbsoluteUrls": true
    },
    "code": "ERR_BAD_REQUEST",
    "status": 401
}

Additional information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/needs-informationIndicates an issue needs more information in order to work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions