Invalid email address format in iOS app.

33 views
Skip to first unread message

David Andrzejewski

unread,
Dec 4, 2015, 11:29:58 AM12/4/15
to 'David Andrzejewski' via aprs. fi
My registered email on APRS.fi is site+aprs.fi@(domain). + is absolutely a valid character in an email address. 

However this does not work in the iOS app:

image1.PNG



Also, I can't figure out how to change my email address on the site - is this possible?

Thanks!

Rick Gilligan

unread,
Dec 4, 2015, 1:47:16 PM12/4/15
to apr...@googlegroups.com
I have the same problem with my preferred email address, which also contains a "+" character.

It seems no one bothers to read the RFC and actually make their email address format validation compliant with it.

--
73

Rick

--
You received this message because you are subscribed to the Google Groups "aprs.fi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aprsfi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Heikki Hannikainen

unread,
Dec 4, 2015, 2:01:53 PM12/4/15
to apr...@googlegroups.com

Hi,

Seems like people no longer bother thinking of any alternative, innocent
reasons, but rather blame ignorance. :)

This is just an API string encoding bug in the login handler, the
validators at both ends (client-side and the server) do contain '+' in the
list of allowed characters. I'm quite intimately familiar with the
contents of some of the relevant RFCs.

The login with 'site+a...@jewski.co' got rejected with this error:

login failed email 'site apr...@jewski.co' (bad email)

i.e. the + got mangled to a space when it's passed from the client to the
backend, and *then* it isn't valid any more. Silly encoding bug. I'll try
to get that fixed soon, can probably fix it on the server side without
releasing a new client.


On Fri, 4 Dec 2015, Rick Gilligan wrote:

> I have the same problem with my preferred email address, which also contains a "+" character.
>
> It seems no one bothers to read the RFC and actually make their email address format validation compliant with it.
>
> --
> 73
>
> Rick
>
> On Fri, Dec 4, 2015 at 8:29 AM, 'David Andrzejewski' via aprs.fi <apr...@googlegroups.com> wrote:
> My registered email on APRS.fi is site+aprs.fi@(domain). + is absolutely a valid character in an email address. 
>
> However this does not work in the iOS app:
>
> image1.PNG
>
>
>
> Also, I can't figure out how to change my email address on the site - is this possible?
>
> Thanks!
>
> --
> David Andrzejewski
>
> E-mail da...@davidandrzejewski.com
> iMessage da...@davidandrzejewski.com
> Jabber/XMPP da...@davidandrzejewski.com
>
> --
> You received this message because you are subscribed to the Google Groups "aprs.fi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to aprsfi+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups "aprs.fi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to aprsfi+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

- Hessu

Rick Gilligan

unread,
Dec 4, 2015, 2:09:02 PM12/4/15
to apr...@googlegroups.com
Yay!

Thank you for intending to follow the RFC!

Most times, the response from the site support personnel is "RFC", what's that?

--
73
Rick
N6NL

David Andrzejewski

unread,
Dec 4, 2015, 2:53:34 PM12/4/15
to apr...@googlegroups.com
Thank you!

For now, is there a way I can change my email address so I can log in? Or should I just make a new account?

Heikki Hannikainen

unread,
Dec 4, 2015, 3:10:53 PM12/4/15
to 'David Andrzejewski' via aprs.fi
On Fri, 4 Dec 2015, 'David Andrzejewski' via aprs.fi wrote:

> Thank you!
>
> For now, is there a way I can change my email address so I can log in?
> Or should I just make a new account?

There's currently no way to change an email address. Create a new account.

You can log in using the '+' account on the web site, and go to the
Account view (https://aprs.fi/account/) and delete the old account. I
think the web site supports it just fine.

- Hessu

Jan L. Peterson

unread,
Dec 6, 2015, 3:14:47 AM12/6/15
to apr...@googlegroups.com
On 12/4/15 12:53 PM, 'David Andrzejewski' via aprs.fi wrote:
Thank you!

For now, is there a way I can change my email address so I can log in? Or should I just make a new account?
Try substituting %2b for the + symbol:  site%2baprs.fi@domain  Sometimes this works because the %2b gets mapped to the actual plus character.

  -jan- (KD7ZWV)
-- 
Jan L. Peterson
http://www.peterson-tech.com/~jlp/

Heikki Hannikainen

unread,
Dec 6, 2015, 4:42:11 AM12/6/15
to apr...@googlegroups.com
On Fri, 4 Dec 2015, Jan L. Peterson wrote:

> On 12/4/15 12:53 PM, 'David Andrzejewski' via aprs.fi wrote:
> Thank you!
>
> For now, is there a way I can change my email address so I can log in? Or should I just make a new account?
>
> Try substituting %2b for the + symbol:  site%2baprs.fi@domain  Sometimes
> this works because the %2b gets mapped to the actual plus character.

Probably won't work here, if you type '%2b' in the login field, the '%'
gets encoded to a '%25', the server will receive '%252b' and will decode
that back to '%2b', and will not find the address in the database.

The string is encoded, it's just encoded wrong for some characters.

The fix is in the next version, replaced
NSString stringByAddingPercentEscapesUsingEncoding with
CFURLCreateStringByAddingPercentEscapes.

- Hessu

Heikki Hannikainen

unread,
Dec 13, 2015, 2:37:30 PM12/13/15
to apr...@googlegroups.com

Hi,

iOS app version 1.0.1 (update available now in the App Store) works with
'+' in email address. Encoding fixed, validators did not need tweaking.

A little layout bug in the search views is also fixed, the search results
no longer show up behind the status bar when scrolling.

I also coughed up a 1.1.0 today, which went in the Apple review queue, if
all goes well it'll be in the store next weekend. It has a "Beacon now"
button and it also displays current location data (coordinates, speed,
altitude, horizontal accuracy) in the beacon view.

https://geo.itunes.apple.com/app/aprs.fi/id922155038?mt=8&at=1000la28&ct=email
- Hessu

David Andrzejewski

unread,
Dec 13, 2015, 3:19:34 PM12/13/15
to apr...@googlegroups.com
Awesome! Thanks for the fast response. 

The only other feature I would like to see is APRS-IS beaconing. 

Rick Gilligan

unread,
Dec 13, 2015, 3:23:20 PM12/13/15
to apr...@googlegroups.com
Thank you for all the great work you put in on aprs.fi

--
73

Heikki Hannikainen

unread,
Dec 14, 2015, 4:55:57 AM12/14/15
to 'David Andrzejewski' via aprs.fi
On Sun, 13 Dec 2015, 'David Andrzejewski' via aprs.fi wrote:

> Awesome! Thanks for the fast response. 
>
> The only other feature I would like to see is APRS-IS beaconing. 

Unfortunately that'll take a longer while, I hope to get there some time
in the spring.

- Hessu
Reply all
Reply to author
Forward
0 new messages