Trouble with Remote Apple Events (eppc) and Keychain
Trouble with Remote Apple Events (eppc) and Keychain
- Subject: Trouble with Remote Apple Events (eppc) and Keychain
- From: Maximilian Schirmer <email@hidden>
- Date: Sun, 7 Oct 2007 13:11:43 +0200
Hello,
I'm currently developing a Cocoa application that uses Remote
Apple Events through AppleScript to talk to iTunes on remote
machines.
Everything is working perfectly fine until users choose to
save their authentication in the keychain. Once the password
has been saved to the keychain, the application will crash
after the next launch. It crashes when the AppleScript call
to the remote machine is made.
What I found out is the following: when authentication data
for Remote Apple Events is saved to the keychain, the URI
for the remote machine gets messed up.
Instead of eppc://10.0.10.42:3031, the keychain saves the URI
with the protocol identifier in reverse, i.e. cppe://...
and this clearly crashes the communication process. A process
named 'AEServer' is affected, too and crashes at the same
time.
This behaviour is completely independet from my application,
you can reproduce it any time with this sample code in
Script Editor:
tell application "iTunes" of machine "eppc://some.ip.address"
activate
stop
end tell
copy the above code, hit compile, enter your data and make
sure you check "Add to keychain?" below. The script will now
execute perfectly, you can run it again and again.
Save the script to a file, quit Script Editor and open the
script file again. BOOM! Script Editor crashes instantly.
It will keep doing so until you remove the keychain entry.
Take a look to your keychain and you will see the reversed
protocol identifier in the keychain item.
I have read about a similar behaviour before on this list,
did anyone find a way around it? It clearly looks like a
keychain bug and I encountered it with 10.4.9 and 10.4.10
both on Intel and PPC machines.
I'd be happy to receive some input or advice, thank you!
Greetings from Germany,
Max.
--
trying to make things work... without serendipity in my life
(Paradise Lost - Pray Nightfall)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden