Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message bundle registration #116

Open
laurentvdl opened this issue Jul 16, 2015 · 5 comments
Open

message bundle registration #116

laurentvdl opened this issue Jul 16, 2015 · 5 comments

Comments

@laurentvdl
Copy link
Contributor

The message bundle registration added in 1.3 is very unreliable when using solr.

The MessagServiceImpl uses search to locate the properties files, meaning the files cannot be found at the time of registration unless they already existed.

@thijslemmens
Copy link
Contributor

Where does it use search exactly?

@thijslemmens
Copy link
Contributor

RepositoryLocation repositoryLocation = new RepositoryLocation(rootNodeRef.getStoreRef(), path, RepositoryLocation.LANGUAGE_PATH);

This is it, I guess.
But what is the difference exactly when uploading manually in the repo?

@laurentvdl
Copy link
Contributor Author

The eager initialisation causes the problem: if it is called before the property files are indexed, the files are never loaded:

String message = messageService.getMessage("cm_contentmodel.property.cm_name.title", Locale.US);

(only an issue the very first time you deploy a file, like in a production deployment)

@thijslemmens
Copy link
Contributor

That probably explains why we it only sometimes worked. To me it is an Alfresco issue, because with bad timing, you also have this without DE.

Restarting should help in this case. (but that is against the DE philosophy)

@laurentvdl
Copy link
Contributor Author

Deploying twice also fixes the issue, but ...

I remember the eager loading was also a workaround for another Alfresco bug. (no transaction in scope)

To verify if that workaround is still required from Alfresco >= 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants