# Bug OP-2539 - can't view remote svn repositories

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-2539

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 5.0.8 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Oliver Günther |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

Hi,

my system:

  - packaged installation
  - OpenProject 5.0.7-1449905784.a33b195.jessie
  - DB: Postgres

When I add a remote SVN repository to a project and then try to view it, I get the following error message:

``` 
 An error occurred when trying to access the repository: You're not authorized to access the repository or the credentials are invalid.
```

I could verify that the remote credentials are correct. When setting the loglevel to debug I can only see the following messages (I can’t see a reason given):

    D, [2015-12-14T13:32:35.832830 #2937] DEBUG -- :   Repository Load (0.8ms)  SELECT  "repositories".* FROM "repositories" WHERE "repositories"."project_id" = $1 LIMIT 1  [["project_id", 9]]
    D, [2015-12-14T13:32:35.836079 #2937] DEBUG -- : Shelling out: `svn info --xml https://svn.example.de/example/ --username xxxx --password xxxx --no-auth-cache --non-interactive`
    I, [2015-12-14T13:32:35.951267 #2937]  INFO -- :   Rendered common/_error_base.html.erb (0.5ms)
    I, [2015-12-14T13:32:35.952455 #2937]  INFO -- :   Rendered common/error.html.erb within layouts/base (3.5ms)

when I run the command mentioned at “Shelling out” (with the real URL and credentials) I get a valid XML snippet with a valid authorization. The password contains a special character that could be interpreted by the shell, so I thought that may be the reason but when I run the mentioned command, the shell doesn’t bother.

Where else could I look for the culprit?

As additional info: I didn’t set the default path (`/var/db/openproject/svn`) for SVN-Repos but rather `/var/lib/openproject/svn`, but the permissons there are looking fine:

    ls -l /var/lib/openproject/
    
    drwxr-xr-x 3 openproject openproject 4096 Nov  9 22:43 files
    drwxrws--- 2 openproject www-data    4096 Dez 14 12:20 git
    drwxrws--- 3 openproject www-data    4096 Dez 14 12:59 svn

Regards,  
Dan
