[ 
https://issues.apache.org/jira/browse/SYNCOPE-1849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17909039#comment-17909039
 ] 

Francesco Chicchiriccò commented on SYNCOPE-1849:
-------------------------------------------------

As a workaround for 3.0.10, create a file under 
{{core/src/main/resources/git.properties}} in the local project, with the 
following content:

{code:java}
git.branch=82c2f77f62e8ee08aef9f589bd51249b7e40c643
git.build.version=3.0.10
git.closest.tag.commit.count=0
git.closest.tag.name=syncope-3.0.10
git.commit.author.time=2024-12-27T07\:51\:53+0000
git.commit.committer.time=2024-12-27T07\:51\:53+0000
git.commit.id=82c2f77f62e8ee08aef9f589bd51249b7e40c643
git.commit.id.abbrev=82c2f77f
git.commit.id.describe=syncope-3.0.10
git.commit.id.describe-short=syncope-3.0.10
git.commit.message.full=prepare release syncope-3.0.10
git.commit.message.short=prepare release syncope-3.0.10
git.commit.time=2024-12-27T07\:51\:53+0000
git.dirty=false
git.local.branch.ahead=NO_REMOTE
git.local.branch.behind=NO_REMOTE
git.remote.origin.url=https\://gitbox.apache.org/repos/asf/syncope.git
git.tag=
{code}

> NullPointerException when logging into Console
> ----------------------------------------------
>
>                 Key: SYNCOPE-1849
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1849
>             Project: Syncope
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 3.0.10, 4.0.0-M0
>            Reporter: Francesco Chicchiriccò
>            Assignee: Francesco Chicchiriccò
>            Priority: Major
>             Fix For: 3.0.11, 4.0.0
>
>
> It seems that the {{git-commit-id-plugin}} has slightly changed the way how 
> the {{git.properties}} file is generated on git tags.
> As a result, the client library, when reading such information via Spring 
> Boot's actuator upon Console login, throws the following exception, which is 
> not allowing the login to complete successfully.
> {code:java}
> 09:30:31.870 ERROR org.apache.syncope.client.console.SyncopeConsoleSession - 
> Authentication failed
> java.lang.NullPointerException: null
>         at 
> org.apache.syncope.client.lib.SyncopeAnonymousClient.gitAndBuildInfo(SyncopeAnonymousClient.java:77)
>  ~[syncope-client-idrepo-lib-3.0.10.jar:3.0.10]
>         at 
> org.apache.syncope.client.console.SyncopeConsoleSession.refreshAuth(SyncopeConsoleSession.java:373)
>  ~[syncope-client-idrepo-console-3.0.10.jar:3.0.10]
>         at 
> org.apache.syncope.client.console.SyncopeConsoleSession.authenticate(SyncopeConsoleSession.java:225)
>  ~[syncope-client-idrepo-console-3.0.10.jar:3.0.10]
>         at 
> org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:66)
>  ~[wicket-auth-roles-9.19.0.jar:9.19.0]
>         at 
> org.apache.syncope.client.console.pages.Login.authenticate(Login.java:77) 
> ~[syncope-client-idrepo-console-3.0.10.jar:3.0.10]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to