jenkinsci / jenkinsci/subversion-plugin

[JENKINS-47862] subversion plugin combines domain name and user name as user ID

Open
#1,443 0 comments 0 reactions 0 assignees View on GitHub
component:subversion-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
131
Forks
275
Avg merge
12h 4m
Merged PRs (30d)
6

Description

When you want to have jenkins email the last committer that he broke the build, with Active Directory. it can not resolve the correct user from the SVN author.

The subversion resolved the user ID as . While jenkins resolves the user of the same active directory as user ID .

see here the user info:

SVN commiter resolved user:  

{"_class":"hudson.model.User","absoluteUrl":"http://jenkins.-------.nl/user/ebmpapst-hs_kz",

"description":"",

"fullName":"Kay -------",

"id":"ebmpapst-hs_kz",

"property":[

{"_class":"jenkins.security.ApiTokenProperty"},

{"_class":"com.cloudbees.plugins.credentials.UserCredentialsProvider$UserCredentialsProperty"},

{"_class":"hudson.tasks.Mailer$UserProperty","address":"kay---@--.nl"},

{"_class":"hudson.plugins.emailext.watching.EmailExtWatchAction$UserProperty","triggers":[]},

{"_class":"hudson.model.MyViewsProperty"},

{"_class":"org.jenkinsci.plugins.displayurlapi.user.PreferredProviderUserProperty"},

{"_class":"hudson.model.PaneStatusProperties"},

{"_class":"org.jenkinsci.main.modules.cli.auth.ssh.UserPropertyImpl"},

{"_class":"hudson.search.UserSearchProperty","insensitiveSearch":true}

]}

 

jenkins acitve directory resolved user:

{"_class":"hudson.model.User","absoluteUrl":"http://jenkins.-------.nl/user/kz",

"description":null,

"fullName":"Kay -------",

"id":"kz",

"property":[

{"_class":"jenkins.security.ApiTokenProperty"},

{"_class":"com.cloudbees.plugins.credentials.UserCredentialsProvider$UserCredentialsProperty"},

{"_class":"hudson.tasks.Mailer$UserProperty","address":"kay---@--.nl"},

{"_class":"hudson.plugins.emailext.watching.EmailExtWatchAction$UserProperty","triggers":[]},

{"_class":"hudson.model.MyViewsProperty"},

{"_class":"org.jenkinsci.plugins.displayurlapi.user.PreferredProviderUserProperty"}

{"_class":"hudson.model.PaneStatusProperties"},

{"_class":"jenkins.security.LastGrantedAuthoritiesProperty"},

{"_class":"hudson.search.UserSearchProperty","insensitiveSearch":false},

]}

 

 

---
Originally reported by kvdzander, imported from: subversion plugin combines domain name and user name as user ID


  • status: Open
  • priority: Major
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251212-090250

Raw content of original issue

When you want to have jenkins email the last committer that he broke the build, with Active Directory. it can not resolve the correct user from the SVN author.

The subversion resolved the user ID as <domain-name_username>. While jenkins resolves the user of the same active directory as user ID <username>.

see here the user info:

SVN commiter resolved user:  

{"_class":"hudson.model.User","absoluteUrl":"http://jenkins.-------.nl/user/ebmpapst-hs_kz",
"description":"",
"fullName":"Kay -------",
"id":"ebmpapst-hs_kz",
"property":[
{"_class":"jenkins.security.ApiTokenProperty"},
{"_class":"com.cloudbees.plugins.credentials.UserCredentialsProvider$UserCredentialsProperty"},
{"_class":"hudson.tasks.Mailer$UserProperty","address":"kay---@--.nl"},
{"_class":"hudson.plugins.emailext.watching.EmailExtWatchAction$UserProperty","triggers":[]},
{"_class":"hudson.model.MyViewsProperty"},
{"_class":"org.jenkinsci.plugins.displayurlapi.user.PreferredProviderUserProperty"},
{"_class":"hudson.model.PaneStatusProperties"},
{"_class":"org.jenkinsci.main.modules.cli.auth.ssh.UserPropertyImpl"},
{"_class":"hudson.search.UserSearchProperty","insensitiveSearch":true}
]}

 

jenkins acitve directory resolved user:

{"_class":"hudson.model.User","absoluteUrl":"http://jenkins.-------.nl/user/kz",
"description":null,
"fullName":"Kay -------",
"id":"kz",
"property":[
{"_class":"jenkins.security.ApiTokenProperty"},
{"_class":"com.cloudbees.plugins.credentials.UserCredentialsProvider$UserCredentialsProperty"},
{"_class":"hudson.tasks.Mailer$UserProperty","address":"kay---@--.nl"},
{"_class":"hudson.plugins.emailext.watching.EmailExtWatchAction$UserProperty","triggers":[]},
{"_class":"hudson.model.MyViewsProperty"},
{"_class":"org.jenkinsci.plugins.displayurlapi.user.PreferredProviderUserProperty"}
{"_class":"hudson.model.PaneStatusProperties"},
{"_class":"jenkins.security.LastGrantedAuthoritiesProperty"},
{"_class":"hudson.search.UserSearchProperty","insensitiveSearch":false},
]}

 

 

