Bug 712281

Summary: REST interface should accept TextFlowTargets in any order
Product: [Retired] Zanata Reporter: Sean Flanigan <sflaniga>
Component: Component-LogicAssignee: zanata-dev-internal <zanata-dev-internal>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3CC: zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-27 01:44:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sean Flanigan 2011-06-10 06:05:22 UTC
TranslationResourcesService currently responds with "400 (Bad Request): Unexpected target: {resId}" when a TextFlowTarget is received after all TextFlows have been visited in order.  It requires all TFTs to be listed in the same order as their TFs, with no extras.  We should remove this undocumented requirement/assumption, and allow REST clients to provide TFTs in any order.

Comment 1 Ding-Yi Chen 2011-07-28 01:29:13 UTC
Can you shed any light on how to reproduce it and verify it?

Comment 2 Sean Flanigan 2011-07-28 04:10:32 UTC
It's an API change, so coding against the API is the only way to test it directly.  But I think the problem could probably be reproduced by running the python client to push PO files to an old version of Zanata server, if you hand-edit the PO files so that the messages are out of order compared to the POT.  We normally avoid this by running msgmerge, which puts the PO messages into the POT order.

Comment 3 Sean Flanigan 2012-01-27 01:44:14 UTC
Fixed in 1.4