#41 ✓resolved
Nando

Magic states stops also the "User" callback chain

Reported by Nando | February 14th, 2009 @ 08:24 PM

Hi Ben,

enjoying Authlogic along with Paperclip plugin I've discovered the following problem: when a magic state return false UserSession stops its callback chain but it also stops the one associated with its authenticated model (User). Maybe they both (User and UserSession) share the same CallbackChain instance?

With this behavior Authlogic does not permit (does not gives authorization) to others part of the app to do whatever they were about to do.

In my case, that prevents Paperclip to actually store the file uploaded by the user at the registration form. I can workaround my problem with a before_validation in the UserSession (and disabling magic states in order to keep my confirmed? method), but I think it deserves a ticket as is a clear "authorization vs authentication" issue (the main reason I prefer Authlogic over the other options;).

Thanks a lot in advance, Nando

Comments and changes to this ticket

  • Nando

    Nando February 16th, 2009 @ 01:18 PM

    I've been trying to reproduce my problem with a test with no success. Authlogic does NOT interfere in "User" callbacks chain.

    I've even wrote an integration test with Paperclip and it passes!.

    I guess the bug it's related with the whole environment of my app.

    Paperclip saves attachments defining an :after_save callback that in my app does not fire within the "first updating round". If Authlogic decides that "record" is valid? and calls record.save_without_session_maintenance, then, in the after_save of that "second round" the Paperclip callback function its called. If a magic state returns false that second update don't come and the function (save_attached_files) is never called.

    But in the tests I've done in a clean app things always works as expected.

    I'm very sorry for the noise. Next time I'd try to test it before creating the ticket.

  • Ben Johnson

    Ben Johnson February 16th, 2009 @ 01:37 PM

    • State changed from “new” to “resolved”

    No problem, I want to make sure Authlogic is solid and follows standard practices. If you dig deeper and find a problem please update me.

    thanks.

  • Richard Nicely

    Richard Nicely October 1st, 2019 @ 05:04 AM

    It is truly pride minute for the pride and bias which is praising the 200th commemoration and now I'm able to order essay uk to manage the quality work. The book is actually so amazing and has the enchantment with the goal that bunches of the individuals still love to peruse this book. It is actually so defining moment.

  • Elias

    Elias May 2nd, 2020 @ 02:43 PM

    New web site is looking good. Thanks for the great effort. togel hari ini

  • uzair awan

    uzair awan May 12th, 2020 @ 04:47 PM

    Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitors. class action lawsuit lawyers

  • Elias

    Elias May 15th, 2020 @ 04:19 PM

    I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. tiktok video downloader

  • Elias

    Elias May 17th, 2020 @ 07:00 AM

    I needed to thank you for this phenomenal read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. qq online terpercaya

  • Elias

    Elias May 21st, 2020 @ 02:32 PM

    First You got a great blog .I will be interested in more similar topics. i see you got really very useful topics, i will be always checking your blog thanks. mountbatten residences

  • Elias

    Elias May 30th, 2020 @ 03:50 AM

    • Tag set to i needed to thank you for this phenomenal read!! i unquestionably adored each and every piece of it. i have you bookmarked your site to look at the new stuff you post.

    I needed to thank you for this phenomenal read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. http://202.95.10.79

  • vishal kkamble
  • Elias

    Elias June 6th, 2020 @ 07:26 AM

    • Tag cleared.

    You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! Agen DominoQQ Online

  • Odette Mariemus

    Odette Mariemus June 14th, 2020 @ 03:46 AM

    Awesome post bud, i like to see and visit any information on this posting. I think i will back again, to see another good one here, If you want to know more about me, please don't hesitate to contact me here: Agen Domino99

  • Elias

    Elias July 16th, 2020 @ 06:06 AM

    I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. Netflix Premium APK

  • Elias

    Elias August 3rd, 2020 @ 05:15 AM

    wonderful content material material and enormous layout. Your internet site deserves each part of one in all part of pension of of the positive comments its been getting. qq online

  • Elias

    Elias August 19th, 2020 @ 10:41 AM

    thank you for choosing out the length to talk about this, I ecosystem all-powerful about it and love analyzing more upon this topic. it is agreed beneficial for me. thanks for this sort of critical gain in the back of again. Kissanime ru

  • karsan

    karsan August 26th, 2020 @ 05:11 AM

    There is so much in this article that I would never have thought of on my own. Your content gives readers things to think about in an interesting way. Swamp Boys Seeds

  • Elias

    Elias September 14th, 2020 @ 08:03 AM

    Your weblog is an excessive amount of exquisite. i've observed adeptly what i was looking. moreover, the content vibes is top notch. thanks for the nudge! buy dumps online

  • Elias

    Elias September 14th, 2020 @ 08:15 AM

    I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. learn the facts here now

  • Elias

    Elias September 28th, 2020 @ 01:17 PM

    Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitors. Zombie Army PC Download

  • karsan

    karsan October 8th, 2020 @ 08:10 AM

    I understand this column. I realize You put a many of struggle to found this story. I admire your process. cannabis seeds

  • karsan

    karsan October 19th, 2020 @ 04:24 AM

    wow this saintly however ,I love your enter plus nice pics might be part personss negative love being defrent mind total poeple , graphic design service

  • Elias

    Elias October 29th, 2020 @ 07:17 AM

    I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious. VMake Video Editor Mod APK

  • karsan

    karsan November 3rd, 2020 @ 07:14 AM

    Profit primarily prime quality items -- you can understand them all within: best poker club

  • karsan

    karsan November 12th, 2020 @ 02:11 PM

    Amazing, this is great as you want to learn more, I invite to This is my page. Custom Patches

  • karsan

    karsan November 16th, 2020 @ 08:35 AM

    Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have. LOGO DESIGN SERVICE

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Pages