USVN

Userfriendly SVN
It is currently Wed Sep 08, 2010 6:54 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Error opening a file with semi colon (;) in name - browser
PostPosted: Wed Mar 10, 2010 2:18 am 
Offline

Joined: Wed Mar 10, 2010 1:35 am
Posts: 2
Hello,

I've recently installed USVN as an admin interface for our svn projects.
It's a nice app and has been great to work with.

I would like to start using USVN for reviewing submitted code but have found a problem, we have a large number of files that (for reasons I won't explain) have a file naming convention that includes a semi colon.
Whenever I attempt to open a file containing a semi colon in the name, using the USVN browser, I get the following error:

Can't read from subversion repository. Command: svn --config-dir /USVN/fake cat --non-interactive 'file:///var/www/usvn-1.0/files/svn/Development/trunk/myfile;test.txt' Error:
Trace:
/var/www/usvn-1.0/library/Zend/Controller/Action.php:503 ProjectController::showAction
/var/www/usvn-1.0/library/Zend/Controller/Dispatcher/Standard.php:285 Zend_Controller_Action::dispatch
/var/www/usvn-1.0/library/Zend/Controller/Front.php:934 Zend_Controller_Dispatcher_Standard::dispatch
/var/www/usvn-1.0/public/index.php:5 Zend_Controller_Front::dispatch

I suspect the semi colon needs to be replaced with '%3B' (this is what TortoiseSVN does with the url when I open the file with it).
I can't rename the files, can anyone suggest a work around or code hot fix? (I'm a developer with limited php experience!)
Thanks in advance

Franco


Top
 Profile  
 
 Post subject: Re: Error opening a file with semi colon (;) in name - browser
PostPosted: Mon Mar 15, 2010 5:36 am 
Offline

Joined: Wed Mar 10, 2010 1:35 am
Posts: 2
Hi,
I ended up working around the issue by modifying the file:
/var/www/usvn-1.0/app/controllers/ProjectController.php

I added this line after the $svn_file_path variable is assigned to:
$svn_file_path = str_replace(';','%3B',$svn_file_path);

Of course this only works for files containing ";" in the name.
Not the most elegant solution, but it works and I think I have limited the damage (if any) to just the code browser.

Can anyone suggest a more generic solution?


Top
 Profile  
 
 Post subject: Re: Error opening a file with semi colon (;) in name - browser
PostPosted: Mon Mar 22, 2010 7:26 am 
Offline

Joined: Mon Mar 08, 2010 6:05 am
Posts: 5
Any particular reason for having a file with ";" in its name?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group