arunmanni-ai commented on PR #1780: URL: https://github.com/apache/struts/pull/1780#issuecomment-4951206848
Fixed a regression introduced by the Stack → ArrayDeque swap: the rebuild loop iterated the deque head-to-tail (most recently pushed first), which is the reverse of Stack's insertion-order iteration. This caused rebuilt paths like `car/view.jsp` to come out as `view.jsp/car`, which is what the CI failures were catching. Fixed by using `descendingIterator()` to restore the original oldest-first ordering when rebuilding the flat path string. The traversal-prevention logic (tokenizing, `..` → pop, the `isEmpty()` guard clamping excess `..` at root) is unchanged. Verified locally — all passed. -- 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]
