While debugging PIFRv2, gordonh ran across a problem where the simpletests were failing because the URL for testing the checkout was too long, http://drupaltesting.heydon.com.au/sites/drupaltesting.heydon.com.au/fil.... That resulted in the following error:
OPML Remote URL cannot be longer than 128 characters but is currently 135 characters long.
The remote field doesn't have a maxlength on it, so setting one might get rid of the problem, especially in cases where the remote URL has a combination of access key hashes for private access.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 508280-remote-opml.patch | 571 bytes | gordon |
| #1 | 508280_lengthen_opml_remote_url.patch | 711 bytes | deekayen |
Comments
Comment #1
deekayen commentedThis patch takes the remote field from an undefined maxlength that appears to default to 128 to 1024. I picked 1024 based on the limits of HTML 3 specs, and old versions of IE3 and Opera for GET limits.
Comment #2
gordon commentedI was thinking about this one this morning and really the remote field should not have any limit.
Having a limit of 1024 is good, but it looks kludgy.
Comment #3
gordon commentedHere is a new patch which disables the maximum length for this field.
Basically it explicitly sets the #maxlength to NULL so the maxlength attribute on the input field is not set at all.
Comment #4
deekayen commentedI agree with #3, but I think there are limitations beyond our control like 2083 characters in IE.
Comment #5
dries commentedCommitted to CVS HEAD.