Skip to content

Check directory permission in docker-entrypoint.sh with test -w #930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

white-gecko
Copy link
Contributor

Description

I have replaced the individual comparison of the ids with a test -w $VOLUME_DIR resp. ! [ -w $VOLUME_DIR ] check.

Motivation and Context

The comparison of the individual gid and uids of the user and the directory misses out, if the user has permission based on further groups.

Screenshots (if appropriate):

Types of changes

  • Replay fix (fixes a replay specific issue)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added or updated tests to cover my changes.
  • All new and existing tests passed. (I hope so)

@ikreymer ikreymer merged commit 9bbba44 into webrecorder:main Aug 7, 2025
annesiri added a commit to statisticsnorway/ssbno-pywb that referenced this pull request Aug 8, 2025
* Fix client-side replay error page + wabac.js update (webrecorder#945)

* fixes for client-side replay
- always serve top frame resource in client-side-replay mode, fixes webrecorder#936
- deps: bump wabac.js to 2.23.8 for additional fixes

* skip test that relies on ait

* Remove deprecated datetime.utcnow()

Fixes webrecorder#913

* Use tz-aware datetimes for embargo checks (webrecorder#946)

Fixes regression introduced in commit 6ae3de9

* Check directory permission in docker-entrypoint.sh with `test -w` (webrecorder#930)

---------

Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
Co-authored-by: Lisias <lisias.toledo@gmail.com>
Co-authored-by: Tessa Walsh <tessa@bitarchivist.net>
Co-authored-by: Natanael Arndt <arndtn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants