question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose all required fields in container listings for the filesystem backend

See original GitHub issue

Container listings detail all resources within a container, and add some metadata for each.

With the acceptance of https://github.com/solid/specification/pull/352, we have determined that 4 pieces of metadata need to be present per item as per the 0.9 specification

  • rdf:type with http://www.w3.org/ns/iana/media-types/{+iana-media-type}#Resource
  • stat:size
  • dcterms:modified
  • stat:mtime

This functionality is currently implemented in an external module https://github.com/RubenVerborgh/solid-metadata-extender, but given that it is now part of the 0.9 spec, we need to move this to the main codebase.

Additionally, I would suggest that we write the corresponding tests for https://github.com/solid/specification-tests

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
joachimvhcommented, Mar 9, 2022

ResponseMetadata is specifically used for metadata that was generated as part of a response, and should not be stored in a resource. The ones above are generated on a higher level and should be stored. It’s just that the file data accessor stores them by how the file system works, but the other data accessors store those as actual metadata.

Potentially that we need to rethink some things there after the metadata PR is finished.

0reactions
joachimvhcommented, Mar 28, 2022

Added in #1237. Will be part of v4.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expose Pod Information to Containers Through Files
This page shows how a Pod can use a downwardAPI volume, to expose information about itself to containers running in the Pod.
Read more >
Bind mounts - Docker Documentation
In the case of bind mounts, the first field is the path to the file or directory on the host machine. The second...
Read more >
Container permission denied: How to diagnose this error
Learn what is causing a container permissions error and how to work around the issue without resorting to the --privileged flag.
Read more >
The DockerRun backend - ContainerSSH: Launch containers ...
ContainerSSH is a standalone, customizable SSH server that launches containers in Kubernetes, Docker, Podman, and can proxy to external SSH servers.
Read more >
Use Read-Only filesystem for containers where possible
The container should only write on mounted volumes that can persist, even if the container exits. Using an immutable root filesystem and a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found