If you think that something doesn't work in Aware IM post your message here
#51605 by UnionSystems
Mon Sep 16, 2019 3:57 am
Found a possible issue with the REST publication service in 8.3 build 2630 (also observed this issue in previous 8.3 builds). This issue was not evident in 8.1.

If an attribute being returned by the service contains a '#' character the XML or JSON result is split at the '#' character and the '#' character is not returned.

For example if you return an attribute of string 123456 AwareIM REST returns XML of
Code: Select all<Object>

But if there is a '#' character in that string like 123#456 AwareIM REST returns
Code: Select all<Object>

We would expect to get
Code: Select all<Object>
Same problem occurs when AwareIM REST returns a JSON result for an attribute that contains a '#' character. In that case the JSON is
Code: Select all{
"Attribute": [123,

Attached BSV (XML.bsv) demonstrates the problem. Note to view REST output you need to PUBLISH the BSV then you can browse REST output at http://localhost:8080/AwareIM/REST/XML/Test

Note in this test BSV we've named the object 'Object' and the test attribute 'Attribute'.
#51606 by Jaymer
Mon Sep 16, 2019 4:25 am
I'd have to check a 8.1 project from 1.5 yrs ago, but I think I had a similar problem then. If I was sending an SMS msg and the user entered "my # is 111-2222" then it would crap out when sending. I had to escape it I think. Might help you get thru it [for now] using a REPLACE_PATTERN.
#51614 by UnionSystems
Wed Sep 18, 2019 4:28 am
Thanks Jaymer,

Appreciate your prompt response, typical of your generosity to this forum.

We've explored escaping the '#' in our content but we are actually passing through HTML and Javascript code in the REST response. The content uses # for RGB colour codes and in javascript Jquery $(#ID) references so its hard for us to quickly escape #. Our hope is that AwareIM can accept transmission of #.

We are crossing fingers this is remedied in Vlad's next 8.3 AwareIM release :-)

Who is online

Users browsing this forum: Google [Bot] and 4 guests