Here the result of my investigations:

Original code based on hobo 2.0.1 and executed with ruby-2.0.0-p648 works
fine.

Executed under ruby 2.1.5p273, it misses the password fields in the
"account" tab , so it makes impossible to change the password.

Same issue with 2.1.8.

I think the problem is in the upgrading procedure of the app.  As I did not
need to change the password until now, I did not see the problems.

Best regards and thank you.

Tx.


2016-08-23 16:00 GMT+01:00 Txinto Vaz <[email protected]>:

> Thanks for fast answer.
>
> I am testing another deployment and probably it is not an issue.  I have
> an installation using the original app (with same code but based in older
> hobo 2.0.1 on Rails 3.2.13 executing Ruby 2.0) and it works fine.  It shows
> the correct fields in the "account" when you are authenticated, so the
> admin can change its password.
>
> I am doing now the exercise to know if I lost the password attribute and
> fields when upgrading ruby, or when upgrading the app's hobo version.  I'll
> keep you informed.
>
> Best regards.
>
> Tx.
>
>
> Probably
>
> 2016-08-23 15:38 GMT+01:00 Henry Baragar <[email protected]>:
>
>> Hello,
>>
>> In my situation, the administrator is not allowed access to the main site
>> and is forced via redirects to the admin subsite.  To change the password,
>> I had to got to the following URL
>>
>> <host>/users/1/account
>>
>> Where I was presented with the change password form.  I could find no
>> link to this page.
>>
>> BTW, I am using Hobo 2.2.6.
>>
>> Henry
>>
>> On 23/08/16 10:24 AM, Txinto Vaz wrote:
>>
>> Hello again.  I am finding a lot of trouble to do a simple thing.
>>
>> I am trying to change the admin password to one of my apps.  I do not
>> want to delete the user.
>>
>> Current hobo version is 2.2.4.
>>
>> I am trying to do it in various ways, as developer through command line
>> and as user, with no success.
>>
>> Maybe I am a little newbie in authentication things, but I've found no
>> documentation of how to do it in two hours of googling.
>>
>> I've found no way to do it from the user profile or account page.
>> Then I tried to do it from the forgot password.  I think in the old days
>> the log files were showing the link, in the new days I had to configure the
>> e-mail (i do not need it because we are a little team) in order to get that
>> link.
>>
>> When finally got the link to reset the password, I've found this:
>>
>> *Started PUT "/users/1-txinto/reset_password" for 10.0.2.2 at 2016-08-23
>> 15:05:03 +0100*
>> *Processing by UsersController#do_reset_password as HTML*
>> *  Parameters:
>> {"page_path"=>"/users/1-txinto/reset_password_from_email/76d61afba8de036208fecc3e87f8012b7ee15ed2",
>> "authenticity_token"=>"6Y5MjBqPnqnBUAvf3NWGR8N/Sg/4yW2NCJUei2tw5+8=",
>> "key"=>"76d61afba8de036208fecc3e87f8012b7ee15ed2",
>> "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"},
>> "id"=>"1-txinto"}*
>> *  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" =
>> ? LIMIT 1  [["id", "1-txinto"]]*
>> *Completed 500 Internal Server Error in 14ms*
>>
>> *ActiveRecord::UnknownAttributeError (unknown attribute: password):*
>> *  activerecord (3.2.13) lib/active_record/attribute_assignment.rb:88:in
>> `block in assign_attributes'*
>> *  activerecord (3.2.13) lib/active_record/attribute_assignment.rb:78:in
>> `each'*
>> *  activerecord (3.2.13) lib/active_record/attribute_assignment.rb:78:in
>> `assign_attributes'*
>> *  activerecord (3.2.13) lib/active_record/attribute_assignment.rb:36:in
>> `attributes='*
>> *  hobo (2.0.1) lib/hobo/model/lifecycles/actions.rb:96:in `prepare!'*
>> *  hobo (2.0.1) lib/hobo/model/lifecycles/transition.rb:49:in `block in
>> run!'*
>> *  hobo (2.0.1) lib/hobo/model/permissions.rb:167:in `with_acting_user'*
>> *  hobo (2.0.1) lib/hobo/model/lifecycles/transition.rb:48:in `run!'*
>> *  hobo (2.0.1) lib/hobo/controller/model.rb:762:in
>> `do_transition_action'*
>> *  hobo (2.0.1) lib/hobo/controller/user_base.rb:126:in
>> `hobo_do_reset_password'*
>> *  hobo (2.0.1) lib/hobo/controller/user_base.rb:43:in
>> `do_reset_password'*
>> *  actionpack (3.2.13)
>> lib/action_controller/metal/implicit_render.rb:4:in `send_action'*
>> *  actionpack (3.2.13) lib/abstract_controller/base.rb:167:in
>> `process_action'*
>> *  actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in
>> `process_action'*
>>
>> So, my questions are:
>>
>> - Is there a bug or maybe a bad configuration of my app?
>> - Is there a way to do the change directly in the database?
>> - Is there a safe way to do it through command line? (the ones I found
>> and tested did not work).
>>
>> Thank you in advance.
>>
>> Tx.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Hobo Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/hobousers.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>>
>>
>>
>> *Henry Baragar*
>>
>> Director, Software Development
>>
>> *CSE* | *Canadian Securities Exchange*
>>
>> *D *(647) 729-8325
>>
>>
>>
>> 220 Bay Street, 9th Floor | Toronto | ON | Canada | M5J 2W4
>>
>> www.thecse.com | @CSE_News <https://twitter.com/CSE_News>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Hobo Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/hobousers.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to