The Codeberg storage adapter can read files from the repo once the path is clearly defined, but fails to save to those files, throwing: Error: Forgejo API request failed: 500 Internal Server Error
I think this issue might be related to the other and perhaps even stranger problem that happens at the same time:
- If I try to save a completely new path that doesn't yet exist in my repo the file does get created, but always under a completely unrelated
content directory, with the intended path kept in the filename with slashes escaped with %2F!
- And yet, the adapter can read existing files on the correct path only if I set the path to src folder correctly to
src, but still tries to save to content/src%2F...
- But when it tries to save a doc to an existing file (all under
content for now) it throws error 500
As an example, contained in this repo snapshot:
- This repo has a
src/index.yaml file that the CMS can read when I set the storage adapter to Scio/goyenda-club/src
- And yet, when it saves the file, it does so to
content/%252Findex.yaml for the first attempt.
- But for subsequent attempts, simply fails with error 500
- The other two files under
content were created by changing the document path for testing, please ignore them
I only just discovered the Codeberg storage adapter this morning. And I know that the docs don't mention its existence, so it might not be ready for use. But I couldn't help but create this issue because the adapter module itself is deployed on the CDNs.
The Codeberg storage adapter can read files from the repo once the path is clearly defined, but fails to save to those files, throwing: `Error: Forgejo API request failed: 500 Internal Server Error`
I think this issue might be related to the other and perhaps even stranger problem that happens at the same time:
1. If I try to save a completely new path that doesn't yet exist in my repo the file _does_ get created, but _always_ under a completely unrelated `content` directory, with the intended path kept in the filename with slashes escaped with `%2F`!
2. And yet, the adapter can _read_ existing files on the correct path only if I set the path to src folder correctly to `src`, but still tries to save to `content/src%2F...`
3. But when it tries to save a doc to an existing file (all under `content` for now) it throws error 500
---
As an example, contained in this [repo snapshot](https://codeberg.org/Scio/goyenda-club/src/commit/ca57e3e3760012c143d75f7ee65038509bf5ebfb):
1. This repo has a `src/index.yaml` file that the CMS can read when I set the storage adapter to `Scio/goyenda-club/src`
2. And yet, when it saves the file, it does so to `content/%252Findex.yaml` for the first attempt.
1. But for subsequent attempts, simply fails with error 500
3. The other two files under `content` were created by changing the document path for testing, please ignore them
---
I only just discovered the Codeberg storage adapter this morning. And I know that the [docs](https://lume.land/cms/configuration/storage/) don't mention its existence, so it might not be ready for use. But I couldn't help but create this issue because the adapter module itself is deployed on the CDNs.