Code Monkey home page Code Monkey logo

usvn's Introduction

User-friendly SVN

Important links

Run on Vagrant

Requirements:

To run:

vagrant up

To suspend execution:

vagrant suspend

To destroy virtual machine:

vagrant destroy

Run USVN installation process again after installed

vagrant destroy <-- destroy virtual machine
make            <-- remove instalation files

Official maintainers

The project is not maintain. But if you find a security issue or want to contribute we are happy to help.

Changes

1.0.12

  • Security fix XSS injection possible by USVN admins (Report & fix by Jeffrey Bencteux)

1.0.11

  • PHP 8 fixes

1.0.10

  • Force SameSite Strict on cookies to prevent CSRF CVE-2020-25070 (Report by Jomar & Serizao)
  • Prevent shell code execution in the commit view CVE-2020-25069 (Report by Jomar & Serizao)
  • Minimum recommended PHP version 7.3

1.0.9

  • Fix XSS in SVN logs. Credit to Sysdream
  • Solve some problems about binary file, locale and mysql importing.
  • Add X-Forwarded-Proto variable check on protocol check
  • Added error_log for fail2ban capture by apache-auth filter
  • Solve the key length error reported by mysql when import the sql.
  • Set the locale by system.locale in the config file.

1.0.8

  • Fix JVN#73794686 Cross-site scripting vulnerability

usvn's People

Contributors

3kami3 avatar cedricboudinet avatar exceed-alae avatar georgeto avatar gorankav avatar jeffbencteux avatar jgonzalezdr avatar julien-duponchelle avatar nowaker avatar paraenggu avatar scorninpc avatar stem avatar thewebbooth avatar wdalmut avatar xxorax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

usvn's Issues

Commit on new projects fail

Hi,

