Re: [4.5] Issue logging in under User account

2015-07-14 Thread Mike Tutkowski
OK, I had a bit of time to debug this more today.

As it turns out, it was my bad.

I was throwing an exception when checkAccess in my API plug-in didn't wish
to allow the user to leverage the specific operation, but I should have
been returning false.

All is well with this now. :)

On Fri, Jul 10, 2015 at 1:56 PM, Mike Tutkowski 
mike.tutkow...@solidfire.com wrote:

 I can try to update again. I noticed this about two days ago when I had
 completed a rebase off of the newest at that time.

 Thanks

 On Fri, Jul 10, 2015 at 1:27 PM, Rohit Yadav rohit.ya...@shapeblue.com
 wrote:

  Try with latest 4.5? The API you listed is called when you open the UI,
 it checks for certain capabilities to initialize some global javascript
 variable (those with g_ prefix in cloudStack.js etc) and checks if the user
 is logged in.

 On 09-Jul-2015, at 10:35 am, Mike Tutkowski mike.tutkow...@solidfire.com
 wrote:

 Hi,

 I recently updated my local 4.5 branch to what's in the CloudStack repo
 and
 I noticed a problem trying to log in as a user of a User account (I get
 back a 432 and the CloudStack GUI doesn't display an error message or
 anything). (If I type in an incorrect password, I get back a proper error
 message, though.)

 http://192.168.129.50:8080/client/api?
 command=listCapabilitiesresponse=jsonsessionkey=PvVFTR5yXM4tITDZUZ6WFHbfhE0_=1436418146466
 432 (432)

 Has anyone else had this trouble?

 Thanks,

 --
 *Mike Tutkowski*
 *Senior CloudStack Developer, SolidFire Inc.*
 e: mike.tutkow...@solidfire.com
 o: 303.746.7302
 Advancing the way the world uses the cloud
 http://solidfire.com/solution/overview/?video=play*™*


 Regards,
 Rohit Yadav
 Software Architect, ShapeBlue




 M. +91 88 262 30892 | rohit.ya...@shapeblue.com
 Blog: bhaisaab.org | Twitter: @_bhaisaab




  Find out more about ShapeBlue and our range of CloudStack related
 services

 IaaS Cloud Design  Build
 http://shapeblue.com/iaas-cloud-design-and-build//
 CSForge – rapid IaaS deployment framework http://shapeblue.com/csforge/
 CloudStack Consulting http://shapeblue.com/cloudstack-consultancy/
 CloudStack Software Engineering
 http://shapeblue.com/cloudstack-software-engineering/
 CloudStack Infrastructure Support
 http://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training Courses
 http://shapeblue.com/cloudstack-training/

 This email and any attachments to it may be confidential and are intended
 solely for the use of the individual to whom it is addressed. Any views or
 opinions expressed are solely those of the author and do not necessarily
 represent those of Shape Blue Ltd or related companies. If you are not the
 intended recipient of this email, you must neither take any action based
 upon its contents, nor copy or show it to anyone. Please contact the sender
 if you believe you have received this email in error. Shape Blue Ltd is a
 company incorporated in England  Wales. ShapeBlue Services India LLP is a
 company incorporated in India and is operated under license from Shape Blue
 Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
 and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is
 a company registered by The Republic of South Africa and is traded under
 license from Shape Blue Ltd. ShapeBlue is a registered trademark.




 --
 *Mike Tutkowski*
 *Senior CloudStack Developer, SolidFire Inc.*
 e: mike.tutkow...@solidfire.com
 o: 303.746.7302
 Advancing the way the world uses the cloud
 http://solidfire.com/solution/overview/?video=play*™*




-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
http://solidfire.com/solution/overview/?video=play*™*


Re: [4.5] Issue logging in under User account

2015-07-10 Thread Rohit Yadav
Try with latest 4.5? The API you listed is called when you open the UI, it 
checks for certain capabilities to initialize some global javascript variable 
(those with g_ prefix in cloudStack.js etc) and checks if the user is logged in.

On 09-Jul-2015, at 10:35 am, Mike Tutkowski 
mike.tutkow...@solidfire.commailto:mike.tutkow...@solidfire.com wrote:

Hi,

I recently updated my local 4.5 branch to what's in the CloudStack repo and
I noticed a problem trying to log in as a user of a User account (I get
back a 432 and the CloudStack GUI doesn't display an error message or
anything). (If I type in an incorrect password, I get back a proper error
message, though.)

