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

4.0.2版本仍出现一台linux服务器多个用户生成excel文件,/tmp/poifiles目录报权限不足的情况 #4023

Open
byteGg64 opened this issue Oct 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@byteGg64
Copy link

触发场景描述

linux服务器上,多用户生成excel文件

触发Bug的代码

  ClassPathResource templateFile = new ClassPathResource("file/template/RepoBBInsTemplate.xlsx");
  InputStream templateFileInputStream = templateFile.getInputStream();
  response.setContentType("application/x-msdownload");
  response.setCharacterEncoding("UTF-8");
  response.setHeader("Content-Disposition",
      "attachment;fileName=" + URLEncoder.encode(excelFileName, StandardCharsets.UTF_8));
  EasyExcel.write(response.getOutputStream(), ExportRepoBBInsEntity.class)
      .withTemplate(templateFileInputStream).sheet().head(Lists.newArrayList())
      .doWrite(exportRepoBBInsEntities);

提示的异常或者没有达到的效果

375289944-c6a13c38-79fc-4e97-940f-1c6783f5fe70
和issue#813遇到的异常是一样的,issue#813已修复这个问题,是否需要配置额外属性。

@byteGg64 byteGg64 added the bug Something isn't working label Oct 16, 2024
@alibaba alibaba deleted a comment Oct 28, 2024
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

2 participants