GitHub user sirlatrom opened a pull request:
https://github.com/apache/camel/pull/1327
Fix Salesforce BulkAPI getRequest() URL
This commit fixes the URL returned by `getRequest()`. It used to return the
same URL as `getBatch()`, while the documentation states that `/request` should
be appended:
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_batches_get_request.htm#asynch_api_batch_get_request
While there is currently no use of the third parameter (`String requestId`)
to the introduced private method `batchRequestUrl()`, it has been included for
symmetry with the private method `batchResultUrl()`, which, like
`batchRequestUrl()`, provides for requesting a path that the API does not
explicitly define (i.e. providing a request/result ID after
`/request`/`/result`), but may still be accessible.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sirlatrom/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1327.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1327
----
commit 9b34ea97cd2c45ec92e034f0000ea94e1a11c901
Author: Hans Peter Jensen <[email protected]>
Date: 2016-12-01T16:31:44Z
Fix request URL
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---