sourcify icon indicating copy to clipboard operation
sourcify copied to clipboard

Handle non-checksummed address paths on repo

Open kuzdogan opened this issue 4 years ago • 0 comments

Currently url's to non-checksummed address paths result with a 404. This became evident in #586. The fix works for that case but as a more general solution, the server should redirect to the path with the checksummed address.

Maybe this can be done in the nginx config through a perl script https://stackoverflow.com/questions/3666003/how-i-can-translate-uppercase-to-lowercase-letters-in-a-rewrite-rule-in-nginx-we/11170826#11170826 following the EIP-55 specs

Example

The address https://repo.sourcify.dev/contracts/full_match/3/0xc4599061a811ce1c527209ba610525cb01a17722/

should be redirected to

https://repo.sourcify.dev/contracts/full_match/3/0xc4599061A811CE1c527209bA610525cB01A17722/

kuzdogan avatar Nov 17 '21 13:11 kuzdogan