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.

Stop creating a corresponding .meta resource for each new resource

See original GitHub issue

When creating any resource with PUT or POST when using a file configuration, a corresponding metadata resource is created which contains just the size of that resource.

An example of the contents of such a metadata resource:

<http://localhost:3000/test> <http://www.w3.org/2011/http-headers#content-length> 68.

Proposed solution

Do not create this metadata resource for each new created resource. The content can be extracted from the file system anyway, so there is no need to add this to a an additonal resource anyway.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
joachimvhcommented, Apr 26, 2022

Is there an easy way for ContentLengthParser to detect the presence of a QuotaStrategy?

This is going to require some config magic. To do this, this line should be removed: https://github.com/CommunitySolidServer/CommunitySolidServer/blob/6dd77cf8d83fedc7f8c9861c34ea1fad317df3ca/config/ldp/metadata-parser/default.json#L16

And instead that parser should only be added to the metadata parser in the quota config.

0reactions
joachimvhcommented, May 6, 2022

Done in #1282

Read more comments on GitHub >

github_iconTop Results From Across the Web

The lifecycle Meta-Argument - Terraform - HashiCorp Developer
The meta-arguments in a lifecycle block allow you to customize resource behavior.
Read more >
PlanDefinition - FHIR v5.0.0-snapshot3
Name Flags Card. PlanDefinition TU url ΣC 0..1 identifier Σ 0..*
Read more >
The Lifecycle of a Terraform Resource - Spacelift
In this article, we will take a look at the various stages a Terraform resource goes through during its lifetime.
Read more >
Metaparameter reference - Puppet
Metaparameters are attributes that work with any resource type, including custom types and defined types. They change the way Puppet handles resources.
Read more >
Bunch of warnings for .meta inconsistency after package ...
Then delete the 'HDRP.meta' file. This stops the errors for this session. But Unity will create a new meta file when you start...
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