iOS GCM: Settings do not accept certain text with "if" and "^"

Related: https://forums.garmin.com/forum/deve...is-url-decoded
Related: https://forums.garmin.com/forum/deve...and-characters

Environment
iOS 10.3.3 [iPhone]
or iOS 11.2.1 [iPad] (As in all these cases with bad GCM config, I assume it has nothing to do with the iOS version, especially since I get reports from end-users, most of whom are probably auto-updating their iOS.)

Garmin Connect Mobile:4.2.0.25

Description
Entering certain text in CIQ app settings [string properties] causes an Access Denied error and settings are not saved. As far as I know, it doesn't matter which CIQ app you use, as long as it has a string setting. The same text in the simulator app settings or Garmin Express works fine.

You can use AppBuilder (my app whose users reported this problem) or Training Notes:
https://apps.garmin.com/en-NZ/apps/d...a-9b8485d2fc80
https://apps.garmin.com/en-US/apps/e...9-fe49891d7e76

Use the Formula field in AppBuilder or Line 1 in Training Notes to reproduce.

Case A:
"IF(B^C)"

If you enter the above text (without quotes) in a string settings field and attempt to save settings, you will be presented with an "Access Denied" error page. B and C can be any text. If you change "IF" or "^" to other text (even changing "IF" to "IFS"), the problem goes away.

(This is a simple synthetic example where I tried to distill the root cause of the problem)


Case B:
This also produces an "Access Denied" error page. (This is a real example that affects the users of AppBuilder)

In this case, the string is Base64 encoded, because the forum will not accept the text, even with square brackets. Use https://www.base64decode.org/ to decode.
QVZHMChJRlMoVGltZXIgR1RFIDMwIGFuZCAoVGltZXIgLSBNQVgoSUZTIChQUkVWKHRpbWVyKSBlcSBudWxsLCB0aW1lcikpIHBsdXMgMSkgZ3RlIDMwLCBUSU1FQVZHMChQb3dlciwzMCleNCkpXjAuMjU=

This fails despite employing the apparent workaround of using IFS instead of IF, that succeeds in Case A.

You can also go to AppBuilder4 store page and look at the formula for Normalized Power [activity average]
https://apps.garmin.com/en-US/apps/f...9a39e44e1b9f#0

Here it is in image form:
  • On a personal note, this is getting a little frustrating. It's one thing when a simple case such as "AL ERT"( (remove space and quotes) doesn't work [still hasn't been fixed], as I can give my users workarounds. I can't even enter the necessary text in the forum for this bug report! I couldn't even include this text in the original post.

    When a complex formula such as Case B fails, it's difficult to give a workaround except "Use Garmin Express".

    IMO, "the ability to enter any combination of common letters, numbers, and symbols" in the forum software and app config should be taken for granted. It's pretty basic stuff that's worked on the web for quite some time. Imagine if using certain characters in your password caused a website to crash....
  • Former Member
    Former Member
    FlowState,

    I totally understand your frustrations. I've got this captured in our tracking system. We are working on reproducing right now and will get it to the GCM team ASAP. From there, we wait unfortunately. I'll continue to try and put more pressure to get some of this fixed done as well. I was able to confirm that there is no error happening on Android when plugging in the formula you provided. I think we can safely assume that this is iOS specific.

    Regarding the forums, I know that they have been a pretty constant point of frustration for some time now. We are still working with the forum IT teams to address those issues. We have communicated with them the importance the forums play in our Connect IQ community and they are working on providing more long term solutions to the issues we are seeing. Thank you so much for all that you bring to the Connect IQ community and for your diligent reporting of errors in the entire ecosystem.

    - Coleman
  • Coleman.ConnectIQ, thanks for the quick response!

    Glad these issues are being looked at and of course there's always a question of priorities (I know some of these bugs affect very few people). It's just that sometimes looking in from the outside, we get the impression (rightly or wrongly) that certain things may never be fixed, which is the frustrating part. Since I work as a software dev in my day job, I know very well that some things are sometimes classified WONTFIX, one way or another. So I'm glad that's not the case here.

    Even those some of these bugs are admittedly pretty esoteric, like I said in the other bug report, some of these config issues could affect any of the generic "training notes" data fields or widgets, if someone wanted to write a note such as "5 x 800m @ <3:00" or something. I mean when stuff like that doesn't work it's obviously even more frustrating for the end user than the app dev.

    And yes, the forums are a pretty sore point. I mean, it's a way for users to support each other, not just for CIQ, but for the ecosystem in general, which is obviously a benefit to Garmin as well as users. So when it becomes a chore just to post stuff, that could discourage people from even bothering to try.

    Anyway, I'm looking forward to an eventual resolution on this kind of issue for both the forums and the app config. Thanks again!