environment

```
awt.toolkit sun.awt.windows.WToolkit

executable-war C:\Program Files (x86)\Jenkins\jenkins.war

file.encoding Cp1252

file.encoding.pkg sun.io

file.separator \

hudson.lifecycle hudson.lifecycle.WindowsServiceLifecycle

java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment

java.awt.headless true

java.awt.printerjob sun.awt.windows.WPrinterJob

java.class.path C:\Program Files (x86)\Jenkins\jenkins.war

java.class.version 52.0

java.endorsed.dirs C:\Program Files (x86)\Jenkins\jre\lib\endorsed

java.ext.dirs C:\Program Files (x86)\Jenkins\jre\lib\ext;C:\Windows\Sun\Java\lib\ext

java.home C:\Program Files (x86)\Jenkins\jre

java.io.tmpdir C:\Users\KZ\AppData\Local\Temp\

java.library.path C:\Program Files (x86)\Jenkins\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Cppcheck;C:\Program Files\checkstyle;C:\Program Files\Microsoft Windows Performance Toolkit\;U:\utils;C:\Program Files (x86)\CCCC\;C:\Python27\;.

java.runtime.name Java(TM) SE Runtime Environment

java.runtime.version 1.8.0_66-b18

java.specification.name Java Platform API Specification

java.specification.vendor Oracle Corporation

java.specification.version 1.8

java.vendor Oracle Corporation

java.vendor.url http://java.oracle.com/

java.vendor.url.bug http://bugreport.sun.com/bugreport/

java.version 1.8.0_66

java.vm.info mixed mode

java.vm.name Java HotSpot(TM) Client VM

java.vm.specification.name Java Virtual Machine Specification

java.vm.specification.vendor Oracle Corporation

java.vm.specification.version 1.8

java.vm.vendor Oracle Corporation

java.vm.version 25.66-b18

jna.loaded true

jnidispatch.path C:\Users\KZ\AppData\Local\Temp\jna-2415\jna6372080944791072782.dll

line.separator

mail.smtp.sendpartial true

mail.smtps.sendpartial true

os.arch x86

os.name Windows 7

os.version 6.1

path.separator ;

sun.arch.data.model 32

sun.boot.class.path C:\Program Files (x86)\Jenkins\jre\lib\resources.jar;C:\Program Files (x86)\Jenkins\jre\lib\rt.jar;C:\Program Files (x86)\Jenkins\jre\lib\sunrsasign.jar;C:\Program Files (x86)\Jenkins\jre\lib\jsse.jar;C:\Program Files (x86)\Jenkins\jre\lib\jce.jar;C:\Program Files (x86)\Jenkins\jre\lib\charsets.jar;C:\Program Files (x86)\Jenkins\jre\lib\jfr.jar;C:\Program Files (x86)\Jenkins\jre\classes

sun.boot.library.path C:\Program Files (x86)\Jenkins\jre\bin

sun.cpu.endian little

sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

sun.desktop windows

sun.io.unicode.encoding UnicodeLittle

sun.java.command C:\Program Files (x86)\Jenkins\jenkins.war --httpPort=80

sun.java.launcher SUN_STANDARD

sun.jnu.encoding Cp1252

sun.management.compiler HotSpot Client Compiler

sun.os.patch.level Service Pack 1

svnkit.http.methods Digest,Basic,NTLM,Negotiate

svnkit.ssh2.persistent false

user.country US

user.country.format NL

user.dir C:\Program Files (x86)\Jenkins

user.home C:\Users\KZ

user.language en

user.language.format nl

user.name KZ

user.script

user.timezone Europe/Berlin

user.variant

Omgevingsvariabelen

Naam ↓

Waarde

ALLUSERSPROFILE C:\ProgramData

APPDATA C:\Users\KZ\AppData\Roaming

BASE C:\Program Files (x86)\Jenkins

CDS_LIC_FILE 5280@Tommie;5280@Grover

CommonProgramFiles C:\Program Files (x86)\Common Files

CommonProgramFiles(x86) C:\Program Files (x86)\Common Files

CommonProgramW6432 C:\Program Files\Common Files

COMPUTERNAME P471

ComSpec C:\Windows\system32\cmd.exe

FP_NO_HOST_CHECK NO

HOMEDRIVE H:

HOMEPATH \

HOMESHARE \\ebmpapst-hs.nl\UserFiles\Users\KZ

JENKINS_HOME C:\Program Files (x86)\Jenkins

LOCALAPPDATA C:\Users\KZ\AppData\Local

LOGONSERVER \\ERNIE

NUMBER_OF_PROCESSORS 2

OS Windows_NT

Path C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Cppcheck;C:\Program Files\checkstyle;C:\Program Files\Microsoft Windows Performance Toolkit\;U:\utils;C:\Program Files (x86)\CCCC\;C:\Python27\

PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

PROCESSOR_ARCHITECTURE x86

PROCESSOR_ARCHITEW6432 AMD64

PROCESSOR_IDENTIFIER Intel64 Family 6 Model 62 Stepping 4, GenuineIntel

PROCESSOR_LEVEL 6

PROCESSOR_REVISION 3e04

ProgramData C:\ProgramData

ProgramFiles C:\Program Files (x86)

ProgramFiles(x86) C:\Program Files (x86)

ProgramW6432 C:\Program Files

PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

PUBLIC C:\Users\Public

SERVICE_ID jenkins

SystemDrive C:

SystemRoot C:\Windows

TEMP C:\Users\KZ\AppData\Local\Temp

TMP C:\Users\KZ\AppData\Local\Temp

USERDNSDOMAIN EBMPAPST-HS.NL

USERDOMAIN EBMPAPST-HS

USERDOMAIN_ROAMINGPROFILE EBMPAPST-HS

USERNAME KZ

USERPROFILE C:\Users\KZ

VS100COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\

VS140COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\

windir C:\Windows

windows_tracing_flags 3

windows_tracing_logfile C:\BVTBin\Tests\installpackage\csilogfile.log

WINSW_EXECUTABLE C:\Program Files (x86)\Jenkins\jenkins.exe

WINSW_SERVICE_ID jenkins

Invoegtoepassingen

Naam ↓

Versie

Ingeschakeld

ace-editor 1.1 true

active-directory 2.6 true

analysis-core 1.92 true

ant 1.7 true

antisamy-markup-formatter 1.5 true

apache-httpcomponents-client-4-api 4.5.3-2.0 true

authentication-tokens 1.3 true

bouncycastle-api 2.16.2 true

branch-api 2.0.15 true

build-failure-analyzer 1.19.0 true

build-timeout 1.19 true

cccc 0.6 true

checkstyle 3.49 true

cloudbees-folder 6.1.2 true

cppcheck 1.21 true

credentials 2.1.16 true

credentials-binding 1.13 true

cvs 2.13 true

display-url-api 2.1.0 true

docker-commons 1.9 true

docker-workflow 1.13 true

durable-task 1.15 true

email-ext 2.61 true

external-monitor-job 1.7 true

git 3.6.3 true

git-client 2.6.0 true

git-server 1.7 true

github 1.28.1 true

github-api 1.89 true

github-branch-source 2.2.4 true

github-organization-folder 1.6 true

gradle 1.28 true

handlebars 1.1.1 true

icon-shim 2.0.3 true

jackson2-api 2.7.3 true

javadoc 1.4 true

jquery-detached 1.2.1 true

jsch 0.1.54.1 true

junit 1.21 true

ldap 1.17 true

mailer 1.20 true

mapdb-api 1.0.9.0 true

matrix-auth 1.7 true

matrix-project 1.12 true

maven-plugin 3.0 true

memory-map 2.2.0 (b6c0d) true

metrics 3.1.2.10 true

momentjs 1.1.1 true

msbuild 1.28 true

pam-auth 1.3 true

pipeline-build-step 2.5.1 true

pipeline-github-lib 1.0 true

pipeline-graph-analysis 1.5 true

pipeline-input-step 2.8 true

pipeline-milestone-step 1.3.1 true

pipeline-model-api 1.2.2 true

pipeline-model-declarative-agent 1.1.1 true

pipeline-model-definition 1.2.2 true

pipeline-model-extensions 1.2.2 true

pipeline-rest-api 2.9 true

pipeline-stage-step 2.2 true

pipeline-stage-tags-metadata 1.2.2 true

pipeline-stage-view 2.9 true

plain-credentials 1.4 true

resource-disposer 0.8 true

role-strategy 2.6.1 true

scm-api 2.2.3 true

script-security 1.34 true

ssh-credentials 1.13 true

ssh-slaves 1.22 true

structs 1.10 true

subversion 2.9 true

support-core 2.41 true

timestamper 1.8.8 true

token-macro 2.3 true

translation 1.15 true

warnings 4.63 true

windows-slaves 1.3.1 true

workflow-aggregator 2.5 true

workflow-api 2.23.1 true

workflow-basic-steps 2.6 true

workflow-cps 2.41 true

workflow-cps-global-lib 2.9 true

workflow-durable-task-step 2.16 true

workflow-job 2.11.2 true

workflow-multibranch 2.16 true

workflow-scm-step 2.5 true

workflow-step-api 2.13 true

workflow-support 2.14 true

ws-cleanup 0.34 true
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.