http://192.168.129.50:8080/client/api?command=listCapabilitiesresponse=jsonsessionkey=PvVFTR5yXM4tITDZUZ6WFHbfhE0_=1436418146466
432 (432)

Has anyone else had this trouble?

Thanks,

--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
http://solidfire.com/solution/overview/?video=play*™*

Regards,
Rohit Yadav
Software Architect, ShapeBlue


[cid:9DD97B41-04C5-45F0-92A7-951F3E962F7A]


M. +91 88 262 30892 | 
rohit.ya...@shapeblue.commailto:rohit.ya...@shapeblue.com
Blog: bhaisaab.orghttp://bhaisaab.org | Twitter: @_bhaisaab




Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design  Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
CloudStack Software 
Engineeringhttp://shapeblue.com/cloudstack-software-engineering/
CloudStack Infrastructure 
Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
CloudStack Bootcamp Training Courseshttp://shapeblue.com/cloudstack-training/

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England  Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: [4.5] Issue logging in under User account

2015-07-10 Thread Mike Tutkowski
I can try to update again. I noticed this about two days ago when I had
completed a rebase off of the newest at that time.

Thanks

On Fri, Jul 10, 2015 at 1:27 PM, Rohit Yadav rohit.ya...@shapeblue.com
wrote:

  Try with latest 4.5? The API you listed is called when you open the UI,
 it checks for certain capabilities to initialize some global javascript
 variable (those with g_ prefix in cloudStack.js etc) and checks if the user
 is logged in.

 On 09-Jul-2015, at 10:35 am, Mike Tutkowski mike.tutkow...@solidfire.com
 wrote:

 Hi,

 I recently updated my local 4.5 branch to what's in the CloudStack repo and
 I noticed a problem trying to log in as a user of a User account (I get
 back a 432 and the CloudStack GUI doesn't display an error message or
 anything). (If I type in an incorrect password, I get back a proper error
 message, though.)

 http://192.168.129.50:8080/client/api?
 command=listCapabilitiesresponse=jsonsessionkey=PvVFTR5yXM4tITDZUZ6WFHbfhE0_=1436418146466
 432 (432)

 Has anyone else had this trouble?

 Thanks,

 --
 *Mike Tutkowski*
 *Senior CloudStack Developer, SolidFire Inc.*
 e: mike.tutkow...@solidfire.com
 o: 303.746.7302
 Advancing the way the world uses the cloud
 http://solidfire.com/solution/overview/?video=play*™*


 Regards,
 Rohit Yadav
 Software Architect, ShapeBlue




 M. +91 88 262 30892 | rohit.ya...@shapeblue.com
 Blog: bhaisaab.org | Twitter: @_bhaisaab




  Find out more about ShapeBlue and our range of CloudStack related
 services

 IaaS Cloud Design  Build
 http://shapeblue.com/iaas-cloud-design-and-build//
 CSForge – rapid IaaS deployment framework http://shapeblue.com/csforge/
 CloudStack Consulting http://shapeblue.com/cloudstack-consultancy/
 CloudStack Software Engineering
 http://shapeblue.com/cloudstack-software-engineering/
 CloudStack Infrastructure Support
 http://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training Courses
 http://shapeblue.com/cloudstack-training/

 This email and any attachments to it may be confidential and are intended
 solely for the use of the individual to whom it is addressed. Any views or
 opinions expressed are solely those of the author and do not necessarily
 represent those of Shape Blue Ltd or related companies. If you are not the
 intended recipient of this email, you must neither take any action based
 upon its contents, nor copy or show it to anyone. Please contact the sender
 if you believe you have received this email in error. Shape Blue Ltd is a
 company incorporated in England  Wales. ShapeBlue Services India LLP is a
 company incorporated in India and is operated under license from Shape Blue
 Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
 and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is
 a company registered by The Republic of South Africa and is traded under
 license from Shape Blue Ltd. ShapeBlue is a registered trademark.




-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
http://solidfire.com/solution/overview/?video=play*™*


[4.5] Issue logging in under User account

2015-07-08 Thread Mike Tutkowski
Hi,

I recently updated my local 4.5 branch to what's in the CloudStack repo and
I noticed a problem trying to log in as a user of a User account (I get
back a 432 and the CloudStack GUI doesn't display an error message or
anything). (If I type in an incorrect password, I get back a proper error
message, though.)

http://192.168.129.50:8080/client/api?command=listCapabilitiesresponse=jsonsessionkey=PvVFTR5yXM4tITDZUZ6WFHbfhE0_=1436418146466
432 (432)

Has anyone else had this trouble?

Thanks,

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
http://solidfire.com/solution/overview/?video=play*™*