Skip to content

4.0.2

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 15:43
Immutable release. Only release title and notes can be modified.
4.0.2
ccb3609

BSD Directory Traversal and PURGE Routing Fixes

Patch release for ngx_cache_purge v4.0.

Bug Fixes

  • Fixed PURGE protocol selection in NGINX if locations. An explicitly configured *_pass now takes precedence over an upstream inherited from the parent location. (#88)
  • Fixed directory traversal handling on BSD systems. Recognize EMLINK on FreeBSD and DragonFly BSD, and EFTYPE on NetBSD when safely skipping directories replaced by symbolic links. (commit)

Regression Coverage

  • Added runtime coverage for upstream selection inside if locations.
  • Extended directory traversal tests for BSD-specific filesystem errors.
  • Preserved failure handling for unrelated filesystem errors.

Compatibility

  • No new configuration directives.
  • No shared-memory layout changes.
  • No migration steps required.

Full Changelog: 4.0.1...4.0.2