r530 patch for New User creation exception

5 views
Skip to first unread message

Iade Gesso

unread,
Dec 27, 2010, 11:34:20 AM12/27/10
to openid-server-dev
Hi all.
I'm an Italian Java programmer and while I was setting up my openid-
server installation, I've found a bug during the process of creation
of a new Persona. So, the problem is that the constructor of the
Persona class that uses an User class instance does not initialize the
attributes.

I hope this patch can be merged to the official svn branch.

Best regards

Iade Gesso
http://www.iadegesso.netsons.org

Here below the only change to fix this bug (edit Persona.java in ./
jos-1.2.1/jos-domain/src/main/java/cn/net/openid/jos/domain at line
147):

From:

/**
* Construct a persona for the user.
*
* @param user
* the owner of the persona
*/
public Persona(final User user) {
this.user = user;
}

To:

/**
* Construct a persona for the user.
*
* @param user
* the owner of the persona
*/
public Persona(final User user) {
this.user = user;
this.attributes = new HashSet<Attribute>();
}

Sutra Zhou

unread,
Dec 27, 2010, 11:45:47 AM12/27/10
to openid-s...@googlegroups.com
This problem has been fixed in issue 24, thanks anyway.

> --
> You received this message because you are subscribed to the Google Groups "openid-server-dev" group.
> To post to this group, send email to openid-s...@googlegroups.com.
> To unsubscribe from this group, send email to openid-server-...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/openid-server-dev?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages