Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

[TrackingClient]: Using await - Don't throw exception when sending invalid scope

Found in

EPiServer.Profiles 1.3.0

Fixed in

EPiServer.Profiles.Client 1.5.0

(Or a related package)

Created

Dec 22, 2017

Updated

Jun 14, 2018

State

Closed, Fixed and tested


Description

1. On Alloy site (or QuickSilver), update file StartPageController as the link below:
https://episerver99-my.sharepoint.com/:w:/r/personal/son_do_episerver_com/_layouts/15/doc2.aspx?sourcedoc=%7B9ea144dc-02f2-43d4-be2d-678d94ded0ce%7D&action=edit&uid=%7B9EA144DC-02F2-43D4-BE2D-678D94DED0CE%7D&ListItemId=21&ListId=%7B5FE36502-A69F-4FE0-BADD-BD026946C277%7D&odsp=1&env=prod
2. Assure that Value of scope is invalid, ex: +testing
And using await: await _trackingService.Track(trackingData, context);
3. Build and run site

  • Reality: Run site successfully without exception.
  • Expectation: Run site unsuccessfully and throw exception for invalid scope.