This issue has been created
There are 5 updates, 1 comment.
 
 
Cristal / cid:jira-generated-image-avatar-f2c1f0d1-7341-4518-a38f-95c84d53ab89 CRISTAL-622 Closed

Impossible to edit an empty Github repository

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c3528a7c-1913-4ea6-a059-3dc3399831a7 Manuel Leduc created this issue on 06/Aug/25 13:33
 
Summary: Impossible to edit an empty Github repository
Issue Type: cid:jira-generated-image-avatar-f2c1f0d1-7341-4518-a38f-95c84d53ab89 Bug
Affects Versions: 0.15
Assignee: Unassigned
Attachments: image-2025-08-06-13-31-48-498.png
Components: Backend - Github
Created: 06/Aug/25 13:33
Priority: cid:jira-generated-image-static-major-d2d4e921-df44-42f0-b684-cdc4f80c386f Major
Reporter: Manuel Leduc
Description:

Reproduction steps

  1. create a github repository with 0 commits
  2. configuration then use the new repository with the github backend
  3. click on new page
  4. set a page name
  5. click on create

Expected

The page is created and the user can start edit it

Actual

An error message is displayed

_thumb_44015.png

Technical details

Executed request

await fetch("https://api.github.com/repos/manuelleduc/cristaledittestpublic/contents/aaa.md", {
    "credentials": "omit",
    "headers": {
        "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0",
        "Accept": "*/*",
        "Accept-Language": "en-US,en;q=0.5",
        "Content-Type": "application/vnd.github+json",
        "Sec-GPC": "1",
        "Sec-Fetch-Dest": "empty",
        "Sec-Fetch-Mode": "cors",
        "Sec-Fetch-Site": "cross-site",
        "Priority": "u=4",
        "Pragma": "no-cache",
        "Cache-Control": "no-cache"
    },
    "body": "{\"content\":\"LS0tCm5hbWU6IGFhYQpzeW50YXg6IG1hcmtkb3duLzEuMgotLS0K\",\"message\":\"Update aaa\"}",
    "method": "PUT",
    "mode": "cors"
});

The response

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/repos/contents#create-or-update-file-contents",
  "status": "404"
}
 
 

5 updates

 
cid:jira-generated-image-avatar-c3528a7c-1913-4ea6-a059-3dc3399831a7 Changes by Manuel Leduc on 06/Aug/25 13:58
 
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Manuel Leduc
Resolution: Invalid
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-c3528a7c-1913-4ea6-a059-3dc3399831a7 Manuel Leduc on 06/Aug/25 13:58
 

The issue was actually caused by a wrong configuration.