*Edit*ing an issue comment results in *Internal server error* #7

Open
opened 2024-10-16 18:44:29 +02:00 by Benjamin_Loison · 2 comments
Editing an issue comment results in:
<!DOCTYPE html>
<html lang="en-US" data-theme="codeberg-dark">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Internal server error - Codeberg.org</title>
	<link rel="icon" href="/assets/img/favicon.svg" type="image/svg+xml">
	<link rel="alternate icon" href="/assets/img/favicon.png" type="image/png">
	<link rel="stylesheet" href="/assets/css/index.css?v=8.0.3-53-9d5cce4bcc~gitea-1.22.0">
<link rel="stylesheet" href="/assets/css/theme-codeberg-dark.css?v=8.0.3-53-9d5cce4bcc~gitea-1.22.0">

</head>
<body>
	<div class="full height">
		<nav class="ui secondary menu">
			<div class="ui container tw-flex">
				<div class="item tw-flex-1">
					<a id="navbar-logo" href="/" aria-label="Home">
						<img width="30" height="30" src="https://design.codeberg.org/logo-kit/icon_inverted.svg" alt="Logo" aria-hidden="true">
					</a>
				</div>
				<div class="item">
					<button class="ui icon button disabled"><svg viewBox="0 0 16 16" class="svg octicon-three-bars" aria-hidden="true" width="16" height="16"><path d="M1 2.75A.75.75 0 0 1 1.75 2h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 2.75m0 5A.75.75 0 0 1 1.75 7h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 7.75M1.75 12h12.5a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5"/></svg></button>
				</div>
			</div>
		</nav>
		<div class="divider tw-my-0"></div>
		<div role="main" class="page-content status-page-500">
			<div class="ui container" >
				<style> .ui.message.flash-message { text-align: left; } </style>
				




			</div>
			<div class="ui container center">
				<h1 class="tw-mt-8 error-code">500</h1>
				<p>Internal server error</p>
			</div>
			<div class="divider"></div>
			<div class="ui container tw-my-8">
				
				<div class="center tw-mt-8">
					<p>Forgejo version: 8.0.3-53-9d5cce4bcc&#43;gitea-1.22.0</p>
					
				</div>
			</div>
		</div>
	</div>

	
	<script type="module">
		const embedded = document.querySelector('.page-content .page-content.status-page-500');
		if (embedded) {
			
			const embeddedParent = embedded.parentNode;
			let main = document.querySelector('.page-content');
			main = main ?? document.querySelector('body');
			main.prepend(document.createElement('hr'));
			main.prepend(embedded);
			embeddedParent.remove(); 
		}
	</script>
</body>
</html>
<details> <summary><i>Edit</i>ing an issue comment results in:</summary> ```html <!DOCTYPE html> <html lang="en-US" data-theme="codeberg-dark"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Internal server error - Codeberg.org</title> <link rel="icon" href="/assets/img/favicon.svg" type="image/svg+xml"> <link rel="alternate icon" href="/assets/img/favicon.png" type="image/png"> <link rel="stylesheet" href="/assets/css/index.css?v=8.0.3-53-9d5cce4bcc~gitea-1.22.0"> <link rel="stylesheet" href="/assets/css/theme-codeberg-dark.css?v=8.0.3-53-9d5cce4bcc~gitea-1.22.0"> </head> <body> <div class="full height"> <nav class="ui secondary menu"> <div class="ui container tw-flex"> <div class="item tw-flex-1"> <a id="navbar-logo" href="/" aria-label="Home"> <img width="30" height="30" src="https://design.codeberg.org/logo-kit/icon_inverted.svg" alt="Logo" aria-hidden="true"> </a> </div> <div class="item"> <button class="ui icon button disabled"><svg viewBox="0 0 16 16" class="svg octicon-three-bars" aria-hidden="true" width="16" height="16"><path d="M1 2.75A.75.75 0 0 1 1.75 2h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 2.75m0 5A.75.75 0 0 1 1.75 7h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 7.75M1.75 12h12.5a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5"/></svg></button> </div> </div> </nav> <div class="divider tw-my-0"></div> <div role="main" class="page-content status-page-500"> <div class="ui container" > <style> .ui.message.flash-message { text-align: left; } </style> </div> <div class="ui container center"> <h1 class="tw-mt-8 error-code">500</h1> <p>Internal server error</p> </div> <div class="divider"></div> <div class="ui container tw-my-8"> <div class="center tw-mt-8"> <p>Forgejo version: 8.0.3-53-9d5cce4bcc&#43;gitea-1.22.0</p> </div> </div> </div> </div> <script type="module"> const embedded = document.querySelector('.page-content .page-content.status-page-500'); if (embedded) { const embeddedParent = embedded.parentNode; let main = document.querySelector('.page-content'); main = main ?? document.querySelector('body'); main.prepend(document.createElement('hr')); main.prepend(embedded); embeddedParent.remove(); } </script> </body> </html> ``` </details>
Author
Owner

Like appending:

Source: [the Stack Overflow answer 2232490](https://stackoverflow.com/a/2232490)

to Benjamin_Loison/git/issues/84#issuecomment-2383963.

https://codeberg.org/api/swagger

Like appending: ```markdown Source: [the Stack Overflow answer 2232490](https://stackoverflow.com/a/2232490) ``` to [Benjamin_Loison/git/issues/84#issuecomment-2383963](https://codeberg.org/Benjamin_Loison/git/issues/84#issuecomment-2383963). https://codeberg.org/api/swagger
Author
Owner

Do not face the issue anymore.

Do not face the issue anymore.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Benjamin_Loison/codeberg#7
No description provided.