AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Regular expression filters do not handle diacritic characters #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Data Export API

Issue summary:
Characters with diacritics (é, ï, etc.) are not processed correctly in 
regular expression filters.

Steps to reproduce issue:
1. Attempt to query with a regular expression dimension filter
2. Have the regular expression filter value contain a diacritic character

Expected output:
A valid response correctly filtering by the regular expression

Actual results:
400 - Bad Request with the message Invalid Value

Notes:
The query parameter is properly escaped in the request to GA. The was 
reproduced using the API explorer and my local code.

This request works as expected (keyword equals écran)
https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3AXXXXXXXX&start-date=201
2-01-01&end-date=2012-01-08&metrics=ga%3Avisits&filters=ga%3Akeyword%3D%3D%C3%A9
cran

This request returns a 400 (keyword contains écran)
https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3AXXXXXXXX&start-date=201
2-01-01&end-date=2012-01-08&metrics=ga%3Avisits&filters=ga%3Akeyword%3D~%C3%A9cr
an

Original issue reported on code.google.com by patr...@seomoz.org on 5 Mar 2012 at 10:13

GoogleCodeExporter commented 9 years ago
I previously forgot to mention that this worked in v2.3 of the API.

Original comment by patr...@seomoz.org on 6 Mar 2012 at 10:19

GoogleCodeExporter commented 9 years ago
This issue can be closed. It was fixed in the 2012-05 release of the GA Core 
Reporting API.

Original comment by patr...@seomoz.org on 30 Jul 2012 at 7:07

GoogleCodeExporter commented 9 years ago

Original comment by api.pe...@gmail.com on 31 Jul 2012 at 2:13