Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

上传文件接口不应该暴露filePath

Đang mở
#341 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@XinLi-cyber đang làm issue này rồi.

Từ ngày 22/7/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

in: frontend status: waiting-for-internal-feedback type: bug
问题摘要 / Issue Summary

上传文件接口不应该暴露filePath

版本信息 / Version Information

v1.2.0

浏览器 / Browser

No response

操作系统 / Operating System

None

发生了什么?/ What happened?

上传文件接口暴露了filePath,有可能导致被攻击

期望的行为 / Expected Behavior

上传文件后只返回fileName

重现步骤 / Steps to Reproduce

上传头像,发现调用了http://localhost:8001/api/jober/v1/api/31f20efc7e0848deab6a6bc10fc3021e/file?aipp_id=79a98da64c5d41fe9b78e34c3d799a40,返参中带有filePath,其中显示了实际存储的目录地址信息。

相关日志 / Relevant Logs

额外信息 / Additional Context

需要考虑已有调用方:前端、后端的逻辑,避免此处修改导致链路中断

确认事项 / Confirmations
  • 我已经搜索了现有的issues,确认这不是重复问题
    I have searched existing issues and confirmed this is not a duplicate

  • 我已经阅读了项目文档和 FAQ
    I have read the project documentation and FAQ

  • 我提供的信息准确完整
    The information I provided is accurate and complete

  • 我愿意协助测试问题修复 (可选)
    I'm willing to help test the bug fix (optional)

Ngôn ngữ chính
Java
Star
1.5k
Fork
233
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ModelEngine-Group/app-platform

Tất cả issue của ModelEngine-Group/app-platform

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.