• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] Developing for the iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Developing for the iPhone


  • Subject: Re: [OT] Developing for the iPhone
  • From: Paul Stringer <email@hidden>
  • Date: Wed, 4 Jul 2007 09:43:52 +0200

Finally, this should help prevent some of the guess work in developing for iPhone
http://developer.apple.com/iphone/


On Jul 3, 2007, at 9:11 PM, email@hidden wrote:

Send Webobjects-dev mailing list submissions to
	email@hidden

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.apple.com/mailman/listinfo/webobjects-dev
or, via email, send a message with subject or body 'help' to
	email@hidden

You can reach the person managing the list at
	email@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Webobjects-dev digest..."


Today's Topics:

   1. Trouble bypassing Trust Manager (Mitch Saltykov)
   2. Re: Trouble bypassing Trust Manager (Pascal Robert)
   3. Re: [Wonder-disc] [OT] developing for the iPhone (Anjo Krank)
   4. Re: Trouble bypassing Trust Manager (Mike Schrag)
   5. AW: [OT] developing for the iPhone (Weide, Bj?rn)
   6. Re: [OT] developing for the iPhone (Mike Schrag)


----------------------------------------------------------------------

Message: 1
Date: Tue, 3 Jul 2007 13:17:03 -0400
From: Mitch Saltykov <email@hidden>
Subject: Trouble bypassing Trust Manager
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

Hi, all, I wonder if someone has dealt with this kind of thing before:

We're setting up a WO app that would retrieve emails from an IMAPS
server and process the data in those specific emails.  Trouble is,
we're using a self-signed SSL certificate, and that winds me up with
validation exceptions that prevent us from proceeding:

javax.mail.MessagingException:
sun.security.validator.ValidatorException: PKIX path validation
failed: java.security.cert.CertPathValidatorException: Path does not
chain with any of the trust anchors;
   nested exception is:
	javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path validation
failed: java.security.cert.CertPathValidatorException: Path does not
chain with any of the trust anchors

This comes about at the connect line:
	store = session.getStore(urln);
	store.connect();

We tried applying the example here: http://www.exampledepot.com/egs/
javax.net.ssl/TrustAll.html but couldn't figure out how to actually
force the app to use that trustmanager instead of the default.  Since
that solution relies on deprecated libraries anyway, I was hoping
someone more in the know may be able to direct me to an up-to-date
way to resolve the issue.

Thanks in advance,

-- Mitch Saltykov
email@hidden
212-465-8484 x412


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/ 20070703/32dcc469/attachment.html


------------------------------

Message: 2
Date: Tue, 3 Jul 2007 13:21:19 -0400
From: Pascal Robert <email@hidden>
Subject: Re: Trouble bypassing Trust Manager
To: Mitch Saltykov <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

If you have access to the certificate file, you can import it with
keytool ?

(I have to put my IMAP fetching code in ERJavaMail someday...).

Hi, all, I wonder if someone has dealt with this kind of thing before:

We're setting up a WO app that would retrieve emails from an IMAPS
server and process the data in those specific emails.  Trouble is,
we're using a self-signed SSL certificate, and that winds me up
with validation exceptions that prevent us from proceeding:

javax.mail.MessagingException:
sun.security.validator.ValidatorException: PKIX path validation
failed: java.security.cert.CertPathValidatorException: Path does
not chain with any of the trust anchors;
  nested exception is:
	javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path validation
failed: java.security.cert.CertPathValidatorException: Path does
not chain with any of the trust anchors

This comes about at the connect line:
	store = session.getStore(urln);
	store.connect();

We tried applying the example here: http://www.exampledepot.com/egs/
javax.net.ssl/TrustAll.html but couldn't figure out how to actually
force the app to use that trustmanager instead of the default.
Since that solution relies on deprecated libraries anyway, I was
hoping someone more in the know may be able to direct me to an up-
to-date way to resolve the issue.

Thanks in advance,



------------------------------

Message: 3
Date: Tue, 3 Jul 2007 19:24:43 +0200
From: Anjo Krank <email@hidden>
Subject: Re: [Wonder-disc] [OT] developing for the iPhone
To: Mike Schrag <email@hidden>
Cc: "WebObjectsDev \(Group\)" <email@hidden>,	Wonder
	Discussion <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Sorry, I can't accept this patch unless I can test it. So please send
me your iPhone for testing.

Cheers, Anjo

Am 03.07.2007 um 18:29 schrieb Mike Schrag:

I've just committed the relevant methods into ERXBrowser in Wonder
to allow you check .isIPhone() for iPhones.

ms

