When trying to post to HEAD using an XML-RPC based blogging tool, the server returns "You have to specify a valid date".
Reason:
- node_validate() is called prior to the code which sets the default if the date is not supplied
Fix:
- perform validation after date check - specifically, just prior to node_submit()
The attached patch successfully fixes this problem, allowing posts to be successfully submitted from both Performancing for FF and w.Bloggar (latest of each).
Important Note:
Now that I'm successfully able to post, I'm seeing the following error in the log:
Invalid argument supplied for foreach() in C:\htdocs\drupal\modules\upload.module on line 432.
I believe this error was present before, but was shielded by the "valid date" error, but until this is validated by someone else, I'm not going to file it independently.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
blogapi_validate.patch | 1.32 KB | samc | |
Comments
Comment #1
markus_petrux CreditAttribution: markus_petrux commentedhmm... maybe related to this?
http://drupal.org/node/53666
Comment #2
samc CreditAttribution: samc commentedYes!
I've applied your patch and everything appears to be working.
Thanks!
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedComment #4
samc CreditAttribution: samc commentedJust to clarify, I think the patch I submitted is still valid, and I don't think it's a dupe.
The follow-on discussion between markus and I was regarding another error that was shielded by the one that the patch fixes. The thread markus pointed to me resolved the other issue (i.e. bad argument to foreach() in upload.module).
Comment #5
samc CreditAttribution: samc commentedComment #6
moshe weitzman CreditAttribution: moshe weitzman commentedi can confirm this bug. samc confirms that this is the right fix.
Comment #7
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedapplied
Comment #8
(not verified) CreditAttribution: commented