Issue
As an administrator, if I start up a clean DXP bundle, my users are not available in Control Panel.
Reproduction steps:
1) Startup a vanilla DXP. Make sure to have at least one (admin) user available on startup, like 'Test Test'.
2) Log in as admin with this user
3) At section Product Menu/Control Panel/Users/Users and Organizations, check existing users
Current behavior:
There are no users listed, including the current (otherwise logged-in) admin user.
Expectation:
I would expect to list all users right at step 3) even before reindexing.
Environment
- Liferay DXP 7.0
- Liferay DXP 7.1
- Liferay DXP 7.2
Resolution
There is a portal property index.on.startup=false set out-of-the-box on DXP, therefore data is not reindexed on startup at all, also including the very first startup:
#
# Set this to true if you want to index your entire library of files on
# startup. This property is available so that automated test environments
# index on startup. Do not set this to true on production systems or else
# your index will be indexed on every startup.
#
# Env: LIFERAY_INDEX_PERIOD_ON_PERIOD_STARTUP
#
index.on.startup=false
Although, if the property is set with value true, the users are indexed and visible right at the initial startup.
However, please note the followings from the description of the property:
Do not set this to true on production systems or else your index will be indexed on every startup.
Please apply this setting with caution.