mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #377] Bugfix: OUTPUT_PERMISSIONS environment variable appears to not be fully working. #3281
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#3281
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @1n5aN1aC on GitHub (Jul 22, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/377
Describe the bug
I am Testing v0.4.3, to resolve https://github.com/pirate/ArchiveBox/issues/376 and noticed that defining OUTPUT_PERMISSIONS does not seem to be applying to all output files.
I do not know if this is a regression in v0.4.3, or if it exists before, or if I am doing something wrong.
Steps to reproduce
I built the container using the following commands:
Screenshots or log output
However, the main files that are generated do not have 755 permissions set.

The files inside the sub-dir example.com do appear to have the permission set.
@1n5aN1aC commented on GitHub (Jul 22, 2020):
This does appear to also still be the case in the django branch as well.
Interestingly, I noticed that upon running
initon a new directory, it appears to create the files with the proper (or at least more) permissions before later changing them to the more restrictive 0600 permissions it leaves them with.@cdvv7788 commented on GitHub (Jul 24, 2020):
@1n5aN1aC please test in the django branch again.
@1n5aN1aC commented on GitHub (Jul 24, 2020):
Progress!
It appears all of the files are now applied the chosen permissions except for output.pdf and screenshot.jpg
@pirate commented on GitHub (Jul 24, 2020):
Ok I think that's fixed as well in #391 now. If you give it a go now they should all have the same permissions.
@1n5aN1aC commented on GitHub (Jul 24, 2020):
It does indeed appear to be fixed, thank you very much!
It looks like it even corrected the permissions on the core index files.
As a bit of an aside, would you be willing to add the "django" branch to docker hub's build system, to make continued testing easier? No big deal if not, I can keep doing it myself if you'd rather not add it.
@cdvv7788 commented on GitHub (Jul 24, 2020):
There are some tests related to docker in github action, and the django branch will be merged to master soon too.