On Jul 3, 2007, at 12:20 PM, Mike Schrag wrote:

Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+
(KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3

--------------------------------------------------------------------- -
---
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wonder-disc mailing list
email@hidden
https://lists.sourceforge.net/lists/listinfo/wonder-disc



------------------------------

Message: 4
Date: Tue, 3 Jul 2007 13:25:51 -0400
From: Mike Schrag <email@hidden>
Subject: Re: Trouble bypassing Trust Manager
To: "WebObjectsDev (Group)" <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="utf-8"

Welcome to your worst nightmare ... This is such a ridiculous process
required to make java do what you want here.

These are adaptations from some similar source to what you found that
I've been using for a while:



I haven't tried this for imaps, but I use it in dev for smtps with
the properties:

mail.smtps.socketFactory.class=com.mdimension.util.DummySSLSocketFacto ry
mail.smtps.socketFactory.fallback=false


I have some vague recollection that imaps doesn't work quite the same
way as this, but you can try it first.  Next would be to import the
cert into a keystore.  If you don't want to import into the default,
you can set the keystore to use with:

javax.net.ssl.trustStore=/path/to/your/trustStore

For getting the cert from an IMAP server, I always end up on this page:
http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL +services


ms

On Jul 3, 2007, at 1:17 PM, Mitch Saltykov wrote:

Hi, all, I wonder if someone has dealt with this kind of thing before:

We're setting up a WO app that would retrieve emails from an IMAPS
server and process the data in those specific emails.  Trouble is,
we're using a self-signed SSL certificate, and that winds me up
with validation exceptions that prevent us from proceeding:

javax.mail.MessagingException:
sun.security.validator.ValidatorException: PKIX path validation
failed: java.security.cert.CertPathValidatorException: Path does
not chain with any of the trust anchors;
  nested exception is:
	javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path validation
failed: java.security.cert.CertPathValidatorException: Path does
not chain with any of the trust anchors

This comes about at the connect line:
	store = session.getStore(urln);
	store.connect();

We tried applying the example here: http://www.exampledepot.com/egs/
javax.net.ssl/TrustAll.html but couldn't figure out how to actually
force the app to use that trustmanager instead of the default.
Since that solution relies on deprecated libraries anyway, I was
hoping someone more in the know may be able to direct me to an up-
to-date way to resolve the issue.

Thanks in advance,

-- Mitch Saltykov
email@hidden
212-465-8484 x412


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: 40mdimension.com

This email sent to email@hidden

-------------- next part -------------- Skipped content of type multipart/mixed

------------------------------

Message: 5
Date: Tue, 3 Jul 2007 17:32:50 +0200
From: "Weide, Bj?rn" <email@hidden>
Subject: AW: [OT] developing for the iPhone
To: Baiss Eric Magnusson <email@hidden>,	WebObjectsDev
	<email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain;	charset="iso-8859-1"

Hi,

1) check the user agent (request header)

2) http://www.marketcircle.com/iphoney/

Ciao,
Bjoern

-----Ursprüngliche Nachricht-----
Von: webobjects-dev-bounces+bw=email@hidden
[mailto:webobjects-dev-bounces+bw=email@hidden] Im Auftrag von
Baiss Eric Magnusson
Gesendet: Dienstag, 3. Juli 2007 17:28
An: WebObjectsDev
Betreff: [OT] developing for the iPhone



1) How do I decode the WORequest to know that it is an iPhone on the client
side?


2) Is there a "simple" way to use the iPhone against my development
environment so I can test before deploying? I could solve (1) if I could do
this.


3) Can I intercept the call to "Main", the stack crawl shows only framework
calls, I thought I got the call in WODirectAction.defaultAction, but I
don't, and I think I want a Login WOComponent (i.e. Main) specific to the
iPhone?


----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


------------------------------

Message: 6
Date: Tue, 3 Jul 2007 13:41:47 -0400
From: Mike Schrag <email@hidden>
Subject: Re: [OT] developing for the iPhone
To: "WebObjectsDev (Group)" <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

By the way, don't trust these apps at all if you do anything with
javascript interactions.  iPhone's handling of onmouse*, focus, and
overall Javascript performance is very different than the standard
desktop webkit, even in 3.0.  If you are really targeting an iPhone,
there's just no substitute for the real thing.  Unfortunately, this
sort of screws non-US people :(  If you're doing non-Javascript (and
non-Ajax) dev, then the emulators are probably passable.

ms

On Jul 3, 2007, at 12:57 PM, Miguel Arroz wrote:

Hi!

  Just a correction: <http://www.marketcircle.com/iphoney/> is the
"best" iphone simulator, the other one sucks.

  "Best" means it's far far away from the real iphone, but at least
it gives you the correct browser size.

  Yours

Miguel Arroz

On 2007/07/03, at 16:50, Miguel Arroz wrote:

Hi!

  1) I don't know, but it's quite probable. Buy an iPhone, and
analyse the request! :)

  2) The only thing I know of is <http://www.freemacware.com/
iphone-simulator/>. I think it only simulates the window size, and
nothing else, but it might help.

  3) Put this in your Application() method:

// This is necessary because the default request handler is "wo",
not "wa".
// This means that the defaulg handler will create the "main"
component, not
// call the "main" direct acion. That would create a session for
every hit
// in the index page, which is obviously not good. This line
avoids that.
setDefaultRequestHandler(requestHandlerForKey
(directActionRequestHandlerKey()));

  This way, when you open the URL of your app, you will execute
the Main direct action.

  Yours

Miguel Arroz

On 2007/07/03, at 16:28, Baiss Eric Magnusson wrote:


1) How do I decode the WORequest to know that it is an iPhone on the client side?

2) Is there a "simple" way to use the iPhone against my
development environment so I can test before deploying? I could
solve (1) if I could do this.

3) Can I intercept the call to "Main", the stack crawl shows only
framework calls, I thought I got the call in
WODirectAction.defaultAction, but I don't, and I think I want a
Login WOComponent (i.e. Main) specific to the iPhone?

----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: 40guiamac.com

This email sent to email@hidden

Miguel Arroz http://www.terminalapp.net http://www.ipragma.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
40guiamac.com

This email sent to email@hidden

Miguel Arroz http://www.terminalapp.net http://www.ipragma.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com

This email sent to email@hidden




------------------------------

_______________________________________________
Webobjects-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/webobjects-dev

End of Webobjects-dev Digest, Vol 4, Issue 493
**********************************************

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Webobjects .org tutorials
  • Next by Date: Refreshing localized pages
  • Previous by thread: Re: [OT] developing for the iPhone
  • Next by thread: Re: [OT] developing for the iPhone
  • Index(es):
    • Date
    • Thread