Closed (fixed)
Project:
YouTube Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Jan 2015 at 11:07 UTC
Updated:
27 Mar 2015 at 02:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mpp commentedI wrote a patch to validate the video url length to be less than the available size in the database column.
Comment #4
guschilds commentedThanks for pointing this out and for supplying a patch, mpp. I added the check to
youtube_field_validate()and committed it to the 7.x-1.x branch. I've also committed a similar check to the 8.x-1.x branch.Comment #5
mpp commentedGus, I had another look at it and it seems that the validation needs to happen in the Youtube field itself in youtube_input_validate (see my patch).
When using your patch, I still get an error after submitting a url like http://www.youtube.com/watch?v=1SqBdS0XkV41SqBdS0XkV41SqBdS0XkV41SqBdS0XkV4
Comment #6
mpp commentedComment #7
guschilds commentedmpp, When I test the URL you've provided on that release, I correctly receive the "Please provide a valid YouTube URL." validation error. I'm not able to reproduce what you're experiencing. I'll attach a screenshot of what I'm seeing. Are you testing the 7.x-1.5 release. If not, could you? Thanks.
Comment #8
guschilds commentedClosing again after a month of inactivity. I tested this again with 7.x-1.5 and I get the correct error when using the URL supplied in #5. The error comes from the commit in #3 and reads "Please provide a valid YouTube URL."