You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taking a look at Primer entries for Phase 5 challenge "Create or Edit Account", I've noticed that some transactions are failing. Particularly, this one is one of them.
If we take a look at the LCD endpoint we can see that this is failing due to what it appears to be an invalid picture URI:
invalid request: invalid profile picture uri provided: failed to execute message; message index: 0
The problem is that the provided URI is completely valid and successfully redirects to an existing image.
I think this bug is caused by the currently used RegEx to check for an URI validity, which is:
Bug description
Taking a look at Primer entries for Phase 5 challenge "Create or Edit Account", I've noticed that some transactions are failing. Particularly, this one is one of them.
If we take a look at the LCD endpoint we can see that this is failing due to what it appears to be an invalid picture URI:
The problem is that the provided URI is completely valid and successfully redirects to an existing image.
I think this bug is caused by the currently used RegEx to check for an URI validity, which is:
Proposed solution
To solve this bug, what I propose we do is:
commonTypes.URIRegEx
andprofilesTypes.URIRegEx
regular expressions.commonTypes.IsUriValid
method which takes a generic URI and validates it properly.This will ensure easier to change validation method that is constant across all modules
The text was updated successfully, but these errors were encountered: