Skip to content

Check the validation of brum_site_id to match the UUID format #27

Description

@ceckoslab

We found that a Basircrum user entered by mistake the hostname in instead of the brum_site_id in the plugin settings.

The mistake was that the user entered www.example.com instead of 22125988-0d99-4035-8eb5-2bccc5d8f661 .

We could find the mistake in the generated config:

w.BOOMR_mq.push(["addVar", {"brum_site_id":"www.example.com"}]);

Where the correct one supposed to be:

w.BOOMR_mq.push(["addVar", {"brum_site_id":"22125988-0d99-4035-8eb5-2bccc5d8f661"}]);

Full snipped containing the error:

<script id="basicrum-config-js-after">
(function(w) {
  if (!w) { return; }
  w.BOOMR = w.BOOMR || {};
  w.BOOMR.plugins = w.BOOMR.plugins || {};
  w.BOOMR_mq = w.BOOMR_mq || [];
  w.BOOMR_mq.push(["addVar", {"p_type":"page"}]);
  w.BOOMR_mq.push(["addVar", {"p_gen":"wp"}]);
  w.BOOMR_mq.push(["addVar", {"brum_site_id":"www.example.com"}]);
  w.BOOMR.url = "https:\/\/www.example.com\/wp-content\/plugins\/basicrum\/assets\/js\/boomr\/boomerang-1.815.60.cutting-edge.min.js";

  w.basicRumBoomerangConfig = {
    "beacon_url": "https://beacon.beta.basicrum.com/beacon/catcher",
    "instrument_xhr": false,
    "strip_query_string": false,
    "Continuity": {
        "enabled": true
    },
    "ResourceTiming": {
        "enabled": true,
        "splitAtPath": true
    },
    "secure_cookie": true,
    "same_site_cookie": "Strict"
};
})(window);
//# sourceURL=basicrum-config-js-after
</script>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions