SendAndLoad fails in mac .app version - possible security setting problem?
Hi all,
I'm having trouble with sendAndLoad working on the .app version of a flash application I made. So far it's only happening on one computer, so it appears to be some sort of security setting. Here's what's going on:
I've built a flash application (Flash 9, AS2) that has three versions: an online version, a standalone .exe version for PC, and a standalone .app version for mac. The user must log in to use the application. Online, this is handled by the portal hosting the flash. In the standalone versions, the user must login through the flash application. Through sendAndLoad, it accesses the same database of user info as the online version. The user just enters username/password, clicks "Submit," and if it finds the combination in the database, it lets the user in. If not, it gives them a message saying they entered the wrong username/password.
This has tested fine across macs and pcs, but sadly one macbook can't use the .app version. It launches, they put in valid username/password, hit submit and it freezes. All I can tell is that it gets the httpStatus number 0. As you can see below, I've got it set up to spit out an error message if it fails to load (login_lv.onLoad = function(success)), but it doesn't even do that.
I've put a crossdomain.xml file at the root level of the domain that's set to allow access from any domain.
This computer can log in successfully to the online version of the course, but the .app version seems to be hampered by some sort of security setting. The problem computer's settings match the settings of a mac I've tested successfully. It has up-to-date Flash 10 and is running Leopard. Here are security settings:
System Preferences>Security
General
Everything is unchecked
FileVault
Turned off
Firewall
"Allow all incoming connections" is selected
I'd appreciate any ideas anyone has. I'm far from wise about the ins-and-outs of mac security, so I may be missing something. I'm happy to clarify anything.
Code is below. It loads login_lv first, then bookmark_lv. It never gets far enough to load bookmark_lv. The severAppUrl is set to a placeholder for confidentiality's sake. The path is defintely right. It works on other computers.
Thanks!
Mike
// create a LoadVars instance
var login_lv:LoadVars = new LoadVars();
// add the login variables to pass to the server
login_lv.userid = "";
login_lv.pwd = "";
login_lv.modname = "a";
// setup login urls
var serverAppUrl = "http://myurlhere"; //this is just a placeholder. good ol' confidentiality agreements...
var loginUrl = serverAppUrl+"login.asp";
// setup bookmark urls
var bookmarkUrl = serverAppUrl+"menu.asp";
var bookmark_lv:LoadVars = new LoadVars();
// add the bookmark variables to pass to the server
bookmark_lv.studentid = "";
bookmark_lv.isAdmin = "";
bookmark_lv.modname = "A";
_global.modnameTemp = bookmark_lv.modname;
// setup login function
function doLogin() {
login_lv.userid = login_mc.user_txt.value;
login_lv.pwd = login_mc.pwd_txt.value;
login_lv.sendAndLoad(loginUrl,login_lv,"GET");
// send the login info
login_mc.continueBtn_mc.onRelease = function() {
this.enabled = false;
doLogin();
// variables will appear in the login_lv object
login_lv.onLoad = function(success) {
if (success) {
if (this.studentid == undefined) {
login_mc._x = 0;
trace("not logged in");
debug_mc.body_txt.text+="\nnot logged in";
if(this.reas == "Please Complete Overview and first 3 Module(s) with at least 70 score."){
login_mc.loginBad_mc.gotoAndStop("r2");
login_mc.loginBad_mc._visible = true;
} else if(this.reas == "Please Complete Overview Module first."){
login_mc.loginBad_mc.gotoAndStop("r3");
login_mc.loginBad_mc._visible = true;
} else {
login_mc.loginBad_mc._visible = true;
} else {
login_mc._x = 800;
trace("now logged in");
debug_mc.body_txt.text+="\nnow logged in";
trace("studentid: "+this.studentid);
trace("isAdmin: "+this.isAdmin);
//track variables for later use
_global.studentidTemp = this.studentid;
_global.isAdminTemp = this.isAdmin;
bookmark_lv.studentid = ""+this.studentid+"";
bookmark_lv.isAdmin = ""+this.isAdmin+"";
bookmark_lv.sendAndLoad(bookmarkUrl,bookmark_lv,"GET");
}else{
debug_mc.body_txt+="\nlogin load error"
login_lv.onHTTPStatus = function(httpStatus:Number) {
this.httpStatus = httpStatus;
if(httpStatus < 100) {
this.httpStatusType = "flashError";
else if(httpStatus < 200) {
this.httpStatusType = "informational";
else if(httpStatus < 300) {
this.httpStatusType = "successful";
else if(httpStatus < 400) {
this.httpStatusType = "redirection";
else if(httpStatus < 500) {
this.httpStatusType = "clientError";
else if(httpStatus < 600) {
this.httpStatusType = "serverError";
debug_mc.body_txt.text+="\n login_lv HTTPStatus number="+httpStatus+" HTTPStatus type="+this.httpStatusType;
//prepare bookmarkXML to receive returned info from bookmark_lv function
var bookmarkXML = new XML();
bookmarkXML.ignoreWhite = true;
bookmarkXML.onLoad = bookmark_lv;
// variables will appear in the bookmark_lv object
bookmark_lv.onLoad = function(success) {
if (success) {
trace("bookmarked");
debug_mc.body_txt.text+="\nbookmarked";
trace("bookmarkXML: "+bookmarkXML);
var bookmarkNode = mx.xpath.XPathAPI.selectNodeList(this.firstChild, "/bookmark");
trace("bookmarkNode: "+bookmarkNode);
var bookmarker:String = unescape(eval("bookmark_lv"));
trace("bookmarker: "+bookmarker);
bookmarker = bookmarker.split("<xml>").join("");
bookmarker = bookmarker.split("<bookmark").join("");
bookmarker = bookmarker.split("/bookmark>").join("");
bookmarker = bookmarker.split("</xml>").join("");
var startIndex:Number;
var endIndex:Number;
startIndex = bookmarker.indexOf(">");
trace(startIndex);
endIndex = bookmarker.indexOf("<");
trace(endIndex);
var bookFinally:String;
bookFinally = bookmarker.substr(startIndex+1, endIndex-2);
bookFinally = bookFinally.split("<").join("");
setBookmarkStr = ""+bookFinally+"";
trace("string: "+setBookmarkStr);
_global.newBookmark = bookFinally;
play();
}else{
debug_mc.body_txt+="\nbookmark load error"
bookmark_lv.onHTTPStatus = function(httpStatus:Number) {
this.httpStatus = httpStatus;
if(httpStatus < 100) {
this.httpStatusType = "flashError";
else if(httpStatus < 200) {
this.httpStatusType = "informational";
else if(httpStatus < 300) {
this.httpStatusType = "successful";
else if(httpStatus < 400) {
this.httpStatusType = "redirection";
else if(httpStatus < 500) {
this.httpStatusType = "clientError";
else if(httpStatus < 600) {
this.httpStatusType = "serverError";
debug_mc.body_txt.text+="\n bookmark_lv HTTPStatus number="+httpStatus+" HTTPStatus type="+this.httpStatusType;
try using different loadvars instances for your send loadvars and for your receive loadvars.
Similar Messages
-
Is the sounds library the same in the download version from Mac App Store that the discontinued box version?
Thanks in advance!Hi
Yes, except that the Apple Loops are lossy-compressed (no big deal generally).
You do need to download *all* the content.
CCT -
We use different a/c to login in Mac App Store, but failed
Please navigate to the Mac App Store forum, I'm sure someone there can assist if no one here is able to.
-
Web Center app with ADF Security - login problem
I have a custome Oracle Web Center app.
I have a page.html with an embedded login form posting to j_security_check. I've configured the ADF security policies to redirect to a JSPX on successful login.
When I try the correct username/password, I get redirected not to the page I defined in ADF, but to the root page http://127.0.0.1:7101/MyApp-ViewController-context-root/
and i get
Error 403--Forbidden
I've checked the weblogic.xml as per http://andrejusb.blogspot.com/2009/12/solving-error-403-forbidden-in-adf.html, all the required entries are there.
This works fine if i use a Login link with
destination="#{'/adfAuthentication?login=true&end_url=/faces/postLogin.jspx'} "
which redirects to the default login.html and then to the right page. I've copied the form from the default login.html into my master HTML page.
Hope my question is clear. Any suggestions why it is going to the wrong URL after login.
Is there anything specific I should see in the jazn-data.xml or web.xml regarding the post-login URL since i cant see that in either.
P.S. Have been advised to try here when I originally asked this in the WebCenter forum. Web Center app ADF Security - login problem
Edited by: new_to_webcenter on 18-Jan-2011 05:25Thanks for your response Frank.
The web.xml has
<security-constraint>
<web-resource-collection>
<web-resource-name>adfAuthentication</web-resource-name>
<url-pattern>/adfAuthentication</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>valid-users</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/error.html</form-error-page>
</form-login-config>
</login-config>
When configuring ADF Security via JDev , I chose "Redirect upon successful authentication" to the Welcome Page
"/faces/postLogin.jspx"
this then adds into web.xml
<servlet>
<servlet-name>adfAuthentication</servlet-name>
<servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
<init-param>
<param-name>success_url</param-name>
<param-value>/faces/postLogin.jspx</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
So the sequence which works is:
Login via the '/adfAuthentication?login=true&end_url=/faces/postLogin.jspx' and this redirects to login.html (OOTB form which posts to j_security_check) and then to the postLogin.jspx
I'm trying to do away with a Login link, and trying the simple login form embedded in my page alongwith other content.
So should the form be posting to j_security_check directly or to the adfAuthentication ? -
Mac OS version : not yet set
Some time ago i updated my computer , imac os x versie 10.8.2 intel core duo , with mountain lion. Now I always have to restart my computer because of:BSD process name corresponding to current thread : kernel _task and Mac version Not yet set
What should I do for reparing my computerWelcome to Apple Support Communities
Press Command and R keys on boot and reinstall -
Mac App Store Apple ID review problem
I want to use Mac App Store, but when I review my account, even though I enter the correct credit card number, it says invalid credit card number for New Zealand. Can someone please help me out. Thanks
It seems to be a global problem, so it's not just you.
https://discussions.apple.com/message/17769977?ac_cid=142432#17769977 is another thread with other people with the same problem.
I'm sure it will be fixed soon. -
Installation Failed on Mac for version 11.7
I tried to upgrade to latest version... should have left well enough alone. Flash Player version 11.6 worked just fine. Now I've done a complete uninstall, tried all troubleshooting suggestions on Adobe site, did restarts after each attempt... all with the same results: "Installation failed" error after 7%-13% of installation. I've even tried to reinstall older version, but cannot unzip file to installable format. If I can locate 11.6 that is not archived, I'll just use that one. I've spent the last couple of hours with this and am totally frustrated. I am on a Mac OS X 10.6.8, 2.16 GHz Intel Core 2 Duo, 64 bit.... I need HELP!!!
Hello,
Welcome to Adobe Support
You can uninstall Flash Player completly first. (Flash Player uninstaller : http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html)
You can download Adobe Flash Player 11.7 offline installer from here : http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_flash_playe r_11_osx.dmg
Thanks,
Vikram -
Mac app version of PSE 9 Editor
I bought the PSE 9 Editor for Mac a couple of years ago (while still in the workforce). And, now that I am retired I am starting to use PSE 9 and using the great video tutorials available. However, I noticed (during a recent tutorial) that the "Organizer" icon (tab) was not available above the Edit, Create, Share tabs. I have tried everything, but I still can't find it. Help!!!
As an user of PSE9 myself, i can testify that since the mavericks update the organizer is broken, so maybe that's why it's not bundled anymore.
I.m actually evaluating Elements 12 and the organizer work fime, even found back the "export" feature that was missing on EO9 mac version but present in the windows version.
So i think i will upgrade before then end of my trial period. -
the mac mini wont boot up it says you need to restart yuor computer and that its unable to find river for platform can i download software free from the internet to fix this
What OS were you using on the mini before this problem started? If 10.7.8.9, boot to the Recovery Volume (command - R on a restart or hold down the option key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions. Then reinstall the OS.
OS X Recovery
OS X Recovery (2) -
Security setting problems preventing a rerun of a form.
System Specifications:
Windows XP Professional with Microsoft Internet Explorer browser.
Enterprise Manager URL: http://dell9150:1158/em (there is no Domain Name)
Firewall is set to ON. I have no special software other than Windows XP Pro and
Internet Explorer handling my security. Oracle10g Database with Forms10g.
Sequence of Events:
1. Start OC4J Instance and Oracle Forms Builder
2. Open a previously debugged form, connect to database and run the form.
3. A sound like a pop-up blocker occurs and I am at the following address:
C:\Documents and Settings\Bob\Local Settings\Temp\s31o.htm
4. When I check the pop-up blocker it is ON. If I turn it OFF
the next time I come to this window it is set back to ON?
I can not add this current address to the pop up blocker exceptions;
however, dell9150 is listed as an exception.
5. I also get the message Explorer has restricted this file from showing
active content Click option here . When I select Allow Blocked Content
I get a security warning run active content to which I reply YES.
6. Now the form runs, the forms works just fine, and I am at the address: http://dell9150:8889/forms90/f90servlet
7. Once I close the form, go back to Builder and re-run the form I get the following
message without ever reaching the internet:
<html> <head> ORACLE FORMS.</head>
<body onload="document.pform.submit();" >
<form name="pform" action="http://dell9150:8889/forms90/f90servlet" method="POST">
<input type="hidden" name="form" value="C:\guest\forms\exercises\INSTRUCTOR_SECTION_ENROLLMENT.fmx">
<input type="hidden" name="userid" value="SCOTT/TIGER@orcl">
<input type="hidden" name="obr" value="yes">
<input type="hidden" name="array" value="YES">
</form> </body></html>
In order to re-run the form I must close out of everything and start from scratch.
I have tried several combinations of setting in the Internet Properties/Security Settings with no luck. If I RESET (I assume this resets all options to the default) the same thing occurs. Obviously, there has to be a way of setting my Internet Options so that I can run a form without this problem but I am lost and could really use some HELP! I am in no way a Windows expert nor a Oracle DBA but I can follow directions. Thanks.Try the following solutions :
1) Check on in IE -> Tools -> Internet Options -> advanced -> allow active content to run in files on My Co
mputer
2) Make sure that you have in the Internet Explorer Tools -> Internet Options -> Advanced tab -> Check the check box
Enable third party Browser extensions. It will be under browsing. -
Mac Pro 8 core Network setting problem
May sound strange but i just got an 8 core mac pro and one of its hard drives I cloned from my macbook pro which has all my software, stuff, etc. Eventually i will do a fresh install but this way i didn't have to start from scratch right away.
Everything is working well except that in my network pane i have a bunch of laptop stuff like bluetooth modem, etc. How can i get rid of those things? ARe there just preferences to remove or is it more complicated?You can just go and delete those 'phantom devices' in Network: Show: Configurations.
What you need is to go shopping for RAM and disk drives next probably. Pick up a couple 500GB drives for system, backup, media files. -
Security setting problem!! need help
i m a designer ,once i done i need to email the pdf file to cilent .But i wanted to make the file with security !! i just want my cilent just have a view but cant print and save on that file beacuse i scare the cilent use my design as a copyright .
so anyone here can teach me how to set the security mode to cant pirnt and save?can teach me step by step? i using adobe reader X and normally i using powerpoint to covert to PDF...please helpAdobe Reader can't set any security.
-
IPhoto 8 to Mac App Store iPhoto 11
Can I upgrade to the Mac App version of iPhoto 11 from iPhoto 8? Are there any issues I need to be aware of?
I've just updated iPhoto from 08 to 11 on my mac and it works perfectly fine. I still have 08 versions of all the other iLife apps installed.
It was mentioned earlier that it would be good practise to run software update after installing iPhoto but when I installed it from the app store and ran the update, it was already up to date. Is it possible that the download from the app store will be the most recent version or have I just missed this happening via software update somehow? -
Pixelator or Adobe's Photoshop Mac App?
I am looking for a good photo editing program. I have read several reviews of both and they look good. However, Adobe is about 3 times the cost of Pixelator? Recommendations? Anyone used both? I am not a pro level editor, but I am not a newbie to photo editing either. I want a great feature set at a good cost. I'll pay the $79 for Adobe, but if Pixelator is pretty close, I'll save the $50 and buy other apps. Your feedback is greatly appreciated!
At their price points there is no confusion they can possibly approach the full version of Photoshop which I have on the PC side. However, Adobe still uses "photoshop" in their title, thus the use in my title. I'm using my Mac more now than I was before. As such, I'm not willing to give Adobe another wad of cash for a full version simply because I'm using a different computer and OS. I'm simply looking for someone that has used either of these Mac apps, or possibly both, that can give some feedback on which one they think works better before I purchase.
-
Mac App Store doesn't work.
Some of the apps that came with the computer, including Mac App Store and Calendar, has problems while launching and they quit themselves very soon after.
I cannot update software because as I said, the Mac App Store does not work.
Here is a part of the error report it gives when I open Calendar.:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Symbol not found: _OBJC_CLASS_$_CalUICalendarInfoViewController
Referenced from: /Applications/Calendar.app/Contents/MacOS/Calendar
Expected in: /System/Library/PrivateFrameworks/CalendarUI.framework/Versions/A/CalendarUI
in /Applications/Calendar.app/Contents/MacOS/Calendar
It gives the same error on the app store as well.
Please help me if you can. Thank you.Welcome to the Apple Support Communities
Download > http://support.apple.com/kb/DL1581 If it doesn't work, press Command and R keys on boot and reinstall Mountain Lion
Maybe you are looking for
-
UConnect 430N and iPod 4th Gen
I have a 2012 Jeep Grand Cherokee with the uConnect 430N media center. I have been wanting to use my 4th generation iPod for various podcasts that I don't want to put on the media center's hard drive. The problem I have is that whenever I plug the
-
How do I stop duplicates from downloading?
My iTunes library on my Mac is syncing transfers from my iPad and for some reason after the sync, my Mac started downloading some of those purchases from iTunes automatically. What gives? Do I have to download them in order to delete the duplicates o
-
Create a Project From an Applicatio​n
I currently have a LabVIEW Realtime application (executable) running on a test system which interacts with a Compact-RIO chassis (FPGA). Unfortunately the project that was used to create all of this is now missing and the original designer is no lo
-
Hi I have added the SC KMC-CM to my Development Track so that i can use the KM API in my DC. Now i create a Webdynpro DC. and want to add the tc/km/frwk dc as used DC. But nothing is avaiable under the KMC-CM SC when i click on Add used DC. Why is
-
IDisk has information not visible in iWeb
When I go to my Web Gallery to view, download, or upload, there is no problem. When I browse my site, or friends to, there is also no problem(by site I mean http://web.mac.com/[AppleID]). Normally, all information, if hosted with .Mac, made with iWeb