dalelane opened a new pull request, #30159:
URL: https://github.com/apache/flink/pull/30159

   ## What is the purpose of the change
   
   JarIdPathParameter only rejected jar IDs with a parent path. This allowed 
things such as ".." that would be resolved against the upload directory.
   
   ## Brief change log
   
   JarIdPathParameter now rejects empty IDs, "." and ".." (as well as still 
rejecting IDs with a path separator).
   
   ## Verifying this change
   
   JarIdHandlerContract contains tests for all the web submission handlers. In 
terms of coverage, it is redundant to run them against all endpoints, but they 
are very quick to run so on balance I feel that is worth it to act as a 
behavioural regression test in case the handlers diverge in future.
   
   Over HTTP, I couldn't recreate the empty-ID DELETE scenario described in 
FLINK-41694. I left the test written based on the scenario in place as a 
regression test, but the test passed before I started making the fix.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? not applicable 
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [ ] Yes (please specify the tool below)
   


-- 
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]

Reply via email to