[TrackingPackage] Warning message for Invalid email should be logged

Found in

EPiServer.Profiles.Client 1.6.0

Fixed in

EPiServer.Profiles.Client 1.7.0

Created

Nov 21, 2018

Updated

Dec 07, 2018

State

Closed, Fixed and tested


Description

1. Setup a tracking client as instructed, with invalid email information e.g. test_123 @test
2. Build the project
3. Browse the site
4. Query data in Profile Store, Insight
--> No new trackevent/profile is logged --> correct
5. Check log in:
ProjectName\ProjectName\App_Data\EpiServerErrors.log
Expected: The "Tracking contains invalid Email address" returns
Actual:
2018-11-21 08:18:06,848 [41] ERROR EPiServer.Profiles.Client.ProfileTrackingAdapter: tracking of data ({"trackId":null,"deviceId":"b8a6c05e-dd32-476f-a004-34cb87f0b1c5","scope":"default","eventType":"StartPage17","value":"<>","pageUri":"http://localhost:51992/","pageTitle":"Alloy - collaboration, communication and project management online","user":{"name":"","email":"test_123 @test","information":

{"website":"http://ps17-website.com","picture":"basetracking17.jpg","streetAddress":"StreetAddress-PS17","phone":"123456","mobile":"123456","city":"Hanoi","state":"","zipCode":"123456","jobTitle":"QA-PS17","company":"Epi-PS17","country":"Vietnam"}

,"info":{"website":"http://ps17-website.com","picture":"basetracking17.jpg","streetAddress":"StreetAddress-PS17","phone":"123456","mobile":"123456","city":"Hanoi","state":"","zipCode":"123456","jobTitle":"QA-PS17","company":"Epi-PS17","country":"Vietnam"}},"eventTime":null,"payload":{"value1":"Home Value 1","value2":"Home Value 2","value3":"Home Value 3","user":{"name":"","email":"test_123 @test","information":

{"website":"http://ps17-website.com","picture":"basetracking17.jpg","streetAddress":"StreetAddress-PS17","phone":"123456","mobile":"123456","city":"Hanoi","state":"","zipCode":"123456","jobTitle":"QA-PS17","company":"Epi-PS17","country":"Vietnam"}

,"info":

{"website":"http://ps17-website.com","picture":"basetracking17.jpg","streetAddress":"StreetAddress-PS17","phone":"123456","mobile":"123456","city":"Hanoi","state":"","zipCode":"123456","jobTitle":"QA-PS17","company":"Epi-PS17","country":"Vietnam"}

}},"remoteAddress":"::1"}) failed. Bad Request (BadRequest)