Well I got it to work... But it still baffles me...

I got it to work by temporarily commenting out the securityCheck on line 
114 in adminapi/base.cfc

<cfset checkLoginStatus() />

and commenting out lines 46 and 47 in /adminapi/Administrator.cfc:

<cfset session.auth.loggedIn = true />
<cfset session.auth.password = localConfig.system.password />

I think the effectively disables the initial security check. It worked, I 
got in. 

Then I removed my comments, cleared my cookies and restarted the server. It 
_still_ worked... I don't get what is happening - there must be some sort 
of dependency against the initial bluedragon.xml, i.e. changing it "fixes" 
this - because all other things being equal (and as far as I can tell they 
are) the only thing different between the initial "broken" state and the 
"fixed" state is the bluedragon.xml file being rewritten.


On Friday, July 6, 2012 3:49:52 PM UTC-5, Al Holden wrote:
>
>  Navigate to the variables settings of your OpenBD administrator, see if 
> "Use J2EE Sessions" is turned on, then try again.
> Not an authoritative fix, just something that's worked for me.
> Al
>
> On 7/6/2012 11:54 AM, galvanash wrote:
>  
> I am trying out the nightly, but the last two I tried have the same 
> issue... 
>
>  When I try to access /bluedragon/administrator/ I get the following 
> error... I don't get it though, the Application.cfc explicitly enables 
> sessionManagement - why would the scope not be enabled.
>
>  *The requested SESSION scope is not enabled.* 
>
>    Type Application  Function(s) onApplicationStart (C:/Development/
> my.tsged.com/bluedragon/administrator/Application.cfc, Line=32, Column=2)
> |
> +--setInitialSecurity (C:/Development/
> my.tsged.com/bluedragon/adminapi/Administrator.cfc, Line=30, Column=151)
>   Tag Context CFSET <http://openbd.org/manual/?/tag/CFSET>
>  (C:/Development/my.tsged.com/bluedragon/adminapi/Administrator.cfc, 
> Line=46, Column=7)
> |
> +-- CFIF <http://openbd.org/manual/?/tag/CFIF> (C:/Development/
> my.tsged.com/bluedragon/adminapi/Administrator.cfc, Line=44, Column=5)
>     |
>     +-- CFFUNCTION <http://openbd.org/manual/?/tag/CFFUNCTION>
>  (C:/Development/my.tsged.com/bluedragon/adminapi/Administrator.cfc, 
> Line=30, Column=151)
>         |
>         +-- CFSCRIPT <http://openbd.org/manual/?/tag/CFSCRIPT>
>  (C:/Development/my.tsged.com/bluedragon/administrator/Application.cfc, 
> Line=33, Column=3)
>             |
>             +-- CFFUNCTION <http://openbd.org/manual/?/tag/CFFUNCTION>
>  (C:/Development/my.tsged.com/bluedragon/administrator/Application.cfc, 
> Line=32, Column=2)  Source 
>
> 43:     
> 44:     <cfif doSetConfig>
> 45:       <!--- need to log in briefly to be able to call setConfig() --->46: 
>       <cfset session.auth.loggedIn = true />
> 47:       <cfset session.auth.password = localConfig.system.password />
>
> ^ Snippet from underlying CFML source
>
>
>   
> ps. Session Management does work - it works in my user code. It just isnt 
> working in the admin console.
>
>  On Thursday, June 28, 2012 5:33:57 PM UTC-5, Alan Williamson wrote: 
>>
>> okay ... let me give you a quick run down on all the cool stuff that has 
>> just been released in this nightly build. 
>>
>> Caching ..... 
>>
>> Right, in light of the recent discussions regarding caching, i decided 
>> to go back to this area and look at what others were doing and bring us 
>> inline.   We were already nearly in line (such is the woes of being the 
>> first, then others not copying you!). 
>>
>> The caching functions have been rounded out to be compatible with others 
>> as you can see the list of functions here: 
>>
>> http://www.openbd.org/manual/?/function/category/cache 
>>
>> We've taken to the notion of "region" (which we called group) and 
>> applied to that everything.   So now you can use as your caching engines: 
>>
>> * Memory 
>> * Memory + Disk 
>> * MongoDB 
>> * Memcached 
>> * Couchbase 
>> * Amazon ElastiCache 
>>
>> It is dead easy to add more storage engines if we want to.  At this 
>> point i don't see a need for another one outside of these heavy hitters. 
>>
>> We've extended functions like SalesForceXXX(), CFQUERY and 
>> CFCACHECONTENT to use these new region format, so allowing you to 
>> quickly use say a Memcached server for your query requirements. 
>>
>> In addition, we also added caching to CFFUNCTION, so you can now also 
>> cache these calls, using the same region="" attribute to determine which 
>> storage engine you are going to be using. 
>>
>> http://www.openbd.org/manual/?/tag/CFFUNCTION 
>>
>> For a full down on all the configuration etc then go here: 
>>
>> http://www.openbd.org/manual/?/caching 
>>
>> Want more goodness?  okay then ... 
>>
>> Session management across multiple machines is a pain, and this is an 
>> area that to be frank has been poorly supported by the underlying J2EE 
>> engines (esp as some of their techniques simply do not work in the 
>> cloud). 
>>
>> OpenBD now lets you specify a session storage engine for where it will 
>> store its sessions.  Again MongoDB, CouchBase/Memcached are supported 
>> for this. 
>>
>> http://www.openbd.org/manual/?/app_application_cfc 
>>
>> We are using this particular feature in the cloud, using Mongo as our 
>> session storage engine, and it rocks. 
>>
>> For those from the old skool, think of this like 'client' scope without 
>> the performance overhead and done right.   Kept nice and simply and 
>> tuned to ensure only the minimal amount of data is going back and 
>> forward. 
>>
>> We rewrote the session layer here, improving performance overall. 
>>
>> Want more?  okay ... 
>>
>> Managing JSON with remote AJAX frameworks can be a pain when it comes to 
>> the callback on the access=remote on CFFUNCTION.  We've taken the pain 
>> out of this, but allowing you to specify the case of the JSON keys and 
>> format of the date through either control parameters or by specifying 
>> them on the CFFUNCTION itself: 
>>
>> http://www.openbd.org/manual/?/webservices_restlet 
>> http://www.openbd.org/manual/?/tag/CFFUNCTION 
>>
>> You can also control the default behaviour using the bluedragon.xml file: 
>>
>> http://www.openbd.org/manual/?/engine_bluedragonxml#jsoncase 
>> http://www.openbd.org/manual/?/engine_bluedragonxml#jsondate 
>>
>> oooh and just one more thing .... we've added the SalesForce plugin to 
>> the core engine, so there is no more requirement to add that manually. 
>>
>> http://www.openbd.org/manual/?/plugin_salesforce 
>>
>> PHEW!  That was a lot.   We're putting on the final touches to our new 
>> web site and a round of last feature requests that have come in that 
>> we'll be adding in before we spin out 2.3 officially.  We also have some 
>> REALLY cool coming up which once our team have put their CSS touches on 
>> it, you will see the new inbuilt profiler. 
>>
>> Enjoy 
>>
>>
>>  -- 
> online documentation: http://openbd.org/manual/
> http://groups.google.com/group/openbd?hl=en
>
>
>
>  

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to