Talent-Catalog / talentcatalog

https://tctalent.org
GNU Affero General Public License v3.0
9 stars 4 forks source link

Error accessing unknown fields on JPA entity during active session #966

Open EhsanEhrari opened 1 month ago

EhsanEhrari commented 1 month ago

When attempting to create a new user without selecting a partner from the dropdown menu, the system throws an error message:

**org.tctalent.server.util.dto.DtoBuilderException: Error while accessing property 'firstName' on User$HibernateProxy$9fd3g8HE** Additionally, even though the error occurs, the user is still registered in the database. Upon further investigation, I found that after selecting a partner, the system does not allow the creation of the user as it already exists in the database due to the incomplete creation process.

Steps to Reproduce:

  1. Log in as a System Admin.
  2. Navigate to the User Creation page.
  3. Attempt to create a new user without selecting a partner from the dropdown menu.
  4. Observe the error message mentioned above.
  5. Note that despite the error, the user is still registered in the database.
  6. Try to complete the user creation process by selecting a partner, and observe that the system does not allow the creation due to existing user data in the database.
image.png
EhsanEhrari commented 1 month ago

Proposed Solutions: