Description of problem: Projects made obsolete will be searched via the Project Search field, but cannot be viewed (javax.el.ELException: javax.persistence.EntityNotFoundException) Version-Release number of selected component (if applicable): 3.3.0 RC1 How reproducible: Easy always Steps to Reproduce: 1. Sign in as admin, click Projects, Create Project 2. Fill in whatever for the fields, set project status to OBSOLETE, click Save 3. Enter a few characters of the project name into the Search Projects field 4. Click the project when it appears Actual results: We're sorry Record not found Expected results: Obsolete projects should be accessible, at least by admin. Additional info: It previously was allowed to search for all projects, including Obsolete ones. If this is not _supposed_ to be the case, then the Search Projects field should not show Obsolete projects.
That might explain a stack trace we sometimes get in the production logs.
It appears this only happens for non-admin users - if this is intended behaviour (i.e. users cannot view obsolete projects) then it should simply not allow clicking of the link, searching of the project or just display the project page with the title and description and an OBSOLETE label - not break and force them to backtrack.
Firstly, non-admin users should not be seeing obsolete projects in search results. Secondly, if a non-admin somehow reaches the page for an obsolete project, he or she should get a 404 because the project has been 'deleted'. (That's a bit weird, because a logged-in admin won't get a 404. So it might be more standard to return a 401. But let's not get into that right now.)
This was caused by trying to filter by non-existent fields in the lucene index. Added the fields to the index, and made sure the application is providing the right values in the lucene query. See: https://github.com/zanata/zanata-server/pull/357
Verified at 6d62fa3ad5db48d5c3ad3b9927f84bf306f3cdc6
Closing VERIFIED bugs for Zanata server 3.3.2.