What software configuration management tools are available in CollabNet TeamForge ?
In CollabNet TeamForge, users can browse the contents of a project’s source code repositories and view detailed information about code commits, changed files, and associations with other CollabNet TeamForge items.
CollabNet TeamForge is not intended to replace your SCM tool. Code must be checked in using Subversion, CVS or GIT.
Who can Access Source Code?
Project administrators can give project members specific kinds of access to a whole Subversion repository or any path within that repository.
You can specify access permissions for users with a given role at the repository level, or at the path level within a repository.
- When you set a permission for a role on any directory in the repository, all directories and files under that directory get the same permission.
- When you set a permission on an individual file in the repository, there is no effect on the permissions assigned to paths above the level of that file. (A file is just a path that ends with a file name.)
How you use path-based permissions will depend on whether you view permissions primarily as a way to grant access or as a way to restrict access.
Full access, with exceptions
Give your company’s own employees commit access to your whole source code base, while allowing developers from contracting firms to commit only to those parts of the code base that they are expected to work on.
No access, with exceptions
Assign all developers “No access” by default, then assign each type of developer access to certain directories and files according to their responsibilities.
When you deny all access to a repository for a role, users with that role cannot see that the repository exists, except if:
The role has “View and Commit” access to some directory within the repository. In this case, users with this role can see the directories that contain the directory they have access to.
The user has another role that grants access to some part of the repository.Note: An individual user can have multiple roles. When two roles have permissions that conflict with each other, the role with the more expansive permissions takes precedence.
Users with a role that has “View Only” access to a path can browse the contents of the repository on the Web site or by connecting directly to the repository from a client, such as Tortoise, CollabNet Desktop for Eclipse, or CollabNet Desktop for Visual Studio.
View and Commit
Users with a role that has “View and Commit” permission to a path can browse and download code, and can also check code into the repository.
Wildcard-based Access Control and Path-based Permissions
You can create rules that use wilcards to control access to specific paths in a repository. See Wildcard-based Access Control and Path-based Permissions in TeamForge for more background information about wildcard and path based permissions.
Controlling access to a specific path in a branch using authz rules can be very time consuming and inefficient. Assume you have three branches,
[/branches/baz/build]. If you create
authz rules, you may have to write a separate rule for every branch in the repository, let alone the fact that you need to write such rules for a branch you may create in the future.
[/branches/foo/build] @build = rw @dev = r
[/branches/bar/build] @build = rw @dev = r
[/branches/baz/build] @build = rw @dev = r
Instead, you can write a rule using wildcards such as:
Later, you can create and assign roles to users such as “build engineers” and “developers” with “read-write” and “read-only” access permissions respectively.
In this scenario, assume that there is a particular file or folder pattern that needs access control in a repository. For example, you may want to restrict all users but release managers from modifying
.iso files. It is impossible to define such a rule using the
With TeamForge, you can write a rule that partially uses wildcards in file or folder names such as:
This rule applies to all files and folders that end with .iso under the path
In this scenario, assume that you want to control access to a particular folder no matter where the folder is in a branch. For example, you may want to control access to the “build” folder wherever it is in a repository. You can write a rule using wildcards such as:
The “**” matches any number of folder levels in a repository. For example, this rule applies to the following paths:
/trunk/build /branches/feature1/build /trunk/external_module/build /build
In addition to these scenarios, you can use wildcards to create rules that suit your requirement. A few examples of how you can create wildcard-based rules:
/**/*.iso- Match any .iso file anywhere in a repository.
/branches/RB*- Match any branch if the name starts with RB.
/branches/*/*.txt- Match all .txt files one level under any branch.
Notes about path-based permissions
If two paths have different permissions, the permissions on the lower-level path take effect. For example, consider a role that has “No Access” set for the path
/branches/version3/users, but has “View and Commit” access to
/branches/version3/users/vijay. A user with this role can:
- Check code in and out of the vijay directory.
- Click down through all the directories in that path, including
users. (Directories that are not included in the user’s permissions are not shown.)
Users with this role cannot:
- Check files in and out of the users directory.
- Monitor commits to users.
- Execute Subversion copy, move or delete operations that involve resources in the users directory (or any other paths where the user has View Only or No Access).
When users monitor a repository, they receive commit announcements by email that include the resources that their role permits them to see.
Users with a “No Access” role on a repository cannot monitor that repository to receive commit messages by email.
By default, commit emails provide all the details about the commit that a logged-in user can view in the Source Code application. A repository owner can elect to have the notification emails omit most of the detail and provide only the commit ID and the committer’s user name.
If none of the available permissions (View Only, View and Commit, or Path-based Permissions) is selected for any repository, and none of the options under Source Code Permissions is selected, users with this role do not see the Source Code toolbar button.
I deleted the email that verifies my CVS password. How can I retrieve my password?
You can sync up your TeamForge login and CVS passwords by changing your password in TeamForge.
To change your password
Log in and click on My Workspace.
Click on My Settings.
Click on Change Password.
Enter your old password and new password.
Why don’t the branding repo changes get rendered into UI?
It may be due to the property ‘subversion_branding.repository_base’ pointing to /sf-svnroot instead of the /svnroot directory, which is used by the scm-integration of the csfe installation.
First, check the location of the branding repository in subversion_branding.repository_base=/sf-svnroot’ in
If it has to be /svnroot, then add an entry that states SUBVERSION_BRANDING_REPOSITORY_BASE=/svnroot
Then re-create a runtime and restart TeamForge.
Why do we have errors creating or altering repositories and adding or removing users?
The TeamForge SCM Integration server runs an instance of Tomcat and then launches TeamForge inside the Tomcat container.
If you are experiencing issues creating or altering repositories or adding and removing users from repository access, and the other TeamForge integration logs are not providing any clues, you may wish to review the Tomcat log at:
Sometimes, OS-level errors will be flagged into this log and not others. In our experience, it is pretty rare to find something in this log that is not logged elsewhere.
Why is the password and login shell changed for users on my cvs/svn server?
TeamForge uses local user accounts on the SCM server to provide access to CVS repositories via ssh.
If any local user accounts on the SCM server match user names within TeamForge they will be changed.
If you are planning to use CVS in the SCM server, you should ensure that the local accounts do not conflict with the TeamForge user accounts. Adding a prefix to the local user accounts (local_username) would be one way to resolve this and prevent the usernames from conflicting. Alternatively, if you are not using CVS repositories, the CVS integration can be removed altogether.
Why do I get a proxy timeout when I try to view certain SCM pages?
If you are getting a proxy timeout error when you try to view a SCM page, you may need to configure the Apache 2.2 Proxy Timeout to 300 or less in the httpd.conf file.
If you get the following error while attempting to view a SCM page in SFEE:
The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /integration/viewcvs/viewcvs.cgi/ibe-rules/tags/phases/ibe-rules_09.02.0-Ph-200902_test_20090105/ Reason: Error reading from remote server
Configure your Apache 2.2 Proxy Timeout to 300 or less in the
What’s the difference between a ‘managed’ and ‘unmanaged’ CVS server?
You can use TeamForge to control a CVS server, or you can run the CVS server stand-alone, or ‘unmanaged’.
A managed server gets its instructions from TeamForge to which it is integrated with. Use TeamForge for SCM tasks such as:
- Creating repositories
- Adding and removing users
- Enabling or disabling user access to the repositories
Both new SCM servers and those with existing repositories can be managed by TeamForge.
On an unmanaged CVS server, you use the CVS’s own utilities to handle repository management, user management, and access permissions.
Add an unmanaged server if you know that all repository and user creation and management must be done manually. For example, set up an unmanaged CVS server when:
- A corporate IT policy prohibits applications such as TeamForge from making any changes to the users or repositories on the corporation’s CVS servers.
- A CVS server has existing repositories that cannot be changed to adhere to TeamForge standards.
Subversion Replication in TeamForge
Here’s some information on how replication could be useful in your TeamForge site and what to consider when you plan to set up a replica.
Typically, you would deploy a replica for one these reasons:
Projects in remote locations with lower bandwidth or higher latency want the performance of a “local” server.
Your company has a number of developers clustered together at a remote location. When you install a replica inside the LAN of these developers, they can greatly improve their Subversion performance and keep a lot of their traffic off the WAN. In this scenario, you would probably want a replica in each such location. Keep in mind that a replica can only be a proxy for one master – so if your company has more than one Subversion master server, you may need more than one replica at each location.
You want to reduce the load on the master server.
For example, continuous integration tools can place a lot of load on the server and moving that load to a separate server can increase the response time for other users. In this scenario you probably only need to add one replica; you’d add it as close to the master as possible so that synchronization is quick. Of course the previous point can be a factor here. If the continuous integration server is at remote location, then you would want to put a replica near the continuous integration server.
Rules for using a replica
To create a replica in TeamForge, you start with Subversion Edge. A Subversion Edge wizard lets you convert the server into a replica of a Subversion server in TeamForge.
When you configure the replica server, you provide the TeamForge username and password to use for the replica. These are the credentials the replica uses when it replicates Subversion content. This user must be added to projects and given permissions to the repositories being replicated. Those permissions also control what parts of the repository will be replicated. So if you have folders that should not ever live on remote servers, you can set up path-based permissions and that content will never be replicated to the server.
If you forget to set up permissions, the replication will fail. However, there’s no real harm done, and once you fix the permissions, you can do it again.
The replica user can be a normal user account – it does not have to be an Admin account. If the replica is set up and maintained by an Operations team, they might want to just use an Admin account so that project teams do not have to worry about adding the user to the project or setting up permissions.
Permissions for end users accessing those repositories will follow the normal TeamForge rules.
How do I move an existing CVS repository into TeamForge?
You can import and manage an existing CVS repository with TeamForge.
Do the following to move an existing CVS repository:
Stop CVS access to the old repo.
chmod -x /usr/bin/cvs
Tar the old repo.
cd /cvsroot/old_repo tar zcvf /tmp/old_repo.tar.gz cd.. mv old_repo /tmp
Restore CVS access.
chmod +x /usr/bin/cvs
Transfer the repo to the TeamForge CVS server.
Create the new repo from within TeamForge.
Browse to your project
Click the Source Code button
Create your new repo
Untar the old repo.
cd /cvsroot/new_repo tar zxvf /tmp/old_repo.tar.gz
To synchronize permissions, perform the following steps.
Login as a TeamForge site admin.
Click the Admin link.
Click the Integrations button.
Check the CVS integration you want.
Click the Synchronize Permissions button.
Verify the new repo.
Remove the old repo.
/bin/rm -r /tmp/old_repo
How do I move an existing SVN repository into TeamForge?
If you have an existing SVN repo, you can manage it with TeamForge.
To move an existing the SVN repo, perform the following steps:
Stop SVN access to the old repo.
Dump the old repo.
svnadmin dump /svnroot/old_repo > /tmp/old_repo.dmp o mv /svnroot/old_repo /tmp
Restore SVN access.
Transfer the repo to the TeamForge SVN server.
Create the new repo from within TeamForge.
Browse to your project and click the Source Code button, then create your new repo.
Load the old repo.
cat /tmp/old_repo.dmp|svnadmin load /svnroot new_repo
To synchronize permissions, perform the following steps:
Login as an TeamForge site admin.
Select the SVN integration you want.
Click the Synchronize Permissions button.
Verify the new repo.
Remove the old repo.
/bin/rm -r /tmp/old_rep
How do I enable Neon debugging in my Subversion client?
This is easliy done in a Linux environment by editing the existing servers text file. On Windows it is not easily done and not recommended.
On a Linux system, edit the
~/.subversion/servers file by adding the line “neon-debug-mask = 130” (without quotes) to the [global] section of the file, making sure that you also un-comment the [global] line as well. Once Neon debugging is enabled, you should see much more output from each svn command.
Although Neon debugging is possible on Windows, it involves steps that are too complex for most end users to undertake, including compiling Windows binaries for the specific platform and manually handling any errors that arise during that process.