Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brainchild0 opened this issue Aug 10, 2023 · 3 comments
Open

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

brainchild0 opened this issue Aug 10, 2023 · 3 comments

Comments

@brainchild0
Copy link
Contributor

brainchild0 commented Aug 10, 2023

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
Copy link
Owner

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
Copy link
Contributor Author

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.

@monnerat
Copy link
Collaborator

I tried today with 9df7c7d and I can't reproduce.
Either the problem has gone in the meantime or this is a matter of configuration. Mine is:

  • http in localhost:10020, local access only.
  • apache reverse proxy on http(s)://hostname/gitprep using X-Request-Base and LAN access.

I did not try cgi.

As you don't tell about your config, this is hard to investigate further.
Please retest with a current snapshot and report here with additional info if it still fails for you. Thanks.
If you still have problems, enabling the production log in the config file can give you more details about the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants