[JIRA] (JENKINS-37517) Gitlab Oauth Plugin fails after login to server with groups with ldap_access set to null

2 views
Skip to first unread message

patrick@bytemark.co.uk (JIRA)

unread,
Aug 18, 2016, 10:19:01 AM8/18/16
to jenkinsc...@googlegroups.com
Patrick Cherry created an issue
 
Jenkins / Bug JENKINS-37517
Gitlab Oauth Plugin fails after login to server with groups with ldap_access set to null
Issue Type: Bug Bug
Assignee: Mohamed El Habib
Components: gitlab-oauth-plugin
Created: 2016/Aug/18 2:18 PM
Priority: Major Major
Reporter: Patrick Cherry

Our gitlab install returns groups with ldap_access and ldap_cn set to null, which trips up the oath plugin, and causes logins to fail completely.

Caused by: com.fasterxml.jackson.databind.JsonMappingException: N/A (through reference chain: Object[][0]->org.gitlab.api.models.GitlabGroup["ldap_access"])
        at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:567)
        at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:551)
        at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:99)
        at com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.findDeserializeAndSet(BeanPropertyMap.java:285)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:248)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:136)
        at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:156)
        at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:17)
        at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3562)
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2578)
        at org.gitlab.api.http.GitlabHTTPRequestor.parse(GitlabHTTPRequestor.java:330)
        at org.gitlab.api.http.GitlabHTTPRequestor.access$200(GitlabHTTPRequestor.java:28)
        at org.gitlab.api.http.GitlabHTTPRequestor$1.fetch(GitlabHTTPRequestor.java:232)
        ... 86 more
Caused by: java.lang.NullPointerException
        at org.gitlab.api.models.GitlabGroup.setLdapAccess(GitlabGroup.java:56)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:97)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

patrick@bytemark.co.uk (JIRA)

unread,
Aug 18, 2016, 10:29:03 AM8/18/16
to jenkinsc...@googlegroups.com
Patrick Cherry updated an issue
Change By: Patrick Cherry
Environment: Jenkins 2.18
Gitlab plugin 1.3.0
Gitlab Authentication plugin 1.0.5
OpenJDK 7u111-2.6.7-1~deb7u1

scm_issue_link@java.net (JIRA)

unread,
Aug 26, 2016, 7:55:02 PM8/26/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-37517
 
Re: Gitlab Oauth Plugin fails after login to server with groups with ldap_access set to null

Code changed in jenkins
User: wzxjohn
Path:
pom.xml
http://jenkins-ci.org/commit/gitlab-oauth-plugin/3b9ee865c63fd85a7a758b30050adeda1b27d9dc
Log:
JENKINS-37517 Fix login fails because of a GitLab Api Bug
Use v1.2.6 of GitLab Api Client to fix this issue.

mohamed.el-habib+jenkins@digitas.fr (JIRA)

unread,
Aug 26, 2016, 8:17:01 PM8/26/16
to jenkinsc...@googlegroups.com
Mohamed El Habib resolved as Fixed
 

Hello,

can you please test the version 1.0.7
This is an issue into java-gitlab-api 1.0.5, I think this is fixed into 1.0.6

Thanks

Change By: Mohamed El Habib
Status: Open Resolved
Assignee: Mohamed El Habib Patrick Cherry
Resolution: Fixed

patrick@bytemark.co.uk (JIRA)

unread,
Aug 31, 2016, 5:40:02 AM8/31/16
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages