Thanks again.
I already tried what's in the technical manual.
I typed
INSERT INTO "User" ("Status", "Username", "IdClass", "Password", "Description") VALUES ('A',
'admin', '"User"', 'DqdKW32Mlms=', 'Administrator');
Command succeded
Then I typed the second one
INSERT INTO "Role" ("Status", "IdClass", "Administrator", "Description") VALUES ('A', '"Role"', true,
'SuperUser');
Command fails because of this :
2013-05-06 16:37:05 CEST ERREUR: une valeur NULL
viole la contrainte NOT NULL de la colonne « Code »
I went in my phppgadmin to look at the tables and I saw that the Code column is set not to be null so the command written in the tech manual has to fail.
The third command works but since there is no Role inserted the mapping is useless.
I tried to cheat with the second command with this trick just to see if it worked
(in bold is what I added)
INSERT
INTO "Role" ("Status", "IdClass", "Code",
"Administrator", "Description") VALUES ('A',
'"Role"', ‘"test"’, true,'SuperUser');
Command succeeds but I dont really know what Code stands for in the cmdbuild terminology.
The I retype the third command it succeeds as well I have 1 record in the User table, in the Role Table and in the Map_UserRole table but there is still the group issue. So I guess the mapping was not accurate. What I dont understand is why the Code value in Role has to be not null when it is not an obligation in every other table. It seems not to be normal since I guess people who wrote the doc would'nt have typed wrong commands with a fail result in the documentation.
I have a snapshot of my vm before all the SQL commands, i can revert to it but the role table has the same issue in that snapshot.
Thx for your help
JL
Previously Tecnoteca wrote:
The user has no associated groups and this means, in CMDBuild terminology, that the user you are using miss at least one relation with a "Role". Could you refer to the
technical manual for the creation of the role and its association with the already created user (see the manual installation section).
Best regards.
-- Davide Pavan