Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[File Connector] No error message is provided when a file is tried to copy to a non existing destination #1444

Open
isuruuy429 opened this issue Apr 23, 2020 · 0 comments

Comments

@isuruuy429
Copy link
Contributor

Description:
It does not provide any error message and returns success=true when it provides a non-existing destination to file copy operation.

Steps to reproduce:

  1. Create the following API in Integration Studio and deploy it in wso2mi-1.1.0.
<?xml version="1.0" encoding="UTF-8"?>
<api context="/connect" name="Connect" xmlns="http://ws.apache.org/ns/synapse">
   <resource methods="POST" uri-template="/copy">
        <inSequence>
            <property expression="json-eval($.source)" name="source" scope="default" type="STRING"/>
            <property expression="json-eval($.destination)" name="destination" scope="default" type="STRING"/>
            <fileconnector.copy>
                <source>{$ctx:source}</source>
                <destination>{$ctx:destination}</destination>
            </fileconnector.copy>
            <respond/>
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </resource>
</api>
  1. In the payload provide a valid source file and invalid location to be copied.
  2. Invoke the API.

Expected: It should provide an error message as 'The destination location does not exist', and it should return success=false.
Actual: It does not provide any error and returns 'success=true' as the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant