Username missing from localhost_access_log for SVN

Issue #906 new
croniser
created an issue

The username is missing from the tomcat log file. The following was added to the server.xml <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %{principal}r %t &quot;%r&quot; %s %b" />

The only time that the username was add was if the user was browsing through the repository using a web browser. All svn client connections are missing the username. Here is a small sample of what is being observed.

10.1.1.2- - - [21/Mar/2017:23:58:00 +0000] "OPTIONS /scm/svn/project/trunk HTTP/1.1" 401 1038 10.1.1.2- - - [21/Mar/2017:23:58:00 +0000] "OPTIONS /scm/svn/project/trunk HTTP/1.1" 200 197 10.1.1.2- - - [21/Mar/2017:23:58:00 +0000] "PROPFIND /scm/svn/project/trunk HTTP/1.1" 207 699 10.1.1.2- - - [21/Mar/2017:23:58:00 +0000] "PROPFIND /scm/svn/project/trunk HTTP/1.1" 207 699 10.10.10.10- - - [21/Mar/2017:23:56:43 +0000] "GET / HTTP/1.1" 200 11458

Using a web browser the following is observed:

10.2.2.2- - username [21/Mar/2017:23:55:35 +0000] "GET /scm/api/rest/activity.json?_dc=1490140546551&groupBy=repository-id&groupDir=AES HTTP/1.1" 200 11194

Comments (1)

  1. croniser reporter

    Additional information from the tomcat catalina.out

    2017-04-04 20:54:18.255 [https-jsse-nio-8443-exec-8] WARN sonia.scm.authormapping.MappingPreProcessor - person object has no name 2017-04-04 20:54:18.255 [https-jsse-nio-8443-exec-8] WARN sonia.scm.svnuser.SvnUserChangesetPreProcessor - person object of changeset 0 has no name 2017-04-04 20:54:18.341 [https-jsse-nio-8443-exec-8] WARN sonia.scm.authormapping.MappingPreProcessor - person object has no name 2017-04-04 20:54:18.341 [https-jsse-nio-8443-exec-8] WARN sonia.scm.svnuser.SvnUserChangesetPreProcessor - person object of changeset 0 has no name

  2. Log in to comment