Version schema value is concatenated causing long version numbers
Closed this issue · 2 comments
arobsco commented
Not sure if this is an error or not, but if it's not then it would be good to understand the rationale for it.
Before every server call the version is added to the schema by concatenation and is never cleared until page unload, this means on a page with multiple calls or where the page doesn't upload (SPAs etc) the version string can get really long, for example:
"2.4.0+2.4.0+2.4.0+2.4.0+2.4.0"
Should the version not always be set to 2.4.0?
jonsnyder commented
Thanks for your report. Yes this is a known issue with 2.4.0. It will be fixed in 2.5.0. It was fixed with this PR: adobe/alloy#705
jonsnyder commented
In the mean time, you can fix this by adding this code to your "Callback function for modifying data before each event is sent to the server":
content.xdm.implementationDetails.version = "2.4.0+2.4.0";