Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 May 2012 at 23:03 UTC
Updated:
29 Jul 2014 at 20:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pfrenssenI have tried my hand at this. I've worked from the 'kernel' branch, and have merged in the latest 8.x from core and rebased the patch against that.
I suppose the same can be done for drupal_access_denied(), replace it with
throw new AccessDeniedHttpException();Comment #2
pfrenssenComment #4
pfrenssenHere is a version of the patch diffed against 8.x.
Comment #6
pfrenssenTests failed because the NotFoundHttpException() was not included.
Comment #7
pfrenssenComment #9
Niklas Fiekas commented#6: 1587850-6-replace_drupal_not_found.patch queued for re-testing.
Comment #11
Crell commentedEr. This issue isn't going to work until the kernel patch goes in. I apprecate your enthusiasm but it's not something that we can realistically work on yet. :-)
Comment #12
Niklas Fiekas commentedHe got the full kernel patch + the patch uploaded for the testbot ;) This is going to be an easy merge when the time comes.
Comment #13
catchComment #14
Crell commentedThis should be fairly routine.
Comment #15
Anonymous (not verified) commentedHere's a re-roll after the big merge.
Comment #16
Niklas Fiekas commentedThanks chrisdolby, the patch applies.
Looks like some changes got lost, especially fixing references in comments and removing the function itself:
Minor style problem:
There should be a newline between the use statement and the following doxygen.
Comment #17
Anonymous (not verified) commentedThanks Niklas, sorry I missed those the first time round!
Here's another patch to remove the function, the last few calls and adjust the comments. I've also fixed the newline issue in book.pages.inc.
Comment #18
Niklas Fiekas commentedExcellent, thanks.
Now were on the nit-pick level, really:
Class names usually have no () behind them.
While we're rerolling it once more anyway, we could add a trailing
.to that sentence.No () here, as well.
().
().
After that, I'd say it's good to go.
Comment #19
Anonymous (not verified) commentedI've fixed the comments to remove the () and add a . to the end of the comment for the search_box() function.
Hopefully that should now cover everything!
Comment #20
Niklas Fiekas commentedThanks a lot. Assuming tests pass.
Comment #21
pfrenssenThere are some things missing in the latest patch that were included in my patch from #6:
This does not respect the 80-character word wrap boundary.
drupal_exit() will never be called in this situation. This was addressed in the patch in #6.
Same here, drupal_exit() should be removed.
There is one additional fix that was not present in #6 though:
But this needs to respect the 80-character word wrap boundary.
Comment #22
Niklas Fiekas commentedThanks, pfrenssen. Sorry, I didn't catch that.
Comment #23
pfrenssenHere is a straight reroll of #6. Additionally I updated the documentation of search_box() as this was missing from my patch as Chris found out. I went one step further and removed the whole line since drupal_access_denied() is gone too now. This is consistent with some of the other documentation changes.
I'm now going over to #1591604: Replace drupal_access_denied() with throw AccessDeniedHttpException and will do the same as there will be conflicts between these two patches as they work on the same lines of documentation.
Comment #24
Niklas Fiekas commentedThanks, pfrenssen.
Now the only missing thing should be the superflous brackets, as above.
The class names in the comments shouldn't have a () behind them.
().
().
().
Comment #25
pfrenssenOh I had not seen that Chris had improved the documentation in my patch. Have included his improvements. Sorry, Chris!
Comment #27
pfrenssen@Niklas, yes thanks! I noticed too, but saw your comment only after I posted the new patch :-/
Comment #28
Niklas Fiekas commentedI am getting
fatal: corrupt patch at line 295when I try to apply the latest patch. Let's see what the testbot says. Other than that this should really be everything, now.Comment #29
pfrenssenI should not try to outsmart the patch command. This is better!
Comment #30
Niklas Fiekas commentedSo .... if this passes: Done.
Comment #31
dries commentedCommitted to 8.x. Thanks!
Comment #32
David_Rothstein commentedFor anyone who's looking for it, a change notification for this issue was started at http://drupal.org/node/1616360