Yeah, that's not going to work with way we have our security schema
setup. If you're not logged in and your post a "password" from the
login screen, we perform a redirect to rid ourselves of that nasty "Are
you sure you want to re-post this form?" popup box from the browser. I
would rely on the even either in the future because we're in the middle
of AJAX-ifying the Dashboard and that will probably return some JSON
data later on.
I recommend that you file an enhancement ticket for us at
trac.mach-ii.com or I might forget about this.
I think the solution is to build out a few additional events just for
ANT and I'd probably prefix the event names with remote. The
authentication schema could differ from the normal GUI interface. Also,
I would switch to using the ANT <post> task instead because entire URLs
are stashed in web logs and it's plain text to other servers even when
using SSL (IIRC). It would better to use a simple post to get something
done like this.
In the meantime, ANT <post> handles cookies correctly! So you could do
this in the meantime you could do this:
<!-- We're posting to the default event with the "dashboard:" -->
<post to="
http://www.example.com/index.cfm?event=dashboard:">
<prop name="password" value="${dashboard.password}" />
</post>
<post
to="
http://www.example.com/index.cfm?event=dashboard:config.reloadApp">
</post>
FYI, reloading the app via the dashboard doesn't clear the template
cache in your CFML engine.
Best,
.Peter
Adam Ness said the following on 11/17/2009 09:48 PM: