Closed vstm closed 11 years ago
My bad :) Thanks for the fix!
we should probably grep all bundles, jackalope and phpcr repositories for dirname calls
found one dirname in symfony-cmf that i fiexed https://github.com/symfony-cmf/SearchBundle/commit/27edcabebafe7ac9588ce76a0c132ac09ffa091e
and some basename calls fixed too https://github.com/symfony-cmf/TreeBrowserBundle/commit/38b4d06ab606e33170a888dfac1d09c9800f85f5 and https://github.com/symfony-cmf/RoutingBundle/commit/c5c1f9c1995093aeaeb160e7bd3bc37b8da300e6 and https://github.com/symfony-cmf/RoutingAutoBundle/commit/ac719e96fd8bcbb96c95c0ba819b38ad2dd116a6
jackalope and phpcr where cleaned up a moment ago when we created the PathHelper - i think this one just sneaked in. re-checked, there are no other occurrences currently.
The NodeTouchCommand uses
dirname
andbasename
for operations on PHPCR-paths. This causes problems because Windows might return\
instead of/
as the root-path.It breaks the unit test completely:
And just throws an exception if you want to "touch" a node:
This pull request solves the problem by simply replacing the "php-based" filesystem-functions with the
PathHelper
-counterparts.