mingzeh opened a new issue, #4178:
URL: https://github.com/apache/hertzbeat/issues/4178

   ### Is there an existing issue for this?
   
   - [x] I have searched the existing issues
   
   ### Current Behavior
   
   Uploading a plugin jar through the **Plugin** page always fails with:
   
   ```
   File is outside the allowed directory: 
/opt/hertzbeat/lib/plugin-lib/xxxxxxxx_hertzbeat-plugin-2.0-SNAPSHOT-jar-with-lib.jar
   ```
   
   <img width="1911" height="854" alt="Image" 
src="https://github.com/user-attachments/assets/31a4f813-f342-4560-b701-0273b4fd8e7f";
 />
   
   The uploaded jar is first written to disk successfully, but the subsequent 
path-safety check rejects it and the upload is rolled back (file deleted). This 
happens for **every** plugin, regardless of the plugin content.
   
   ### Expected Behavior
   
   _No response_
   
   ### Steps To Reproduce
   
   _No response_
   
   ### Environment
   
   ```markdown
   HertzBeat version(s): v1.8.0
   ```
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   _No response_


-- 
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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to