yuki-kimoto / gitprep

Portable GitHub system into your own server
http://gitprep.yukikimoto.com/
906 stars 118 forks source link

Web UI functions, but git operations produce HTTP 404 #199

Open brainchild0 opened 11 months ago

brainchild0 commented 11 months ago

In a deployment of the application, the web interface functions properly, but not operations from a git client connecting through HTTP.

For example, it fails when I attempt to clone using the https URL shown in the web interface.

Visiting the path of the repository in the browser shows a code 404, and the browser page shows the error text "raptor not found".

The source code and screen capture for the error page are shown below.

I have the latest tree from master, revision 37f00ae, and run have the setup scripts.


<!DOCTYPE html>
<html>
  <head><title>Page not found</title></head>
  <style>
      a img { border: 0 }
      body { background-color: #caecf6 }
      #noraptor {
        left: 0%;
        position: fixed;
        top: 60%;
      }
      #notfound {
        background: url(/gitprep.cgi/mojo/notfound.png);
        height: 62px;
        left: 50%;
        margin-left: -153px;
        margin-top: -31px;
        position:absolute;
        top: 50%;
        width: 306px;
      }
    </style>
  <body>
    <a href="https://gitprep.example.tld/">
      <img alt="Bye!" id="noraptor" src="/gitprep.cgi/mojo/noraptor.png">
</a>    <div id="notfound"></div>
  </body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

Screenshot from 2023-08-12 17-38-22_

yuki-kimoto commented 11 months ago

Thanks for your reporting, but I cannot have to search and fix this.

If you give me a patch by a pull request, I can apply the patch.

brainchild0 commented 11 months ago

I have no idea how to fix it.

I cannot even prevent it on my site.

I was hoping someone would have an idea of the cause. Currently, the entire site is broken, and I have failed to fix it.