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][moveFolder]It does not provide an error message when the destination folder does not exist. #1458

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

Comments

@isuruuy429
Copy link
Contributor

Description:
$subject and it create a new folder instead.

Steps to reproduce:

  1. Create the following API in the Integration Studio.
<?xml version="1.0" encoding="UTF-8"?>
<api context="/file" name="File" xmlns="http://ws.apache.org/ns/synapse">
<resource methods="POST" uri-template="/move">
        <inSequence>
            <property expression="json-eval($.source)" name="source" scope="default" type="STRING"/>
            <property expression="json-eval($.destination)" name="destination" scope="default" type="STRING"/>
            <fileconnector.move>
                <source>{$ctx:source}</source>
                <destination>{$ctx:destination}</destination>
            </fileconnector.move>
            <respond/>
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </resource>
</api>
  1. Invoke the API with the following payload. Make sure the destination folder is not an existing folder.
{
	"source":"/Users/IsuruUyanage/Music/integration-tests",
	"destination":"/Users/invalidFolderName"
}

Expected: It should provide an error message.
Actual: It returns a success response and create a new folder with the incorrect name.

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

No branches or pull requests

1 participant