You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on the API I came across OS permissions failures to make folders when videos are being uploaded.
The tests run as "root" but Signbank is not being run by root. Permissions need to be scrutinized on all the writable folders.
Check all the places where paths to videos are used. Confirm that the dynamically computed path is as intended.
Add a setting to be turned on during testing in order to run methods themselves and get print statements on the paths. (The tests need to simulate "Debug" mode to step through what the paths are.)
There is lots of inconsistency in how videos are accessed as well as errors creating the still images because a wrong path is given.
Some of the code that uses paths actually needs "strings" not Python "paths". (Modules 'os', 'shutil', 'zipfile') This could differ on the Apache versus the emulated runserver server Python implementation. (The Apache server has a file server.)
Tests to confirm the correct paths are being used everywhere paths are used.
The paths to videos are particularly inconsistent.
Note: there have been some errors in the tests for a very long time. The tests don't delete the video files and generate a warning that the video file could not be deleted. (If others have run the deploy.sh script they will have noticed this. It's right before the long pause at the end of the tests. If a video file could not be deleted, this causes future errors because other code assumes they have been deleted. Lots of code uses a "pass" if something failed on the file system.)
The text was updated successfully, but these errors were encountered:
susanodd
changed the title
Tests to make sure Signbank has permission to create folders
Tests to make sure Signbank has file system permissions and correct paths
Oct 19, 2024
While working on the API I came across OS permissions failures to make folders when videos are being uploaded.
The tests run as "root" but Signbank is not being run by root. Permissions need to be scrutinized on all the writable folders.
Check all the places where paths to videos are used. Confirm that the dynamically computed path is as intended.
Add a setting to be turned on during testing in order to run methods themselves and get print statements on the paths. (The tests need to simulate "Debug" mode to step through what the paths are.)
There is lots of inconsistency in how videos are accessed as well as errors creating the still images because a wrong path is given.
Some of the code that uses paths actually needs "strings" not Python "paths". (Modules 'os', 'shutil', 'zipfile') This could differ on the Apache versus the emulated
runserver
server Python implementation. (The Apache server has a file server.)Tests to confirm the correct paths are being used everywhere paths are used.
The paths to videos are particularly inconsistent.
Note: there have been some errors in the tests for a very long time. The tests don't delete the video files and generate a warning that the video file could not be deleted. (If others have run the deploy.sh script they will have noticed this. It's right before the long pause at the end of the tests. If a video file could not be deleted, this causes future errors because other code assumes they have been deleted. Lots of code uses a "pass" if something failed on the file system.)
The text was updated successfully, but these errors were encountered: