Bug 876427 - CopyTrans REST service returns 404 for docs in sub directories
Summary: CopyTrans REST service returns 404 for docs in sub directories
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-Logic
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2.0
Assignee: Carlos Munoz
QA Contact: Alex Eng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-14 04:51 UTC by Carlos Munoz
Modified: 2013-02-26 03:46 UTC (History)
3 users (show)

Fixed In Version: Zanata version 2.0.3-SNAPSHOT (20121128-1124)
Doc Type: Bug Fix
Doc Text:
Cause: Incorrect Rest service mappings for copy trans REST endpoint. Consequence: Invocation of copy trans for documents with slashes (/) in their doc ids fails with a 404 Not found error. Fix: Change the mapping to allow for slashes when invoking the copy trans service. Result: Copy trans can now be invoked via REST for documents with slashes in their paths.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-02-26 03:46:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Carlos Munoz 2012-11-14 04:51:14 UTC
Description of problem:
Copy Trans fails when running from the maven client and the source files are contained in sub directories.


Version-Release number of selected component (if applicable):
2.0.2

How reproducible:
Always

Steps to Reproduce:
1. Push source files that are contained in sub directories with the maven client. Be sure to use the -Dzanata.copyTrans option.
2. Make sure the source push does not fail.
  
Actual results:
Copy Trans fails for the first document and the maven client is aborted.

Expected results:
Copy Trans should complete and continue pushing until it completes all documents.

Comment 2 Alex Eng 2012-11-28 02:44:00 UTC
Verified in Zanata version 2.0.3-SNAPSHOT (20121128-1124)


Note You need to log in before you can comment on or make changes to this bug.