Bug 858116
Summary: | Sign in after searching on documents page causes error | ||
---|---|---|---|
Product: | [Retired] Zanata | Reporter: | David Mason <damason> |
Component: | WebSite | Assignee: | Alex Eng <aeng> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ding-Yi Chen <dchen> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.7 | CC: | aeng, sflaniga, zanata-bugs |
Target Milestone: | --- | ||
Target Release: | 2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 1.8.0-SNAPSHOT (20121009-1428) | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-11-07 06:19:17 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
David Mason
2012-09-18 02:31:07 UTC
Error does not occur in version 2.0. Apparently it does happen in 2.0 (make sure you search for a document, not for a project), but anyway here's part of the stack trace on 1.7.1: Caused by: java.lang.NullPointerException at org.zanata.action.ProjectIterationFilesAction.isDocumentUploadAllowed(ProjectIterationFilesAction.java:221) Tested with Zanata version 1.7.4-SNAPSHOT (20120927-0015) and Zanata version 1.8.0-SNAPSHOT (20120927-0027) This problem still exists. The WHOLE step to reproduce in >1.8 : 1. Sign in as a translator 2. Click Projects-> AnyProject -> AnyVersion 3. Click on the document icon in column "Documents" A document list should appear. 4. Copy the URL in address bar. 5. Sign out 6. Paste back the URL in address bar and vist the URL 7. Enter a document name to search, e.g. "kickstart2", and press Enter. Wait for page to refresh. 8. Use "Sign In" link and enter credentials Thus reassigned. Problem caused of hitting "enter" key in the document text box causes url changes which is invalid. Implemented fix by disabling "enter" key in the filtering box. See https://github.com/zanata/zanata/commit/f963a0a4bf7579b7da87619ff460ac5a8814963a VERIFIED with Zanata version 1.8.0-SNAPSHOT (20121009-1428) Fix released in Zanata 2.0. |