cancel
Showing results for 
Search instead for 
Did you mean: 

RC2 - 2 bugs one on modiy user / one on creating new user

crtx
Champ in-the-making
Champ in-the-making
Using RC2 Tomcat bundle on Fedora Core 3.

Error on creating new user :

The default workspace is not saved.

Error on modify existing user :

Failed to create Person due to error: Cyclic parent-child relationship detected: current node: workspace://SpacesStore/a82ddd33-46f9-11da-8016-c368cdd696f7 current path: {http://www.alfresco.org/model/content/1.0}Projet_x0020_Test/{http://www.alfresco.org/model/applicati... next assoc: ChildAssoc[ parent=workspace://SpacesStore/ad4cad59-46fb-11da-a4b8-a79ea5f5f791, child=workspace://SpacesStore/a82ddd33-46f9-11da-8016-c368cdd696f7, name={http://www.alfresco.org/model/application/1.0}company_home, isPrimary=true]

Issues ?

Thanks for your time and product.
11 REPLIES 11

kevinr
Star Contributor
Star Contributor
Hello,

Sorry I am unable to reproduce the bugs you mention using a default install. Did you make any changes from the default that will help us track down the issue?

Thanks,

Kevin

crtx
Champ in-the-making
Champ in-the-making
No standard installation.
Only one configuration file was be changed : "file-servers.xml" to resolve domain problem on CIFS Server.

<host name="${localname}_H" domain="MACHINE_NAME"/>

My environment :

Tomcat RC2 Linux Bundle
Java Standard Edition build 1.5.0_04-b05
Fedora Core 3
mySQL 3.23.58-16
Kernel 2.6.9-1.667

crtx
Champ in-the-making
Champ in-the-making
Same problem on 1.0 …

Pleaze Help !!!

kevinr
Star Contributor
Star Contributor
Same problem on 1.0 …

Pleaze Help !!!

I've talked to a few guys here about the problem. Did you clean your database between a preview release and RC2/1.0? I'm asking because it looks like an out-of-date database issue.

Thanks,

Kevin

crtx
Champ in-the-making
Champ in-the-making
Yes, drop database before install 1.0

The exception in catalina.out :

10:47:42,112 ERROR [ui.common.Utils] Failed to create Person due to error: Cyclic parent-child relationship detected:
   current node: workspace://SpacesStore/c84bc9fe-5685-11da-ad90-f90e3b98ceff
   current path: {http://www.alfresco.org/model/application/1.0}dictionary/{http://www.alfresco.org/model/application/...
   next assoc: ChildAssoc[ parent=workspace://SpacesStore/c8500fbf-5685-11da-ad90-f90e3b98ceff, child=workspace://SpacesStore/c84bc9fe-5685-11da-ad90-f90e3b98ceff, name={http://www.alfresco.org/model/application/1.0}company_home, isPrimary=true]
org.alfresco.service.cmr.repository.CyclicChildRelationshipException: Cyclic parent-child relationship detected:
   current node: workspace://SpacesStore/c84bc9fe-5685-11da-ad90-f90e3b98ceff
   current path: {http://www.alfresco.org/model/application/1.0}dictionary/{http://www.alfresco.org/model/application/...
   next assoc: ChildAssoc[ parent=workspace://SpacesStore/c8500fbf-5685-11da-ad90-f90e3b98ceff, child=workspace://SpacesStore/c84bc9fe-5685-11da-ad90-f90e3b98ceff, name={http://www.alfresco.org/model/application/1.0}company_home, isPrimary=true]
        at org.alfresco.repo.node.db.DbNodeServiceImpl.prependPaths(DbNodeServiceImpl.java:1119)

lgr
Champ in-the-making
Champ in-the-making
I confirm, i've the same problem. This was a clean install on a new host, with a clean new database.

See my other post about bug when creating users (v1/tomcat/linux), is there a relationship with the root user space modification ?

Laurent.

Cyclic parent-child relationship detected: current node: workspace://SpacesStore/34f8b891-4c79-11da-9112-c51dfd20e189 current path: {http://www.alfresco.org/model/content/1.0}Utilisateurs/{http://www.alfresco.org/model/content/1.0}LA... next assoc: ChildAssoc[ parent=workspace://SpacesStore/2f7b67c2-4cbc-11da-acc6-934551696d0c, child=workspace://SpacesStore/34f8b891-4c79-11da-9112-c51dfd20e189, name={http://www.alfresco.org/model/application/1.0}company_home, isPrimary=true]

kevinr
Star Contributor
Star Contributor
Hello,

Obviously more than one person is having this problem so i'm taking a look at it today.

I have a fresh install of 1.0 on Linux Fedora Core 4.

Creating new users, and changing there home spaces works fine when i enter the name of the space in the field, but I think we have found the issue. It seems to occur when you select an existing space as the home (which doesn't get set) and then try to edit the user and apply the home space again - that seems to cause the cyclic link error to occur.

I have also found another small bug, where if edit an existing user, and change the delete the home space name from the field and submit the form, then the home space for the user is renamed as empty string "". But I don't think that is related to the problem you are having.

See my other post about bug when creating users (v1/tomcat/linux), is there a relationship with the root user space modification ?
So looking at the error, have you changed the location of the Company Home root space on your installation at all? Just wanted be sure I've got the exact steps.

See my other post about bug when creating users (v1/tomcat/linux), is there a relationship with the root user space modification ?
I think there may be, I have replied to that post also.

http://www.alfresco.org/jira/browse/AWC-352

I will look at all these issues today.

Thanks,

Kevin

kevinr
Star Contributor
Star Contributor
I have fixed this and the other Home Space creation/setting bugs you/others have mentioned. The code will be available in the next nightly build and the next offical release.

FYI… if you want to patch an existing build (including Enterprise) from the next nightly  build source, then you only need to patch in the following class to get these fixes:
org.alfresco.web.bean.wizard.NewUserWizard

Thanks,

Kevin

lgr
Champ in-the-making
Champ in-the-making
Hi Kevin,

Hello,
Creating new users, and changing there home spaces works fine when i enter the name of the space in the field, but I think we have found the issue. It seems to occur when you select an existing space as the home (which doesn't get set) and then try to edit the user and apply the home space again - that seems to cause the cyclic link error to occur.

I've understand where is the mismatch. It is more UI related.
When i select the home space location with the small widget, i select the real home space (for example "root space/users/MyUser"), then an error occurs, whatever text is written in the text field.
But, when i select the home space location with the small widget and make it point to the space just below the real one (for example "root space/users"), and enter the end user home space in the text field (for example "MyUser"), everything works well …

I have also found another small bug, where if edit an existing user, and change the delete the home space name from the field and submit the form, then the home space for the user is renamed as empty string "". But I don't think that is related to the problem you are having.

You're right.

So looking at the error, have you changed the location of the Company Home root space on your installation at all? Just wanted be sure I've got the exact steps.

And i've also renamed the company home space name in webclient.properties and added a language in web-client-config.xml, but i don't think it should interfere with new user creation.

Best regards,

Laurent.