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>();
}