Bug 1060598
Summary: | [Regression] Obsolete projects are searchable, but not accessible (exception occurs) | ||
---|---|---|---|
Product: | [Retired] Zanata | Reporter: | Damian Jansen <djansen> |
Component: | Component-UI | Assignee: | Carlos Munoz <camunoz> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Damian Jansen <djansen> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | development | CC: | camunoz, sflaniga, zanata-bugs |
Target Milestone: | --- | ||
Target Release: | 3.3 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 3.3.0-SNAPSHOT (20140210-1007) | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-03-20 05:47:36 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Damian Jansen
2014-02-03 00:00:57 UTC
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. |