Discussion:
[code cleaning] Empty default dataset in trunk
Maât
2008-10-26 11:04:10 UTC
Permalink
Hi,

It seems that the fact that freshly installed trunk showning only home,
about and logout is normal as the tables phpgw_locations is not filled
and phpgw_acl only filled with 3 lines with acl_rights = 1 and
location_id = 0

If my investigations were correct it seems that these default values are
inserted at install time by phpgwapi/setup/test_data.inc.php

In can put inserts there but the question is : what are the datas
required to start ( iow login as an administrator and see at least admin
and preferences)

regards,
Maât
Sigurd Nes
2008-10-26 17:39:07 UTC
Permalink
Post by Maât
Hi,
It seems that the fact that freshly installed trunk showning only home,
about and logout is normal as the tables phpgw_locations is not filled
and phpgw_acl only filled with 3 lines with acl_rights = 1 and
location_id = 0
If my investigations were correct it seems that these default values are
inserted at install time by phpgwapi/setup/test_data.inc.php
In can put inserts there but the question is : what are the datas
required to start ( iow login as an administrator and see at least admin
and preferences)
I think location_id=0 is an error (no such location).
It should look something like this:

phpgw_acl:
acl_account;acl_rights;acl_grantor;acl_type;location_id
1000;1;-1;0;3
1001;1;-1;0;2
1002;1;-1;0;2
1002;1;-1;0;3

phpgw_locations:
location_id;app_id;name
1;1;"run"
2;2;"run"
3;3;"run"

phpgw_applications:
app_id;app_name
1;"phpgwapi"
2;"admin"
3;"preferences"

phpgw_accounts:
account_id;account_lid;account_type
1000;"default";g
1001;"admin";g
1002;"sysadmin";u

Regards

Sigurd
Maât
2008-10-26 19:22:34 UTC
Permalink
Post by Sigurd Nes
Post by Maât
Hi,
It seems that the fact that freshly installed trunk showning only home,
about and logout is normal as the tables phpgw_locations is not filled
and phpgw_acl only filled with 3 lines with acl_rights = 1 and
location_id = 0
If my investigations were correct it seems that these default values are
inserted at install time by phpgwapi/setup/test_data.inc.php
In can put inserts there but the question is : what are the datas
required to start ( iow login as an administrator and see at least admin
and preferences)
I think location_id=0 is an error (no such location).
acl_account;acl_rights;acl_grantor;acl_type;location_id
1000;1;-1;0;3
1001;1;-1;0;2
1002;1;-1;0;2
1002;1;-1;0;3
location_id;app_id;name
1;1;"run"
2;2;"run"
3;3;"run"
Ha very nice !

I filled the tables manually and now i can see Preferences and Admin now :))

(though i have a big "access denied" for everything inside them)

regards
Maât
2008-10-26 19:53:24 UTC
Permalink
Post by Maât
Post by Sigurd Nes
Post by Maât
Hi,
It seems that the fact that freshly installed trunk showning only home,
about and logout is normal as the tables phpgw_locations is not filled
and phpgw_acl only filled with 3 lines with acl_rights = 1 and
location_id = 0
If my investigations were correct it seems that these default values are
inserted at install time by phpgwapi/setup/test_data.inc.php
In can put inserts there but the question is : what are the datas
required to start ( iow login as an administrator and see at least admin
and preferences)
I think location_id=0 is an error (no such location).
acl_account;acl_rights;acl_grantor;acl_type;location_id
1000;1;-1;0;3
1001;1;-1;0;2
1002;1;-1;0;2
1002;1;-1;0;3
location_id;app_id;name
1;1;"run"
2;2;"run"
3;3;"run"
Ha very nice !
I filled the tables manually and now i can see Preferences and Admin now :))
(though i have a big "access denied" for everything inside them)
regards
the access_denied is due to $this->_data[$this->_account_id] line 482 in
class.acl.inc.php not being an array but something else looking like an
encoded string.

i'll investigate deeper but for now i'm going to bed

regards

Loading...