Details
-
Bug
-
Resolution: Won't Fix
-
Low
-
None
-
3.10.0, 3.10.2, 3.10.3, 4.1.0
-
None
-
Severity 3 - Minor
-
20
-
Description
Users may have issues when creating reviews and the following message will appear in the browser after pressing "Create Review":
Invalid project key: *, only alphanumeric and uppercase values are allowed
Problem description
The following scenario have to occur:
- Crucible (pre 3.10 version) instance
- Creating projects: proja (lower-case)
- User A viewing this project: proja
- Project: proja is deleted (bug: proja stays in users history)
- User A viewing less then 5 existing project in the whole history of Crucible: projb, projc, so now the history of visited projects for user A is: proja, projb, projc
- Crucible is upgraded to 3.10 (project keys are upgraded, renamed project keys are deleted from user history), now the project history for user A is: proja
- User A goes to Crucible and hits the Create Review button, the suggested project will be taken from project history for user A which is the non-existing, invalid project: proja
Workaround
Delete from user history all invalid projects:
delete from cru_recently_visited where cru_item_type in ('atlassian-project','atlassian-review','atlassian-snippet') and UPPER(cru_entity_id) != cru_entity_id
or delete all user history:
delete from cru_recently_visited where cru_item_type in ('atlassian-project','atlassian-review','atlassian-snippet')
or delete from user history all non-existing projects,
//todo
or ask user to visit an existing project which would change user's view project history: the last visited invalid/non-existing project to a valid existing project