Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Login does not work in Sandbox #11

Open
naicigam opened this issue Jan 15, 2015 · 3 comments
Open

Login does not work in Sandbox #11

naicigam opened this issue Jan 15, 2015 · 3 comments
Labels

Comments

@naicigam
Copy link

In exec_anon.xml, there is a line with the login harcoded URL:

<http url="https://login.salesforce.com/services/Soap/c/30.0" ..... >

I have to change the URL manually to login into sandbox.

Thanks!

@afawcett afawcett added the bug label Jan 16, 2015
@afawcett
Copy link
Contributor

Thanks for raising, would exposing a 'serverurl' attribute on 'executeApex' as per sf:deploy here work for you?

@koenwesselman
Copy link
Contributor

I think he's referring to line 110 in exec_anon.xml:
<http url="https://login.salesforce.com/services/Soap/c/30.0" method="POST" failonunexpected="false" entityProperty="loginResponse" statusProperty="loginResponseStatus">
Which should probably be replaced with:
<http url="https://${host}/services/Soap/c/30.0" method="POST" failonunexpected="false" entityProperty="loginResponse" statusProperty="loginResponseStatus">
Am I right?

@afawcett
Copy link
Contributor

That variable is used after login to modify the end point to point to the orgs instance, e.g. na1, eu2 etc. What is needed is an override for the login URL to point to test.salesforce.com for Sandboxes. Its a feature of the standard Salesforce Ant tasks and should tbh have been implemented here as well.

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

No branches or pull requests

3 participants