13786
Reporter: feedback bot
Assignee: trobertson
Type: Feedback
Summary: Change in URL search characters
Priority: Blocker
Resolution: Fixed
Status: Closed
Created: 2013-09-06 14:15:56.474
Updated: 2013-09-27 13:56:46.034
Resolved: 2013-09-27 13:56:46.01
Description: For the story at http://uat.gbif.org/page/201, I input http://uat.gbif.org/occurrence/search?TAXON_KEY=5352650&TAXON_KEY=3660652&TAXON_KEY=2952823&TAXON_KEY=3833515&TAXON_KEY=7303627&TAXON_KEY=7298618&TAXON_KEY=7316881&TAXON_KEY=7266082&TAXON_KEY=2945821&TAXON_KEY=5576757&TAXON_KEY=5663185&TAXON_KEY=3992461&TAXON_KEY=4034071&TAXON_KEY=5547323&TAXON_KEY=4091431 for the related resources link 'Occurrences of species listed'.
That link is transcribed as /uat.gbif.org/occurrence/search?TAXON_KEY[0]=5352650&TAXON_KEY[1]=3660652&TAXON_KEY[2]=2952823&TAXON_KEY[3]=3833515&TAXON_KEY[4]=7303627&TAXON_KEY[5]=7298618&TAXON_KEY[6]=7316881&TAXON_KEY[7]=7266082&TAXON_KEY[8]=2945821&TAXON_KEY[9]=5576757&TAXON_KEY[10]=5663185&TAXON_KEY[11]=3992461&TAXON_KEY[12]=4034071&TAXON_KEY[13]=5547323&TAXON_KEY[14]=4091431 on the UAT site, and leads to the full database rather than the filtered search the original URL led to.
]]>
Author: fmendez@gbif.org
Created: 2013-09-10 16:18:30.431
Updated: 2013-09-10 16:18:30.431
[~cvizitiu@gbif.org] can you check how links are handled by drupal?....the link must be like the original one, the brackets were added by drupal ( i guess)
http://uat.gbif.org/occurrence/search?TAXON_KEY=5352650&TAXON_KEY=3660652&TAXON_KEY=2952823&TAXON_KEY=3833515&TAXON_KEY=7303627&TAXON_KEY=7298618&TAXON_KEY=7316881&TAXON_KEY=7266082&TAXON_KEY=2945821&TAXON_KEY=5576757&TAXON_KEY=5663185&TAXON_KEY=3992461&TAXON_KEY=4034071&TAXON_KEY=5547323&TAXON_KEY=4091431
Author: cvizitiu@gbif.org
Created: 2013-09-10 16:33:41.051
Updated: 2013-09-10 16:33:55.331
http://php.net/manual/en/function.parse-str.php
"It bears mentioning that the parse_str builtin does NOT process a query string in the CGI standard way, when it comes to duplicate fields. If multiple fields of the same name exist in a query string, every other web processing language would read them into an array, but PHP silently overwrites them"
So:
https://drupal.org/node/1983174
... but, as you can see, not a high priority for them.
So let's see what I'm doing wrong in the local patch that I keep in our local version of the module. :-s
Author: cvizitiu@gbif.org
Created: 2013-09-26 17:08:38.377
Updated: 2013-09-26 17:09:41.045
[~omeyn@gbif.org] the issue is being already worked around on staging: http://staging.gbif.org/page/201 basically [~mdoering@gbif.org] agreed that we name the params as param-number and he'll rewrite them later by removing the "-number"
Update: you can see it working on http://portaldev.gbif.org/page/201
Author: trobertson@gbif.org
Created: 2013-09-27 13:56:46.032
Updated: 2013-09-27 13:56:46.032
With https://code.google.com/p/gbif-portal/source/detail?r=2304 the portal will now redirect the "XXX-Number" parameters correctly which Drupal is emitting.
An example of one of these links exists on the footer of page:
http://portaldev.gbif.org/page/202
See the "All plant records from French Guiana, Surinam and Guyana available through GBIF" link.
[~thirsch@gbif.org] [~cvizitiu@gbif.org] Please reopen this and ping me if this is still an issue