Since the retention feature, we observed an expected behaviour in the way that Nuxeo manages the template item when a new one is added.
The Retention addon, defines a new template item to add a new document model named RetentionRules
see here this document is used to manage the retention rules.
The problem that we have is we are not able to retrieve this document (404 error). After investigation it seems that no matter which Data Base we have, if we follow certain steps, we will be able to reproduce the problem easily:
Reproduction steps
- Install Nuxeo Server
- Add WebUI
- Run nuxeoctl mp-hotfix
- Run nuxeoctl start
- Go go Nuxeo Server webUI
- Ensure that there is no error in the server logs
- Now stop you server
- Run nuxeoctl mp-install nuxeo-retention-1.0.0-SNAPSHOT: this addon will add a new template with a new item entry (see above)
Observed behavior
3. Nuxeo Server with all HF including HF25 are installed
7. A 404 error is displayed and I can't create a retention rule
Expected behavior
3. Nuxeo Server with all HF including HF25 are installed
7. The retention rule creation popup is displayed and I can create a retention rule
From what we saw, the issue is not related to retention but it allows us to see the problem. The new template is handled correctly by the platform, but the new item (the document RetentionRules is not added), the reason here and the check
The code will exit if we find at least one item, this is the issue. Under H2 / Postgres starting the server before installing the retention addon, will end by creating the items entries that cames from other contributions (creation of Domain...). If we stop the server, install the retention addon and restart it. As the data is already exist in the D.B, the check will consider that the existence of Domain is enough and it will exist without adding the new one.
- causes
-
NXP-29066 Init of the ACL document root occurs many times
- Resolved
-
NXP-29048 Some Tests randomly fail on MongoDB
- Resolved
- is related to
-
NXP-29073 some test contribution are incorrectly named
- Resolved
-
NXP-32155 RootFactory structure template is invoked when Root already exists
- Open
- Is referenced in