We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.4.17
H2
Fat Jar
blog.shikangsi.cn
在文章页有如下请求:https://blog.shikangsi.cn/api/content/posts/1/comments/tree_view?pages=0&page=0&sort=&size=5&total=0 该请求暴露评论者所有信息 初步查看,在run.halo.app.repository.base.BaseCommentRepository#findAllByPostIdAndStatusAndParentId(java.lang.Integer, run.halo.app.model.enums.CommentStatus, java.lang.Long, org.springframework.data.domain.Pageable) 使用了findAll,返回所有字段。 建议只返回部分信息,或者置空email、ipAddress、authorUrl三个字段
No response
The text was updated successfully, but these errors were encountered:
email、ipAddress 确实需要屏蔽掉,但是 authorUrl 可以不用。
email、ipAddress
authorUrl
/cc @halo-dev/sig-halo
我们将在 1.5 解决此问题。
Sorry, something went wrong.
guqing
Successfully merging a pull request may close this issue.
是什么版本出现了此问题?
1.4.17
使用的什么数据库?
H2
使用的哪种方式部署?
Fat Jar
在线站点地址
blog.shikangsi.cn
发生了什么?
在文章页有如下请求:https://blog.shikangsi.cn/api/content/posts/1/comments/tree_view?pages=0&page=0&sort=&size=5&total=0
![image](https://user-images.githubusercontent.com/19919229/157190784-4dd5c9bf-15d1-4ae9-bb6b-ed4f43595fca.png)
该请求暴露评论者所有信息
初步查看,在run.halo.app.repository.base.BaseCommentRepository#findAllByPostIdAndStatusAndParentId(java.lang.Integer, run.halo.app.model.enums.CommentStatus, java.lang.Long, org.springframework.data.domain.Pageable)
使用了findAll,返回所有字段。
建议只返回部分信息,或者置空email、ipAddress、authorUrl三个字段
相关日志输出
No response
附加信息
No response
The text was updated successfully, but these errors were encountered: