Bug 718648

Summary: RFE: Forged URL handling: Zanata should display "locale is disabled" when visiting disabled locale.
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-LogicAssignee: Alex Eng <aeng>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aeng, sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: 2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.8.0-SNAPSHOT (20121010-0855) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-07 06:18:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ding-Yi Chen 2011-07-04 06:50:42 UTC
Description of problem:

Zanata still allows visiting disabled locale with forged URL.
For example, if locale ja is disable from project AboutFedora,
the document list is still shown without error, 
and message list displays:  "An unknown error occurred".

The expected behavior are: Persistent (won't timeout) Error message "locale is disabled" should be shown in both case.

  

Version-Release number of selected component (if applicable):
1.4-SNAPSHOT (20110704-0602)


How reproducible:
Always


Steps to Reproduce:
1. Assume Project AboutFedora is pushed to Zanata
2. Disable locale ja
3. Visit http://zanataServer.com/zanata-test/webtrans/Application.html?project=AboutFedora&iteration=f11&localeId=ja&locale=en

  
Actual results:
Document list is still reachable without error,
and message list shows "An unknown error occurred"

Expected results:
"Locale is disable" should be shown in both document list and message list.


Additional info:

Comment 1 Sean Flanigan 2011-09-07 04:32:49 UTC
Assigning to Scrum product owner for prioritisation.

Comment 2 Alex Eng 2012-10-03 04:44:26 UTC
Implemented in version 2.0.
See https://github.com/zanata/zanata/commit/881fc6897636fa5b57bed809bdff4e072b90d6c8

Comment 3 Ding-Yi Chen 2012-10-10 03:57:47 UTC
VERIFIED with Zanata version 1.8.0-SNAPSHOT (20121010-0855)

Comment 4 Sean Flanigan 2012-11-07 06:18:20 UTC
Fix released in Zanata 2.0.