Skip to content
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

Server leaves spurious .meta files with a content-length triple #1898

Open
timbl opened this issue Apr 24, 2024 · 1 comment
Open

Server leaves spurious .meta files with a content-length triple #1898

timbl opened this issue Apr 24, 2024 · 1 comment
Labels
☀️ enhancement New feature or request

Comments

@timbl
Copy link

timbl commented Apr 24, 2024

Environment

$ community-solid-server --version
7.0.3
$ node --version
v18.19.0

Description

Running with the file backend, I find that .meta files have started to appear on some not all of the data files that the server handles. Not obvious which files get them and why.

For example

$ ls -l Data/.../TEQU4BT4L-U049J62J1LK-9b3*
-rw-r--r--  1  120173 Oct  4  2023 Data/.../TEQU4BT4L-U049J62J1LK-9b35ce73d1f0-512.jpg
-rw-r--r--  1      188 Oct  4  2023 Data/.../TEQU4BT4L-U049J62J1LK-9b35ce73d1f0-512.jpg.meta

Where the content of the .meta file is as below

$ cat Data/.../TEQU4BT4L-U049J62J1LK-9b35ce73d1f0-512.jpg.meta
<https://timbl.com/timbl/Data/Contacts/Person/f472487e-4c2e-498c-a4dc-..-512.jpg> <http://www.w3.org/2011/http-headers#content-length> 120173.
$

There should be no .meta files in my the server data at all.

I don't want them cluttering up the file space

@joachimvh
Copy link
Member

There is indeed no reason to store the content-length in the metadata in most cases so we could remove it.

Note that this will only happen when you are running a server where quota limits on pods are enabled. If quotas are disabled those metadata files will not be generated.

@joachimvh joachimvh added the ☀️ enhancement New feature or request label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☀️ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants