@anonymous-piwik-user opened this Issue on October 29th 2011

Hello Piwik Team,

First, I want to say Thank you for this great tool.

But I have faced a problem with Piwik API.
Below are the steps of how the problem can be achieved:
1. Making a request to any widget without specifying @columns parameter. e.g.: index.php?module=API&format=html&method=VisitsSummary.get&idSite=2&period=range&date=2011-10-01,2011-10-01 first screen shot

It returns Visits = '4' and it's Ok.

2. Making request with incorrect @columns parameter. e.g.:
index.php?module=API&format=html&method=VisitsSummary.get&idSite=2&period=range&date=2011-10-01,2011-10-01&columns=nb_act second screen shot
It returns '0' and it's Ok as such a metric doesn't exist.

3. Making request without @columns parameter again (The same as in first step). e.g.:
index.php?module=API&format=html&method=VisitsSummary.get&idSite=2&period=range&date=2011-10-01,2011-10-01 third screen shot
It returns Visits = '0' and it's _not Ok_.

Please, let me know if something is unclear.
Waiting for your response.
Thank you.

Alex Karpov
Keywords: API, incorrect parameter

@anonymous-piwik-user commented on October 29th 2011

Attachment: First screen shot

@anonymous-piwik-user commented on October 29th 2011

Attachment: Second screenshot

@anonymous-piwik-user commented on October 29th 2011

Attachment: Third screenshot

@mattab commented on October 30th 2011 Member

Thank you for the report!

It was also reported in: #2748

@mattab commented on December 18th 2011 Member

(In [5562]) Fixes #2748 Now throwing exception when requested column does not seem valid
It seems to fix the issue

Refs #2745

This Issue was closed on December 18th 2011
Powered by GitHub Issue Mirror