Opened 7 years ago
Closed 7 years ago
#1941 closed defect (fixed)
Taxonomy-Attachment Table Contains Incorrect Image URLs
| Reported by: | Benjamin Haag | Owned by: | Benjamin Haag |
|---|---|---|---|
| Priority: | major | Milestone: | Server 1.10.6 |
| Component: | Other | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
The virtual_path field of taxonomy_attach contains numerous incorrect image URLs. A JavaScript redirect had been added to the PW image page to work around the problem; however, images are still not rendering because the script is failing due to CORS restrictions.
Example SQL to remedy the problem
UPDATE taxonomy_attach SET virtual_path = REPLACE(virtual_path, 'http://www.ars-grin.gov/npgs/images/sbml/', 'https://npgsweb.ars-grin.gov/gringlobal/uploads/images/npgs/sbml/')
WHERE virtual_path like 'http://www.ars-grin.gov/npgs/images/sbml/%'
Attachments (1)
Change History (4)
by , 7 years ago
| Attachment: | Trac_1941.jpg added |
|---|
comment:1 by , 7 years ago
Ran the following SQL on dev:
UPDATE taxonomy_attach
SET virtual_path = REPLACE(virtual_path, 'http://www.ars-grin.gov/npgs/images/sbml/', 'https://npgsweb.ars-grin.gov/gringlobal/uploads/images/npgs/sbml/')
WHERE virtual_path like 'http://www.ars-grin.gov/npgs/images/sbml/%'
UPDATE taxonomy_attach
SET virtual_path = REPLACE(virtual_path, 'http://www.ars-grin.gov/npgs/images/nsgc/', 'https://npgsweb.ars-grin.gov/gringlobal/uploads/images/npgs/nsgc/')
WHERE virtual_path like 'http://www.ars-grin.gov/npgs/images/nsgc/%'
comment:2 by , 7 years ago
Ran SQL on prod; verified that all of the following URLs (identified by Marty R.) are now working:
1) https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D4117&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=2O4oMyBbrn2OCb6oO9dktEj9H6tcoOVQA1O0Y4BmK0M%3D&reserved=0
comment:3 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |

PW Screen Shot