oarevalo / BugLogHQ

BugLogHQ is a tool to centralize the handling of automated bug reports from multiple applications. BugLogHQ provides a unified view of error messages sent from any number of applications, allowing the developer to search, graph, forward, and explore the bug reports submitted by the applications.
http://www.bugloghq.com
154 stars 67 forks source link

Too many redirects #36

Closed andyj closed 11 years ago

andyj commented 11 years ago

I have just set up the app but cannot get to the Admin screens. The test page at http://mysite.local/bugLog/test/client.cfm works fine but when I go to /buglog/hq/index.cfm I get the following:

The webpage at http://mysite.local/buglog/hq/index.cfm?event=login&nextevent=login&nextevent=login%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin& has resulted in too many redirects.

Has anyone else seen this?

oarevalo commented 11 years ago

Haven't seen that before, but a common gotcha on first run is to forget changing the "dbtype" config setting for your environment.

You can also try running /test/server.cfm and see what happens.

On Tue, May 21, 2013 at 1:04 AM, Andy Jarrett notifications@github.comwrote:

I have just set up the app but cannot get to the Admin screens. The test page at http://mysite.local/bugLog/test/client.cfm works fine but when I go to /buglog/hq/index.cfm I get the following:

The webpage at http://mysite.local/buglog/hq/index.cfm?event=login&nextevent=login&nextevent=login%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin%2Clogin&has resulted in too many redirects.

Has anyone else seen this?

— Reply to this email directly or view it on GitHubhttps://github.com/oarevalo/BugLogHQ/issues/36 .

Oscar Arevalo http://about.me/oarevalo http://www.coldbricks.com - Content Management System http://www.oscararevalo.com - My Blog

andyj commented 11 years ago

I ran /test/server.cfm, but your CFID and CFTOKEN weren't scoped which caused an issue (I'm run Railo in a strict typed environment).

This got me thinking so I then turned back Railo to the CFML default where it scans the scopes variables,cgi,url,form,cookie and the it all works fine.

I might try and have a look at the code to see how much scoping needs doing but for now i'll just play around locally.

oarevalo commented 11 years ago

I just tried running buglog on my local box with the cascading set to Strict in Railo and was able to reproduce the same error. The code uses unscoped variables ubiquitously when referencing to the local scope within CFC methods. However I did a quick test using the "Small" setting for cascading and didn't notice any problem. You might try that if possible, otherwise adding the missing scopes to the code could prove a considerable challenge.