Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17

    iOS client API encoding issue

    Hi,

    Our iOS application using iOS LS library has issue when try to authenticate against our LS server. After investigation, we found that the token, assigned to LS_user parameter, being sent to LS server is different from the one set by the app thru the iOS client API. Any "+" character in the token string is replaced by a space character which make the token become invalid. We have similar authentication logic working fine with other LS client libraries, like Silverlight and .net window.
    Is it a bug in iOS client? How I can get around it?

    Thanks
    Joseph

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Bologna, Italy
    Posts
    102
    Hello Joseph,

    what you notice is actually a bug, due to slight incompatibilities on how URLs are encoded and decoded by iOS and Java. Unfortunately, the specifications for URL encoding leave room for interpretation and, as frequently happens, different systems interpret it in different ways. Thanks for reporting, it will be surely solved in an upcoming release.

    In the meanwhile, a simple workaround would be to pre-escape the "+" sign with some character combination, and then unescape it in the metadata adapter (notifyUser and notifyNewSession methods).
    Hope this helps. Best regards,

    Gianluca

  3. #3
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17
    when will be the release date for the coming release?

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    This has not been planned yet, but the fix on the iOS library is now available.
    You and anyone interested can contact us at support@lightstreamer.com for details.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 12:39 PM.