first of all a big thanks!! Are you doing (you did =( =( ? usvn.info down?) a vey good job.

I found an issue, the following:

Create a project WITHOUT creating a specific group and avoid to add automatically your user into the group (which does not exists).
Then manually add your a group (my example: Private) in which you are to the project.
Well,.. you're not able to execute a commit in the repository!

That's because the authz file is not properly updated, it looks like:

"#" Project Test
[Test:/]
@Private = r

The write permission in the trunk ecc folders is missing.
And then of course the check-out works, but the commit wont.

Checkout from .../svn/Test/trunk, revision HEAD, Fully recursive, Externals included
E:\SvnRepositories\Test
At revision: 1

Commit
Commit failed (details follow):
Access to '/svn/Test/!svn/act/c2e90901-6f64-5c41-ae40-b5e3cc6ac80a' forbidden

Groupe affectés:

Bonjour,

je me retrouve avec un bug d'affichage ici : http://moninstall/admin/user/edit/login/

la sélection multiple "Groupe affectés:" entre chaque éléments de la balise

object(USVN_Db_Table_Row_Group)#114 (8) { ["_data":protected]=> array(3) { ["groups_name"]=> string(8) "djailkit" ["groups_description"]=> string(23) "pour le projet djailkit" ["groups_id"]=> string(1) "9" } ["_cleanData":protected]=> array(3) { ["groups_name"]=> string(8) "djailkit" ["groups_description"]=> string(23) "pour le projet djailkit" ["groups_id"]=> string(1) "9" } ["_modifiedFields":protected]=> array(0) { } ["_table":protected]=> object(USVN_Db_Table_Groups)#97 (19) { ["_primary":protected]=> array(1) { [1]=> string(9) "groups_id" } ["fieldPrefix":protected]=> string(7) "groups" ["_name":protected]=> string(11) "usvn_groups" ["_rowClass":protected]=> string(23) "USVN_Db_Table_Row_Group" ["_dependentTables":protected]=> array(3) { [0]=> string(27) "USVN_Db_Table_UsersToGroups" [1]=> string(33) "USVN_Db_Table_GroupsToFilesRights" [2]=> string(30) "USVN_Db_Table_GroupsToProjects" } ["_definition":protected]=> NULL ["_definitionConfigName":protected]=> NULL ["_db":protected]=> object(Zend_Db_Adapter_Pdo_Sqlite)#15 (12) { ["_pdoType":protected]=> string(6) "sqlite" ["_numericDataTypes":protected]=> array(5) { [0]=> int(0) [1]=> int(1) [2]=> int(2) ["INTEGER"]=> int(1) ["REAL"]=> int(2) } ["_defaultStmtClass":protected]=> string(21) "Zend_Db_Statement_Pdo" ["_config":protected]=> array(7) { ["username"]=> NULL ["password"]=> NULL ["dbname"]=> string(58) "<moninstalle_full_dir>/usvn/files/usvn.db" ["charset"]=> NULL ["persistent"]=> bool(false) ["options"]=> array(2) { ["caseFolding"]=> int(0) ["autoQuoteIdentifiers"]=> bool(true) } ["driver_options"]=> array(0) { } } ["_fetchMode":protected]=> int(2) ["_profiler":protected]=> object(Zend_Db_Profiler)#16 (4) { ["_queryProfiles":protected]=> array(0) { } ["_enabled":protected]=> bool(false) ["_filterElapsedSecs":protected]=> NULL ["_filterTypes":protected]=> NULL } ["_defaultProfilerClass":protected]=> string(16) "Zend_Db_Profiler" ["_connection":protected]=> object(PDO)#95 (0) { } ["_caseFolding":protected]=> int(0) ["_autoQuoteIdentifiers":protected]=> bool(true) ["_allowSerialization":protected]=> bool(true) ["_autoReconnectOnUnserialize":protected]=> bool(false) } ["_schema":protected]=> NULL ["_cols":protected]=> array(3) { [0]=> string(11) "groups_name" [1]=> string(18) "groups_description" [2]=> string(9) "groups_id" } ["_identity":protected]=> int(1) ["_sequence":protected]=> bool(true) ["_metadata":protected]=> array(3) { ["groups_name"]=> array(14) { ["SCHEMA_NAME"]=> string(0) "" ["TABLE_NAME"]=> string(11) "usvn_groups" ["COLUMN_NAME"]=> string(11) "groups_name" ["COLUMN_POSITION"]=> int(1) ["DATA_TYPE"]=> string(7) "varchar" ["DEFAULT"]=> NULL ["NULLABLE"]=> bool(false) ["LENGTH"]=> string(3) "150" ["SCALE"]=> NULL ["PRECISION"]=> NULL ["UNSIGNED"]=> NULL ["PRIMARY"]=> bool(false) ["PRIMARY_POSITION"]=> NULL ["IDENTITY"]=> bool(false) } ["groups_description"]=> array(14) { ["SCHEMA_NAME"]=> string(0) "" ["TABLE_NAME"]=> string(11) "usvn_groups" ["COLUMN_NAME"]=> string(18) "groups_description" ["COLUMN_POSITION"]=> int(2) ["DATA_TYPE"]=> string(7) "varchar" ["DEFAULT"]=> NULL ["NULLABLE"]=> bool(true) ["LENGTH"]=> string(4) "1000" ["SCALE"]=> NULL ["PRECISION"]=> NULL ["UNSIGNED"]=> NULL ["PRIMARY"]=> bool(false) ["PRIMARY_POSITION"]=> NULL ["IDENTITY"]=> bool(false) } ["groups_id"]=> array(14) { ["SCHEMA_NAME"]=> string(0) "" ["TABLE_NAME"]=> string(11) "usvn_groups" ["COLUMN_NAME"]=> string(9) "groups_id" ["COLUMN_POSITION"]=> int(3) ["DATA_TYPE"]=> string(7) "integer" ["DEFAULT"]=> NULL ["NULLABLE"]=> bool(true) ["LENGTH"]=> NULL ["SCALE"]=> NULL ["PRECISION"]=> NULL ["UNSIGNED"]=> NULL ["PRIMARY"]=> bool(true) ["PRIMARY_POSITION"]=> int(1) ["IDENTITY"]=> bool(false) } } ["_metadataCache":protected]=> NULL ["_metadataCacheInClass":protected]=> bool(true) ["_rowsetClass":protected]=> string(20) "Zend_Db_Table_Rowset" ["_referenceMap":protected]=> array(0) { } ["_defaultSource":protected]=> string(11) "defaultNone" ["_defaultValues":protected]=> array(0) { } } ["_connected":protected]=> bool(true) ["_readOnly":protected]=> bool(false) ["_tableClass":protected]=> string(20) "USVN_Db_Table_Groups" ["_primary":protected]=> array(1) { [1]=> string(9) "groups_id" } }

suite à migration depuis la 0.7.1 vers la 1.0.4

500err in 1.0.7,when upgrade subversion from 1.6 to 1.9

When upgrade subversion from 1.6 to 1.9, can't commit to server. 500error.

192.168.6.2 - 1005 [06/May/2017:20:15:03 +0800] "POST /usvn/svn/sandbox/!svn/me HTTP/1.1" 500 516 "-" "SVN/1.9.5 (x86_64-redhat-linux-gnu) serf/1.3.7"

Will USVN support LDAP group mapping?

For many companies, they would like to use LDAP groups to do access control in kinds of applications.
So just want to know if USVN will support LDAP group mapping in the future?

new project doesn't create /trunk /branches /tags

Hello,

When I am creating new usvn project i am checking "Create SVN standard directories (/trunk, /branches and /tags):", but actually it creates:

Name File revision
Folder medias
File .htaccess (0.34 Ko) 1 by USVN
File dot.htaccess (0.52 Ko) 1 by USVN
File index.php (0.78 Ko) 1 by USVN
File install.php (0.05 Ko) 1 by USVN

new release

Hello
A patched has been merge for php8 compatibility. I tried with php 8.2, it works fine.
Is it possible to tag a new release?

What is the correct update procedure for an existing installation? (1.0.8 -> 1.0.10)

What is the correct update procedure for an existing installation?
I have 1.0.8 installed.
"Check for update" is enabled, but it does not seem to have any effect: It does neither report a new version nor offer to perform an update by itself.
At usvn.info there are new releases 1.0.9 and 1.0.10. I tried simply replacing the folders app, library and public with the newer ones, but that did not work.

So what is the official proper update procedure?

Set access rights

Hi
When i try to set "Acces rights for" the ok button does nothing...

function alert_ajax(xhr, index)
{
var docXML = xhr.responseXML; <--- return null
if (docXML)

Any help?

Tks in advance

Zend/Loader/Autoloader.php not found

Hi, i upgraded from 1.0.1 to 1.0.3 by simply overwriting the directory with the contents and got the following Error:

Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/usvn/app/bootstrap.php on line 39

I noticed that 1.0.1 hat a Zend folder in the library and the current version doesn't. Maybe I missed something here?

usvn 1.0.10 post-commit not working

php -v
PHP 7.3.33 (cli) (built: Mar 18 2022 03:13:08) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies

just copy post-commit.tmpl to post-commit.

cd /path/to/usvn/files/svn/repo-test/hooks/
cp post-commit.tmpl post-commit
chmod +x post-commit
chown www-data:www-data post-commit
cat post-commit
REPOS="$1"
REV="$2"
TXN_NAME="$3"

echo "REPOS: $REPOS, REV: $REV, TXN_NAME: $TXN_NAME"
exit 0

but svn ci error

Transmitting file data .done
Committing transaction...
Committed revision 49.

Warning: post-commit hook failed (exit code 255) with no output.

Add groups/users to projects

A nice feature would be to allow adding Groups/Users to a project from the Group/User admin page.

This way it would be quick to add a new Group/User access to multiple projects.

I'm happy to contribute if able

Compatibility PHP7?

Hi,

First of all, thanks for your hard work!

It is just a little question: is usvn compatible with PHP7?
I wanted to migrate Subversion to an ubuntu server 16.04, but it doesn't support PHP5 anymore (well, you can install it using an unofficial repository but it isn't clean).

Has anyone tried it successfully?

Ty for your time and responses

Set rights for single user

Hi,
I like very much USVN. Clean, nice and simple UI :-)

I would like to make a feature request I like to see in USVN.

I have many people in a guest group for my company, and I would like to assign different permissions to each one.
It would be nice to have the possibility to set permissions also to a single user.

Thanks for USVN.

Cannot delete user in usvn webconsole

Hi

I am getting this error when we want to delete a user using the web gui. Does seems like using cascade delete will fix the issue. But need confirmation from you. As well as if there is a workaround through the GUI itself rather than going CLI.

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (efrepo.usvn_users_to_projects, CONSTRAINT fk_usvn_users_to_projects2 FOREIGN KEY (users_id) REFERENCES usvn_users (users_id))
Trace:
/home/svn/htdocs/usvn/library/Zend/Db/Statement.php:300
Zend_Db_Statement_Pdo::_execute

/home/svn/htdocs/usvn/library/Zend/Db/Adapter/Abstract.php:468
Zend_Db_Statement::execute

/home/svn/htdocs/usvn/library/Zend/Db/Adapter/Pdo/Abstract.php:238
Zend_Db_Adapter_Abstract::query

/home/svn/htdocs/usvn/library/Zend/Db/Adapter/Abstract.php:633
Zend_Db_Adapter_Pdo_Abstract::query

/home/svn/htdocs/usvn/library/Zend/Db/Table/Abstract.php:1161
Zend_Db_Adapter_Abstract::delete

/home/svn/htdocs/usvn/library/USVN/Db/Table/Users.php:97
Zend_Db_Table_Abstract::delete

/home/svn/htdocs/usvn/library/Zend/Db/Table/Row/Abstract.php:627
USVN_Db_Table_Users::delete

/home/svn/htdocs/usvn/app/controllers/UseradminController.php:147
Zend_Db_Table_Row_Abstract::delete

/home/svn/htdocs/usvn/library/Zend/Controller/Action.php:513
UseradminController::deleteAction

/home/svn/htdocs/usvn/library/Zend/Controller/Dispatcher/Standard.php:295
Zend_Controller_Action::dispatch

/home/svn/htdocs/usvn/library/Zend/Controller/Front.php:954
Zend_Controller_Dispatcher_Standard::dispatch

/home/svn/htdocs/usvn/public/index.php:5
Zend_Controller_Front::dispatch

PHP8 (8.0 and 8.1) support

Probably this isn't full list, but lets start. :-]

diff -ur usvn-1.0.10.orig/src/app/controllers/GroupadminController.php usvn-1.0.10/src/app/controllers/GroupadminController.php
--- usvn-1.0.10.orig/src/app/controllers/GroupadminController.php
+++ usvn-1.0.10/src/app/controllers/GroupadminController.php
@@ -64,7 +64,7 @@
                }
                try {
                        $group->save();
-                       foreach ($_POST['users'] as $user) {
+                       foreach ((array)$_POST['users'] as $user) {
                                $group->addUser($user);
                        }
                        $this->_redirect("/admin/group/");
diff -ur usvn-1.0.10.orig/src/library/USVN/Crypt.php usvn-1.0.10/src/library/USVN/Crypt.php
--- usvn-1.0.10.orig/src/library/USVN/Crypt.php
+++ usvn-1.0.10/src/library/USVN/Crypt.php
@@ -77,7 +77,7 @@
                $text = $plainpasswd.'$apr1$'.$salt;
                $bin = pack("H32", md5($plainpasswd.$salt.$plainpasswd));
                for($i = $len; $i > 0; $i -= 16) { $text .= substr($bin, 0, min(16, $i)); }
-               for($i = $len; $i > 0; $i >>= 1) { $text .= ($i & 1) ? chr(0) : $plainpasswd{0}; }
+               for($i = $len; $i > 0; $i >>= 1) { $text .= ($i & 1) ? chr(0) : $plainpasswd[0]; }
                $bin = pack("H32", md5($text));
                for($i = 0; $i < 1000; $i++) {
                        $new = ($i & 1) ? $plainpasswd : $bin;
diff -ur usvn-1.0.10.orig/src/library/USVN/Db/Table/Row/Project.php usvn-1.0.10/src/library/USVN/Db/Table/Row/Project.php
--- usvn-1.0.10.orig/src/library/USVN/Db/Table/Row/Project.php
+++ usvn-1.0.10/src/library/USVN/Db/Table/Row/Project.php
@@ -65,7 +65,7 @@
                        $rights = $table_groupstofilesrights->fetchAll($g);
                        $file_rights = new USVN_Db_Table_FilesRights();
                        foreach ($rights as $right) {
-                               $file_right = $file_rights->find($right->files_rights_id)->current();
+                               $file_right = $file_rights->find((array)$right->files_rights_id)->current();
                                if ($file_right->projects_id == $this->id) {
                                        $right->delete();
                                }
@@ -178,9 +178,9 @@
                if (empty($name) || preg_match('/^\s+$/', $name)) {
                        throw new USVN_Exception(T_("The project's name is empty."));
                }
-               if (!get_magic_quotes_gpc()) {
+//             if (!get_magic_quotes_gpc()) {
                        $name = addslashes($name);
-               }
+//             }
                if (!preg_match('/^[0-9a-zA-Z_\-\/]+$/', $name)) {
                        throw new USVN_Exception(T_("The project's name is invalid. A project's name can only include alpha-numeric characters and '-' or '_'."));
                }
diff -ur usvn-1.0.10.orig/src/library/USVN/Db/Table/Row/User.php usvn-1.0.10/src/library/USVN/Db/Table/Row/User.php
--- usvn-1.0.10.orig/src/library/USVN/Db/Table/Row/User.php          
+++ usvn-1.0.10/src/library/USVN/Db/Table/Row/User.php      
@@ -28,7 +28,7 @@
        {
                if (is_numeric($group)) {
                        $groups = new USVN_Db_Table_Groups();
-                       $group = $groups->find($group)->current();
+                       $group = $groups->find((array)$group)->current();
                }
                $group->addUser($this);
        }
diff -ur usvn-1.0.10.orig/src/library/USVN/FilesAccessRights.php usvn-1.0.10/src/library/USVN/FilesAccessRights.php
--- usvn-1.0.10.orig/src/library/USVN/FilesAccessRights.php
+++ usvn-1.0.10/src/library/USVN/FilesAccessRights.php
@@ -38,7 +38,7 @@
        public function findByPath($group_id, $path)
        {
         $path = str_replace('//', '/', $path);
-               if (strlen($path) == 0 || $path{0} !== '/') {
+               if (strlen($path) == 0 || $path[0] !== '/') {
                        throw new USVN_Exception(T_("Invalid path %s."), $path);
                }
                $response = array('read' => false, 'write' => false);
@@ -79,7 +79,7 @@
        public function setRightByPath($group_id, $path, $read, $write, $recursive = false)
        {
                $path = preg_replace('#[/]{2,}#', '/', $path);
-               if (strlen($path) == 0 || $path{0} !== '/') {
+               if (strlen($path) == 0 || $path[0] !== '/') {
                        throw new USVN_Exception(T_("Invalid path %s."), $path);
                }
                $table_files = new USVN_Db_Table_FilesRights();
diff -ur usvn-1.0.10.orig/src/library/Zend/Cache/Backend.php usvn-1.0.10/src/library/Zend/Cache/Backend.php
--- usvn-1.0.10.orig/src/library/Zend/Cache/Backend.php
+++ usvn-1.0.10/src/library/Zend/Cache/Backend.php
@@ -63,7 +63,7 @@
      */
     public function __construct(array $options = array())
     {
-        while (list($name, $value) = each($options)) {
+        foreach ($options as $name => $value) {
             $this->setOption($name, $value);
         }
     }
@@ -78,7 +78,7 @@
     public function setDirectives($directives)
     {
         if (!is_array($directives)) Zend_Cache::throwException('Directives parameter must be an array');
-        while (list($name, $value) = each($directives)) {
+        foreach ($directives as $name => $value) {
             if (!is_string($name)) {
                 Zend_Cache::throwException("Incorrect option name : $name");
             }
diff -ur usvn-1.0.10.orig/src/library/Zend/Cache/Core.php usvn-1.0.10/src/library/Zend/Cache/Core.php
--- usvn-1.0.10.orig/src/library/Zend/Cache/Core.php
+++ usvn-1.0.10/src/library/Zend/Cache/Core.php
@@ -143,7 +143,7 @@
             Zend_Cache::throwException("Options passed were not an array"
             . " or Zend_Config instance.");
         }
-        while (list($name, $value) = each($options)) {
+        foreach ($options as $name => $value) {
             $this->setOption($name, $value);
         }
         $this->_loggerSanity();
@@ -158,7 +158,7 @@
     public function setConfig(Zend_Config $config)
     {
         $options = $config->toArray();
-        while (list($name, $value) = each($options)) {
+        foreach ($options as $name => $value) {
             $this->setOption($name, $value);
         }
         return $this;
diff -ur usvn-1.0.10.orig/src/library/Zend/Ldap/Converter.php usvn-1.0.10/src/library/Zend/Ldap/Converter.php
--- usvn-1.0.10.orig/src/library/Zend/Ldap/Converter.php
+++ usvn-1.0.10/src/library/Zend/Ldap/Converter.php
@@ -69,7 +69,13 @@
      */
     public static function hex32ToAsc($string)
     {
-        $string = preg_replace("/\\\([0-9A-Fa-f]{2})/e", "''.chr(hexdec('\\1')).''", $string);
+        $string = preg_replace_callback(
+            "/\\\[0-9A-Fa-f]{2}/",
+            function ($matches) {
+                return chr(hexdec($matches[0]));
+            },
+            $string
+        );
         return $string;
     }
 
@@ -393,4 +399,4 @@
         }
         return $v;
     }
-}
\ No newline at end of file
+}
diff -ur usvn-1.0.10.orig/src/library/Zend/Loader/PluginLoader.php usvn-1.0.10/src/library/Zend/Loader/PluginLoader.php
--- usvn-1.0.10.orig/src/library/Zend/Loader/PluginLoader.php
+++ usvn-1.0.10/src/library/Zend/Loader/PluginLoader.php
@@ -128,7 +128,7 @@
         }
 
         $last = strlen($prefix) - 1;
-        if ($prefix{$last} == '\\') {
+        if ($prefix[$last] == '\\') {
             return $prefix;
         }
 
diff -ur usvn-1.0.10.orig/src/library/Zend/Registry.php usvn-1.0.10/src/library/Zend/Registry.php
--- usvn-1.0.10.orig/src/library/Zend/Registry.php
+++ usvn-1.0.10/src/library/Zend/Registry.php
@@ -203,7 +203,7 @@
      */
     public function offsetExists($index)
     {
-        return array_key_exists($index, $this);
+        return array_key_exists($index, (array)$this);
     }
 
 }
diff -ur usvn-1.0.10.orig/src/library/Zend/Tool/Project/Provider/DbAdapter.php usvn-1.0.10/src/library/Zend/Tool/Project/Provider/DbAdapter.php
--- usvn-1.0.10.orig/src/library/Zend/Tool/Project/Provider/DbAdapter.php
+++ usvn-1.0.10/src/library/Zend/Tool/Project/Provider/DbAdapter.php
@@ -97,9 +97,9 @@
         parse_str($dsn, $dsnVars);
 
         // parse_str suffers when magic_quotes is enabled
-        if (get_magic_quotes_gpc()) {
+/*        if (get_magic_quotes_gpc()) {
             array_walk_recursive($dsnVars, array($this, '_cleanMagicQuotesInValues'));
-        }
+        }*/
         
         $dbConfigValues = array('resources' => array('db' => null));
                  

how use import script which in path '/usvn/library/tools/usvn-import-svn-repositories.php

Hi,
I try to use the script 'usvn-import-svn-repositories.php' to import the project, but the script doesn't work as I want.

  1. I get always 'svn/projectName' as projectName, why it adds always svn as prefix?
  2. 'Last five commits' is empty.
  3. In 'files list' is empty, I can't see (trunk | branches | tags).
  4. When I have imported a project, nobody is added in user or group, so I have to add it manually (it's not a problem, but if there is a way to add it in command line, it's better)

I haven't found a document for this script.

Now I can do:
Create a empty project with usvn (in browser), override this project folder by real data (check the right of folder). It's not the best solution, if you have much of project to import.

MySQL error while installing (MySQL 5.6)

While installing USVN 1.0.7 I got the following MySQL error:
Cannot change column 'groups_id': used in a foreign key constraint 'fk_usvn_groups_to_files_rights2' of table 'usvn.usvn_groups_to_files_rights

I am using MySQL 5.6 and tried the installation on Debian and Windows.

Error while assign groups to users

Dear, while assign groups to users i get an error in \library\Zend\Db\Table\Abstract.php, then i need to change one line near 1236.

Remove - $keyValuesCount = count($keyValues);
Change by + $keyValuesCount = is_array($keyValues) ? count($keyValues) : 1;

New Release?

The last release was on 9 Nov 2013. Since then quite some significant changes were made to the master branch, e.g. support for php7.
Are there plans for release a new version?

Can't commit .htaccess

Dear my friend,
I Using USVN, and it verry good.
But i have a issue when commit file htaccess.
Error message:
image
Plz help me.
Thank

Problem Installing on selecting language with Zend

Here's the log 👍

[Tue Oct 31 11:28:44.607743 2017] [:error] [pid 18932] [client :53464] PHP Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /var/www/usvn/library/Zend/Loader.php on line 266, referer: http:///usvn/install.php?step=1
[Tue Oct 31 11:28:44.632263 2017] [:error] [pid 18932] [client 12:53464] PHP Notice: The method getLanguageTranslation is deprecated. Use getTranslation(en, 'language', ) instead in /var/www/usvn/library/Zend/Locale.php on line 686, referer: http://
/usvn/install.php?step=1

capture

Zend Autoloader stil missing after update to 1.0.4

After downloading usvn-usvn-1.0.4-0-ge3c838c.tar.gz and installing it I still have :

Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/usvn-usvn-e3c838c/app/bootstrap.php on line 39

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='/var/www/usvn-usvn-e3c838c/library:.:/usr/local/php5/lib/php') in /var/www/usvn-usvn-e3c838c/app/bootstrap.php on line 39

And indeed I wasn't able to find any Autoloader.php in Zend directory.

Any idea ?

Fabrice

Custom Phing tasks cannot be found

The gettext related tasks for git are not in the git codebase and the original SVN repositories don't seem to be available anymore. (eg http://usvn.info/browser/trunk/phing/tasks/CompilationGetTextTask.php)

This is especially painful because USVN is listed on http://www.phing.info/trac/wiki/Users/ProjectsUsingPhing

Buildfile: /path/to/usvn/build.xml

USVN > all:

     [echo] Build USVN
[phingcall] Calling Buildfile '/path/to/usvn/build.xml' with target 'lint'

USVN > lint:

[phingcall] Calling Buildfile '/path/to/usvn/build.xml' with target 'translation-compilation'

USVN > translation-compilation:

[PHP Error] include_once(phing/tasks/CompilationGetTextTask.php): failed to open stream: No such file or directory [line 1065 of /usr/share/php/phing/Phing.php]
[PHP Error] include_once(): Failed opening 'phing/tasks/CompilationGetTextTask.php' for inclusion (include_path='/usr/share/php/../classes:.:/usr/share/php:/usr/share/pear') [line 1065 of /usr/share/php/phing/Phing.php]
[phingcall] Error importing phing/tasks/CompilationGetTextTask.php
Execution of target "all" failed for the following reason: /path/to/usvn/build.xml:37:22: Execution of the target buildfile failed. Aborting.

BUILD FAILED
/path/to/usvn/build.xml:37:22: Execution of the target buildfile failed. Aborting.
Total time: 3.2978 seconds

Multiple authentication methods

Hello

Is it possible to have more that one authentication methods activated?
I would like to use the database method for some users but LDAP for others.

Bests

Protection against empty groups

Currently it is possible to remove all users from a group.
This might even be quite convenient, but the problem arises when the authz file is written with the empty group like that:

[groups]
MyGroup =

The apache webserver will then block serving all repositories with the following error:

Failed to load the mod_authz_svn config: Error while parsing config file: '/var/www/html/usvn/files/authz': Access entry refers to undefined group '@xyz'

Ideally, empty groups are still allowed, but omitted in the authz file.

anonymous function not found

Hi, I got this error integrating usvn:
PHP Fatal error: Call to a member function _() on null in /var/www/html/usvn/library/USVN/Translation.php on line 96

Environment:

  • os:centos 6.7
  • php:5.6
  • usvn:latest

Thank you for your guidance

/usvn/svn/test1/!svn/me' 500

since subversion was upgraded from 1.6 to 1.7, this include the new HttpV2 protocol. This protocol somehow affected access to the svn repositores, but only seems to affect posts and not gets. The way to disable the new features is by changes to the mod_dav_snv configuration locations as follows:

DAV svn
...
SVNAdvertiseV2Protocol Off
The issue was then resolved and we could check in our changes again.

No route matched the request

I installed usvn on my new server.
After creating a new project I get the following error when use the browser to
navigate to the repository trunk:
(http://79.143.190.56/usvn/svn/Schwarzes-Sachsen/trunk)
"No route matched the request
Trace:
/var/www/usvn/library/Zend/Controller/Front.php:911 Zend_Controller_Router_Rewrite::route
/var/www/usvn/public/index.php:5 Zend_Controller_Front::dispatch "

If I go to the index (http://79.143.190.56/usvn/svn/Schwarzes-Sachsen/)
I got:
"Invalid controller specified (svn)
Trace:
/var/www/usvn/library/Zend/Controller/Front.php:954 Zend_Controller_Dispatcher_Standard::dispatch
/var/www/usvn/public/index.php:5 Zend_Controller_Front::dispatch"

Allow read for everyone

It would be nice to have an option which gives reading access without authentication.
By that, I mean a possibility to add anonymous read-only access to authz file:

[test:/]

  • = r

Login using LDAP not working

Hi there,
when trying to log in using LDAP, I cannot log in using my username and my password.
Instead, I can log in using ANY user name (even non-existing ones in the LDAP backend (Active Directory)) and the password of the LDAP bind user.
This seems to be a bug to me.

Here's what I have entered:
Authentication method: LDAP
Create DB user from LDAP on login: yes
Host: fqdn.server.com
Port: 389
Encryption method: none
username: ldapuser (<-- existing user in Active Directory)
password: secredPass
Bind requires DN: no
Bind DN format: [don't know what that is. I entered the DN of the ldap bind user here...]
Base DN: DC=server,DC=com
Account canonical form: Username (abaker)
Account domain name: DOMAIN.COM
Short account domain name: DOMAIN
Account filter format: (&(objectClass=user)(objectCategory=person))
Allow empty password: No
Follow referrals: No

No such file or directory: Could not open password file

default install ,and default settings.
but err log 👎

[Sun Jan 19 20:45:33 2014] [error] client 218.17.162.171No such file or directory: Could not open password file: /srv/www/htdocs/usvn/files/htpasswd, referer: http://172.16.2.211:81/usvn/project/r00
[Sun Jan 19 20:45:33 2014] [error] [client 218.17.162.171] access to /usvn/svn/r00/trunk failed, reason: verification of user id 'u1' not configured, referer: http://172.16.2.211:81/usvn/project/r00

Error opening translation file

Error opening translation file '/Users/walterdalmut/git/usvn/app/locale//messages.mo'.

Trace:

/Users/walterdalmut/git/Zend/Translate/Adapter.php:646 Zend_Translate_Adapter_Gettext::_loadTranslationData
/Users/walterdalmut/git/Zend/Translate/Adapter.php:327 Zend_Translate_Adapter::_addTranslationData
/Users/walterdalmut/git/Zend/Translate/Adapter.php:176 Zend_Translate_Adapter::addTranslation
/Users/walterdalmut/git/Zend/Translate.php:140 Zend_Translate_Adapter::__construct
/Users/walterdalmut/git/Zend/Translate.php:93 Zend_Translate::setAdapter
/Users/walterdalmut/git/usvn/library/USVN/Translation.php:36 Zend_Translate::__construct
/Users/walterdalmut/git/usvn/app/bootstrap.php:79 USVN_Translation::initTranslation
/Users/walterdalmut/git/usvn/public/index.php:4 require_once

Commit is not specified

ON USVN version 1.0.4 and 1.0.5 , choose a Project then 'Browser' (on left menu), I got the list of files and directories of the project, broswing through directories is OK but as soon as a file is chosen got the following error :

commit is not specified
Trace:
/var/www/usvn2/library/Zend/Controller/Router/Rewrite.php:465 Zend_Controller_Router_Route::assemble
/var/www/usvn2/library/Zend/View/Helper/Url.php:49 Zend_Controller_Router_Rewrite::assemble
/var/www/usvn2/app/helpers/Url.php:37 Zend_View_Helper_Url::url
? USVN_View_Helper_Url::url
/var/www/usvn2/library/Zend/View/Abstract.php:342 call_user_func_array
/var/www/usvn2/app/views/scripts/project/show.phtml:36 Zend_View_Abstract::__call
/var/www/usvn2/app/views/scripts/project/show.phtml:36 Zend_View::url
/var/www/usvn2/library/Zend/View.php:108 include
/var/www/usvn2/library/Zend/View/Abstract.php:880 Zend_View::_run
/var/www/usvn2/library/Zend/Controller/Action/Helper/ViewRenderer.php:897 Zend_View_Abstract::render
/var/www/usvn2/library/Zend/Controller/Action/Helper/ViewRenderer.php:918 Zend_Controller_Action_Helper_ViewRenderer::renderScript
/var/www/usvn2/library/Zend/Controller/Action/Helper/ViewRenderer.php:957 Zend_Controller_Action_Helper_ViewRenderer::render
/var/www/usvn2/library/Zend/Controller/Action/HelperBroker.php:277 Zend_Controller_Action_Helper_ViewRenderer::postDispatch
/var/www/usvn2/library/Zend/Controller/Action.php:523 Zend_Controller_Action_HelperBroker::notifyPostDispatch
/var/www/usvn2/library/Zend/Controller/Dispatcher/Standard.php:295 Zend_Controller_Action::dispatch
/var/www/usvn2/library/Zend/Controller/Front.php:954 Zend_Controller_Dispatcher_Standard::dispatch
/var/www/usvn2/public/index.php:5 Zend_Controller_Front::dispatch

installation requrements

Has any one succeded to install usvn on FreBsd 11 ?
I cannot pass system check before installation.

PHP Fatal error: Call to a member function _() Translation.php on line 96

  1. While installation i got error on bootstrap.php
    Undefined variable: config in /var/www/html/usvn-1.0.6/app/bootstrap.php on line 76
    Undefined variable: config in /var/www/html/usvn-1.0.6/app/bootstrap.php on line 78
    Undefined variable: config in /var/www/html/usvn-1.0.6/app/bootstrap.php on line 79

I resolved installation problem after commenting on Line no 76,78 and 79

After completing installation I found login page blank on my browser and after checking error log I found following error

PHP Fatal error: Call to a member function _() on a non-object in /var/www/html/usvn-1.0.6/library/USVN/Translation.php on line 96

I'm using PHP 5.1.6 in my system.

Thank you,

Rakesh

Can't Set Permissions for a Chinese Named Folder

Can't Set Permissions for a Chinese Named Folder.

My environmentis:
Windows server 2008R2;
Apache 2.2.22;
Subversion 1.7.10;
MySQL 5.5.30

USVN 1.0.5;

I used UTF-8,and the author file is UTF-8 without BOM.
The Chinese folder's name is shown correctly.
But when I click the Permissions setting menu,the system dosn't response.

Thank you!

Use USVN for sharing Data

i want to know , how can i exactly schare all my data , PDF or picture on USVN with selft USVN . i dont wanna use with command line or commit. it's not possible the way for find data in USVN , for Example Browser and than you can find data in browxer on your computer than share in subversion. i can just see it's dirctory Trunk ... but not learning about sharing data with USVN. anyone know about that ???
Thank you for your answer and help!!!

In version 1.0.5 I cannot create more than 29 groups

So the problem I have is that I have now created 30 users with a group each. Every user has a project and some files. Now, if a user goes to the web interface and tries to change the rights to some file he will lose all information on the rights to that folder. That is, if I initially had rights for text.txt and now add the rights to read/write to a second user then everyone loses the rights to this file.

I have verified that the ajax function does indeed send the information of the checkboxes to the webservice (BrowserajaxController). However, if you print $_GET['rights'] in the function that implements the service you get an error that says the key is not found (so it does not find the parameter rights). This is despite the fact that apache reports the correct query having been received. I suppose there is some problem in the routing or some preDispatch call I am not seeing (not a Zend expert here) but this is driving me crazy.

Any ideas are welcome :)

Nouvelle fonctionnalité

Bonjour,

Tout d'abord bravo et merci pour votre travail.

Serait-il possible d'incorporer dans la prochaine version un système de création de tags et de branches.

Bonne continuation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.