Opened 11 years ago
Closed 11 years ago
#1137 closed defect (fixed)
accessiondetail.aspx page accid parameter suffix bug
| Reported by: | Kurt Endress | Owned by: | dbmulg |
|---|---|---|---|
| Priority: | minor | Milestone: | Post-NPGS Prod'n |
| Component: | Public Website App. | Version: | 1.9.4 Server |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
The accessiondetail.aspx page URL will accept an accession number using the accid parameter, however it does not work if a suffix is included
https://npgsweb.ars-grin.gov/gringlobal/accessiondetail.aspx?accid=PI%20567415%20B
Reported by Rex Nelson
Change History (2)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

I believe the problem is a missing close single quote in forming the SQL
if (!String.IsNullOrEmpty(acc3)) where += " and accession_number_part3 = '" + acc3;
As a matter of fact if you include a lone closing single quote after the suffix in the URL the link works:
https://npgsweb.ars-grin.gov/gringlobal/accessiondetail.aspx?accid=PI%20567415%20B%27