php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58154 Most paths are not canonicalized
Submitted: 2008-04-14 10:55 UTC Modified: 2008-06-03 20:38 UTC
From: peter dot bex at solide-ict dot nl Assigned:
Status: Closed Package: svn (PECL)
PHP Version: HEAD CVS-2008-04-14 (dev) OS: Any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: peter dot bex at solide-ict dot nl
New email:
PHP Version: OS:

 

 [2008-04-14 10:55 UTC] peter dot bex at solide-ict dot nl
Description:
------------
The svn library dies with an abort() (ie, you get an "Internal Server Error") on non-canonical pathnames.  This is an error which should be handled by treating all paths with svn_path_canonicalize before calling any svn function.

Affected functions are repos_create, svn_add, svn_checkout and probably more.

Reproduce code:
---------------
repos_create('/foo/bar/');

svn_add('/foo/./bar');

etc

Expected result:
----------------
No error, or at least a clean PHP error instead of hard abort on the C language level.

Actual result:
--------------
"Internal Server error", PHP aborts.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-03 20:38 UTC] scottmac@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 08:01:30 2025 UTC