modess / git-pretty-stats

Self hosted graphs for Git repositories in PHP
Other
142 stars 24 forks source link

The requested URL was not found on this server. #20

Closed sileclercq closed 9 years ago

sileclercq commented 10 years ago

HEre is the url of my server : http://par-svr-app02:8084/git-pretty-stats/public/

Here is the list of the repository which is displayed on this page : D:\repo\GitBlit @ master 37 commits D:\repo\Vss2Git @ master 22 commits

When I click on the first one, I get the following page and error :

http://par-svr-app02:8084/git-pretty-stats/public/repository/D%3A%5Crepo%5CGitBlit

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.

Error 404

par-svr-app02 02/13/14 18:35:35

Apache/2.2.21 (Win32) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

What do I need to do to fix this ? Thanks for the help

sileclercq commented 10 years ago

I believe my rewrite is working fine. To confirm this, if I manually change the url to this one http://par-svr-app02:8084/git-pretty-stats/public/repository/GitBlit, I am getting the following error :

Symfony \ Component \ Debug \ Exception \ FatalErrorException Call to a member function getName() on a non-object open: D:\xampp\htdocs\git-pretty-stats\app\controllers\RepositoryController.php public function show ($name) { $repositories = $this->factory->toArray(); $repository = $this->factory->fromName($name);

    return View::make('repository')->with(array(
        'repositories'  => $repositories,
        'name'          => $repository->getName(),
        'branch'        => $repository->gitter->getCurrentBranch()
    ));

Server/Request Data REDIRECT_MIBDIRS D:/xampp/php/extras/mibs REDIRECT_MYSQL_HOME \xampp\mysql\bin REDIRECT_OPENSSL_CONF D:/xampp/apache/bin/openssl.cnf REDIRECT_PHP_PEAR_SYSCONF_DIR \xampp\php REDIRECT_PHPRC \xampp\php REDIRECT_TMP \xampp\tmp REDIRECT_STATUS 200 MIBDIRS D:/xampp/php/extras/mibs MYSQL_HOME \xampp\mysql\bin OPENSSL_CONF D:/xampp/apache/bin/openssl.cnf PHP_PEAR_SYSCONF_DIR \xampp\php PHPRC \xampp\php TMP \xampp\tmp HTTP_HOST par-svr-app02:8084 HTTP_CONNECTION keep-alive HTTPACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8 HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36 HTTP_ACCEPT_ENCODING gzip,deflate,sdch HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8,fr;q=0.6 HTTP_COOKIE ASP.NET_SessionId=jnlxkyjl05fqql45e3euscjb; .ToDoV2=0FA6538B64F2CEE362AAFD8DF7279B1FC20887D6D47D7C4065EE5282BC11C7F2F175A67A4E5BE9D52CF1F2D457698DD7DAF3BB242A21A929CA29B319A01DD1379AEFD13DD44713DCE10EFBBF6D36535F269A97161D34FA6FC097BC16B65A8718EB4E7C91; laravel_session=eyJpdiI6ImxxVHFraXNidStpREdlOFNWR011UWZNRDhDdWtJQmErNzdwZ0o5ZnB0WDA9IiwidmFsdWUiOiJDT2tEN25IYVA0YU4xMElieEE2ZnlkRnRZcWZyVThmYzlwb2U0ZXBaUnNia0VERkZ5Z25UTW5Jc2pSWUZLdityeHFEOU1GdjFJRkdnZ3pTZklLT1RcL2c9PSIsIm1hYyI6ImUyOTI4ZTlkYjQ2NDk4YjhjYjU0YjUwMjRkNjFmN2I2ZjIxZDhkZmMxMTdmYmE2MTA0OTM1ZWNlYTI4ZDU0ZTIifQ%3D%3D PATH C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\oma\bin;C:\Program Files\Dell\SysMgt\rac5;C:\Program Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\tools\c\samples\bin;D:\xampp\php;C:\Git\bin SystemRoot C:\WINDOWS COMSPEC C:\WINDOWS\system32\cmd.exe PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH WINDIR C:\WINDOWS SERVER_SIGNATURE

Apache/2.2.21 (Win32) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 Server at par-svr-app02 Port 8084
SERVER_SOFTWARE Apache/2.2.21 (Win32) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 SERVER_NAME par-svr-app02 SERVER_ADDR 192.168.22.43 SERVER_PORT 8084 REMOTE_ADDR 192.168.22.137 DOCUMENT_ROOT D:/xampp/htdocs SERVER_ADMIN postmaster@localhost SCRIPT_FILENAME D:/xampp/htdocs/git-pretty-stats/public/index.php REMOTE_PORT 28043 REDIRECT_URL /git-pretty-stats/public/repository/GitBlit GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING
REQUEST_URI /git-pretty-stats/public/repository/GitBlit SCRIPT_NAME /git-pretty-stats/public/index.php PHP_SELF /git-pretty-stats/public/index.php REQUEST_TIME 1392315032 GET Data empty POST Data empty Files empty Cookies ASP_NET_SessionId jnlxkyjl05fqql45e3euscjb _ToDoV2 0FA6538B64F2CEE362AAFD8DF7279B1FC20887D6D47D7C4065EE5282BC11C7F2F175A67A4E5BE9D52CF1F2D457698DD7DAF3BB242A21A929CA29B319A01DD1379AEFD13DD44713DCE10EFBBF6D36535F269A97161D34FA6FC097BC16B65A8718EB4E7C91 laravel_session eyJpdiI6ImxxVHFraXNidStpREdlOFNWR011UWZNRDhDdWtJQmErNzdwZ0o5ZnB0WDA9IiwidmFsdWUiOiJDT2tEN25IYVA0YU4xMElieEE2ZnlkRnRZcWZyVThmYzlwb2U0ZXBaUnNia0VERkZ5Z25UTW5Jc2pSWUZLdityeHFEOU1GdjFJRkdnZ3pTZklLT1RcL2c9PSIsIm1hYyI6ImUyOTI4ZTlkYjQ2NDk4YjhjYjU0YjUwMjRkNjFmN2I2ZjIxZDhkZmMxMTdmYmE2MTA0OTM1ZWNlYTI4ZDU0ZTIifQ== Session empty Environment Variables PATH C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Dell\SysMgt\oma\bin;C:\Program Files\Dell\SysMgt\rac5;C:\Program Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\tools\c\samples\bin;D:\xampp\php;C:\Git\bin PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH Registered Handlers

  1. Whoops\Handler\PrettyPageHandler
modess commented 10 years ago

Thanks for the bug report! I believe it has something to do with url encoding and Windows file paths. I will look in to this.

modess commented 9 years ago

I know this is a very old issue, but I believe now I have added Windows support. Please see https://github.com/modess/git-pretty-stats/issues/31#issuecomment-87271721