Closed (fixed)
Project:
User Restrictions
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
9 Jul 2011 at 22:42 UTC
Updated:
23 Apr 2014 at 08:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
BenK commentedSubscribing
Comment #2
garypdb commentedSubscribing.
I had to erase the second line on each patched file if I wanted it to work
Comment #3
zeemp commentedThe patch is working great, but after I install it, the login at the site is only working for user #1. Any clue?
Update: This is happening in the module without the patch too.
Comment #4
marco commentedI should have fixed the bug reported by zeemp, and another bug which was related.
The attached patch shouldn't have the problem reported by garypdb.
Thank you for the feedback.
Comment #5
Sparhawk104 commentedI'd love to see this module in working order, but I'm fairly sure I can't use patches. I just hope these fixes will work their way into the module proper soon! Keep up the great work! :)
Comment #6
attiks commentedsub and thanks
Comment #7
attiks commentedComment #8
pfaoclePatch doesn't apply.
Comment #9
pfaocleHowever, applying the patch manually seems to bring the module up to scratch. We have it running on a development site at present.
Patch attached adds one more fix to user_restrictions_ui.module - a correction to the permission name.
Comment #10
snufkin commentedSorry to be a pain, but could we break up this patch to resolve individual issues? I can see several unrelated changes and it would be much more helpful to have separate commit for separate bugs - that way we can roll back or identify issues with each change separately as opposed to debugging a single larger change.
Comment #11
fizk commentedsnufkin, since the patch works and fixes critical issues that can break the entire site (#1223924: Users can't login after the installation of User restrictions module), and that this issue is 6 months old, I'll go ahead and commit it in separate commits so that we can identify issues with each change.
Comment #12
fizk commentedComment #13
Anonymous (not verified) commentedThe code I am developing is different from the one contained in the beta 7 release. Some of the code still needs to be committed. it is better to way to create any patches until I have committed all the code to the development snapshot, which is the release against which the patch are created.
Comment #14
snufkin commentedfizk: I understand that you are eager to fix the module, but in general its a much better practice to discuss and submit the patches for public review in individual changs. I understand that the patch fixes critical issues _also_, but on top of that it contains changes not related to this. I hope kiam releases his updated dev code soon, and then we can close this issue and answer relevant bugs in their own issues.
Comment #15
fizk commentedkiam, thanks for the update, but why are you developing the code in secret? You should be committing developmental work to git on a regular basis so everyone knows what's gong on.
Comment #16
fizk commentedsnufkin, you keep mentioning that there's non-related changes in the patch without going into detail. Exactly which changes are non-related?
Comment #17
snufkin commentedfor instance the string rewrites. based on that - should i really waste hours to figure out what else changes what as well? there is no actual bugreport in this issue. this patch fixes at least two issues that you marked duplicate elsewhere. which change fixes which? I wouldnt know, but the author of the patch would - but instead of splitting up the patch there is one patch for all of those reported issues, and some other style fixes he found along the way.
I am not saying these fixes are irrelevant. they are necessary, but this is the process how maintainers can also see what change fixes what issue. note - i am not a maintainer of this project, i have commit access because of historical reasons. but i maintain a few projects on d.o and i know what helps the maintainers the most. and merging a lot of fixes into one patch does not.
Comment #18
fizk commentedsnufkin, generally I agree with you - I would always prefer separate bugs fixed in their own individual patches, but I've gone over this patch so many times that it looks very simple and straight forward.
I'll give this another week to settle, if nothing changes, I'll commit it. After that we can look into implementing some interesting feature requests into this module, like #1270152: Add rules support for User Restrictions.
Cheers,
Yonas
Comment #19
Anonymous (not verified) commentedI agree with snufkin: Merging many issue reports in one that needs a patch is messy, and not self documenting. It's quite easier to leave issues separated, and create a patch for each issue. When I create a new release, the drush extension that creates the release log will automatically link to the related issue for each commit message. Imagine how useful can be a link to an issue report whose summary is just:
I am not writing code in secret; the fact is that I have been away from home from some months, and when I returned I had to fix some issues with my computer, retrieve the code I developed, and see if it were update, check the code in the repositories, and see if it were updated. I also had other personal issues I had to solve.
My goal is to make the module as more generic as possible, and allow third-party to add rules to the ones already implemented from the module, including the possibility of using temporary rules that don't have any effect after X days/months.
Comment #20
bachomp commentedHow is the commit coming along fizk?
Comment #21
fizk commentedbachomp, I guess it's been over a month now with no activity in git or this thread, so I'll commit this patch as soon as possible. Thanks for reminding me ;-)
Comment #22
fizk commentedbachomp, can you confirm that the patch works for you as well?
Comment #23
bachomp commentedwill do, report back tomorrow.
Comment #24
adammaloneIt's been over a year since this broken module was put on drupal.org. There is a patch available that apparently fixes it, why has this patch not been committed yet?
It should also probably be noted on the module page until then that this module is broken without the patch.
Comment #25
fizk commentedSorry for the delay. The patch has been committed!
Comment #26
fizk commentedThe fixes are included in 7.x-1.0-beta8.