apigeecs / apigee-migrate-tool

Export/Import Org Data. Import from CSV files
MIT License
52 stars 50 forks source link

sharedFlow export/import #29

Open jackd12 opened 5 years ago

jackd12 commented 5 years ago

while tryingto export import sharedflow, i noticed sharedflow export is creating file size of 0 size and hence import gives the following error. Tried extracting the zip file of exported shared flow and that errors out as well.

"code" : "messaging.config.beans.InvalidBundle", "message" : "Bundle is invalid. Empty bundle", "contexts" : [ ]

[ sharedflows]# ls -rtl total 0 -rw-r--r-- 1 root root 0 Jun 17 12:54 LoggingPreProxyFlowHookSharedFlow.zip

[ sharedflows]# unzip LoggingPreProxyFlowHookSharedFlow.zip Archive: LoggingPreProxyFlowHookSharedFlow.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of LoggingPreProxyFlowHookSharedFlow.zip or LoggingPreProxyFlowHookSharedFlow.zip.zip, and cannot find LoggingPreProxyFlowHookSharedFlow.zip.ZIP, period.

kurtkanaskie commented 5 years ago

I've noticed this too, it's a bug, same holds for proxies when used standalone. This is a systematic bug in how async / done is being used. Basically the tool is not waiting for the response and just exits.

kurtkanaskie commented 5 years ago

Created a pull request from this repo: https://github.com/kurtkanaskie/apigee-migrate-tool Fixes for issues 16, 18, 23, 25, 26, 28 and 29.