Singly/hallway — pull request #749 by jparkrr (2012-12-21 16:05:55+00:00)
Title: when deleting profiles, check the non-encoded profileID

A customer found this bug.

Currently you can't delete a profile with a %40 in it, (mostly flickr, gmail) using POST /profiles?delete=abc%40D10@flickr because we try to URI-encode it to abc%2540D10@flickr. This will work copying the id from flickr with the `@` intact, but copying from `/profiles` gives us the `%40` instead.

Therefore, we must check the original AND URI-encoded PIDs. I do this using async.series on acl.getProfile()

@jer is this right?

As a side note, we don't have any encoded PIDs except %40, but I assume we could in the future as we add more services.