You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Wang1rrr (via GitHub)" <gi...@apache.org> on 2026/10/19 04:01:34 UTC

[I] [Bug] Legal packaging changes readable JAR permissions to owner-only [rocketmq-dashboard]

Wang1rrr opened a new issue, #7006:
URL: https://github.com/apache/rocketmq-dashboard/issues/7006

   ### Description
   
   The JAR legal-material packaging step replaces the original artifact with a `NamedTemporaryFile`. On POSIX, that temporary file has mode `0600`. The replacement keeps that mode, so packaging changes an ordinary readable `0644` JAR into an owner-only file.
   
   This prevents a separate service account from reading an artifact built by another account. A deliberately group-readable `0640` artifact also loses its group read bit.
   
   ### Reproduction
   
   1. Create a valid fixture Spring Boot JAR and set its mode to `0644` (or `0640` / `0755`).
   2. Run `legal.package_jar`.
   3. Inspect `stat.S_IMODE(jar.stat().st_mode)`: it is `0600` for all three inputs.
   
   ### Expected behavior
   
   Preserve the input artifact's permission bits when replacing it with the verified archive. Existing gate failures should still leave the original JAR in place.
   
   The reproduction uses a real Linux temporary filesystem; Windows bind-mount permission emulation is excluded.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Legal packaging changes readable JAR permissions to owner-only [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on issue #7006:
URL: https://github.com/apache/rocketmq-dashboard/issues/7006#issuecomment-6433510885

   Resolved by #6991 (merged into `rocketmq-studio` as `8aebce7fc`). The fix was originally submitted in #7007 and consolidated into that commit.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Legal packaging changes readable JAR permissions to owner-only [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #7006: [Bug] Legal packaging changes readable JAR permissions to owner-only
URL: https://github.com/apache/rocketmq-dashboard/issues/7006


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org