Summary.Net Archives
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Summary-Talk] alias/reporting bug?



Hi all, long time no post.

I'm trying to remap a cgi argument for one of my vhosts, and I'm
having some trouble with the resulting reports.

The requests look something like this:

/zones/widgets/downloads.php?did=140
/zones/widgets/downloads.php?did=144
/zones/widgets/downloads.php?did=152

I'm using this alias:

request pattern: '(.*)\?did=(.*)
replace with: $1?id=$2

Running the test string always maps through correctly, like so:

   in: /zones/widgets/downloads.php?did=140
out: /zones/widgets/downloads.php?id=144

I have also tried a couple other regex incantations that accomplish
basically the same thing, according to the test string.
'(\/[A-Za-z0-9\.-\/]+)\?did=([0-9]+) --> $1\?id=$2
'(\/[A-Za-z0-9\.-\/]+)\?did=([0-9]+) --> $1?id=$2

However, when I actually process the logs and look at report/10 or
report/17, the last character of the url seems to be getting truncated:
Request
/zones/widgets/downloads.php?id=14
/zones/widgets/downloads.php?id=15

Upon further investigation, I discovered that I had a handful of
requests in this form:
/zones/widgets/downloads.php?did=388&id=14

So I added a second alias to normalize these:
'(.*)\?id=(.*)&id=(.*) --> $1?id=$2,$3

which again, tests out fine:
   in: /zones/widgets/downloads.php?did=388&id=14
out: /zones/widgets/downloads.php?id=388,14

Unfortunately the reports still don't show either of these results.

In the Subreport Details page, I also have "Query tag to include in
request" set to "id".  Many of my other pages pass "id" already, it's
just this small group I reference above that need to be re-mapped.

I'm using Summary 2.6.8 cli on OSX 10.4.5.

Am I missing something, or is this a bug?

Thanks,

Dale

-------------
Go to <http://summary.net/list.html> to update subscription info.