Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
update.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Sep 2009 at 14:10 UTC
Updated:
29 Jul 2014 at 18:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
anarcat commentedLast patch was relative, fixed the paths... sorry about that.
Comment #4
p.brouwers commentedYour patch was bases on an old version of D7.
This one should do the trick
Comment #5
sun.core commentedLooks like you didn't manage to attract the right folks to this issue due to a wrong component.
Comment #6
aspilicious commentedDid a reroll don't know if it's still relevant.
Comment #7
aspilicious commentedComment #9
aspilicious commentedhmm bot glitch?
Comment #10
dave reidIn general coding and documentation standards need a lot of work. Comments need to be wrapped at 80 characters, functions have starting curly brace on the same line as function name, etc. We also probably need a unit test for this function to ensure it works properly, since I'm guessing that's why we're getting the test failure.
Does not follow standards for @param or @return. We don't also put credits in functions like this.
Powered by Dreditor.
Comment #11
aspilicious commentedTrue, I don't know how the function works, just wanted to push this but I admit I didn't look at the awful comment style!
Comment #12
dww#4 and #6 seem to be completely unrelated to this bug, unless someone can explain how they're connected.
Note, it should be possible to reproduce this via creative use of the 'update_fetch_url' variable.
Comment #13
bfroehle commentedHere's a test ...
Comment #15
bfroehle commentedI added the following bit of code which prevents XML parsing if drupal_http_request had any sort of error, like not being able to successfully fetch the xml data.
I didn't touch any cache clearing code (as in #2, for example), as that seems to be working okay for the moment.
Changed the relevant test slightly to also look for the text
Comment #16
bfroehle commentedTests are in #13 and the patch+tests are in #15.
The actual change to runtime code is small:
The remainder of the patch just adds a test case as evidenced in #13.
Comment #17
claudiu.cristea#16 tested against 7.x and is working.
Comment #18
bfroehle commentedComment #19
dries commentedReviewed this patch and decided to commit it to 7.x and 8.x. Good catch! :)