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)

Trac_1941.jpg​ (9.9 KB ) - added by Benjamin Haag 7 years ago.
PW Screen Shot

Download all attachments as: .zip

Change History (4)

by Benjamin Haag, 7 years ago

Attachment: Trac_1941.jpg​ added

PW Screen Shot

comment:1 by Benjamin Haag, 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 Benjamin Haag, 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

2) ​https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D9304&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=fwqFthxWz%2Beqp624wNJ8d4C3e1SbWTx1Xj%2FnBG1FMsM%3D&reserved=0

3) ​https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D9304&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=fwqFthxWz%2Beqp624wNJ8d4C3e1SbWTx1Xj%2FnBG1FMsM%3D&reserved=0

4) ​https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D11581&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=HrnSFjTy2xGpoA5U5R%2F7mCpNU3WyMIPnn4Aaw1ibqB4%3D&reserved=0

5) ​https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D9703&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=yVG28uS98IQmZ8apcEwk6CVtpQ8SJgFHN8xToq0MlVo%3D&reserved=0

6) ​https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D11061&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=bKhf2VBux0VDaoj8Y2dgfJN5KqbB%2BCim4SGtGxQj3mQ%3D&reserved=0

7) ​https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D11052&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=ydy7puPHfocBXVFsrFj%2FljhjjjaQQBhBr02WDdlrG80%3D&reserved=0

8) ​https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D9390&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=miSBChIbKtasmR%2B%2B1wNome6feoS8%2F1ZiqxqE5QMbfcw%3D&reserved=0

9) ​https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D4235&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=5xZSERwmkkbbqjPIcO0ZJftqXZVeSMz%2BJUZyYVMH6Ag%3D&reserved=0

10) ​https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnpgsweb.ars-grin.gov%2Fgringlobal%2FImageDisplay.aspx%3Ftype%3Dtaxonomy%26id%3D10216&data=02%7C01%7C%7Cf789103702104dade10908d76dcba6ec%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C0%7C0%7C637098593753906848&sdata=mvAaIu1VqpQloMKcIMaSkeQ4FuunhYoRdGdESurNpMo%3D&reserved=0

comment:3 by Benjamin Haag, 7 years ago

Resolution: → fixed
Status: assigned → closed
Note: See TracTickets for help on using tickets.