Private RC seems to be broken now

I was using this

<cfset prc = event.getCollection(private=true) />

To get the full information out of the URL to build up a next previous pagination, inside a module. This worked well for awhile and now I have noticed that it the URL is

/space/:uniqueUrl/module

Eveything is now being ignored, any clues about this. And as this is not in SVN anymore I can’t do a compare with the source code to see what has changed. But is has broken my code that I can safely say.

Regards,

Andrew Scott

http://www.andyscott.id.au/

I don’t get it Andrew, can you explain it further?

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Sure I had to comment out the code I told you about last time, once I did that the currentroutedurl is what it should be from the PRC. In other words if my URL is this

127.0.0.1/space/andyscott/module/page/1

And I try to get the PRC and use the currentroutedurl in a module everything prior to the page is missing. What this means is that if I need that to rebuild the url at any stage then this information is missing for en example of what I am doing, it is not pretty and I think there is a better way but here it is.

<cfif (offset-15) gte 0>

<cfif listFind(prc.currentroutedurl, ‘Page’, ‘/’)>

<cfset routedUrl = listSetAt(prc.currentroutedurl, listLen(prc.currentroutedurl,’/’), rc.page-1, ‘/’ ) />

<cfset routedUrl = prc.currentroutedurl & ‘Page/’ & rc.page-1 />

Newer Entries

As you can see that if I was to use this outside of a module this would work a charm, inside a module it doesn’t work. But it does work if I comment the code that was first reported in the SES interceptor. The code that is comment out is

// Check if the match is a module Routing entry point or not?

if( len( foundRoute.moduleRouting ) ){

// Try to Populate the params from the module pattern if any

for(x=1; x lte arrayLen(foundRoute.patternParams); x=x+1){

params[foundRoute.patternParams[x]] = mid(requestString, match.pos[x+1], match.len[x+1]);

}

// Try to discover the route via the module routing calls

structAppend(params, findRoute(reReplaceNoCase(requestString,foundRoute.regexpattern,""),arguments.event,foundRoute.moduleRouting), true);

// Return if parameters found.

//if( NOT structIsEmpty(params) ){

// return params;

//}

Notice that if paramters is found is commented out, but I do know that this also causes other issues with value pairs as I reported earlier too.

Regards,

Andrew Scott

http://www.andyscott.id.au/

So what you are saying is that the routed URL is the one that does not contain the module entry points?
Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

I guess that is what I am saying.

Regards,

Andrew Scott

http://www.andyscott.id.au/

Andrew,

can you do me a favor,

can you post the module route entry point and a sample module ses route and what would the expected routed url be.

Thanks

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Any news on this Luis, I sent you an email privately and I would like to know if you have found what the problem is?

Regards,

Andrew Scott

http://www.andyscott.id.au/

Andrew, I think I nailed it, try again please from latest push.
Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Hey Luis, cheers I have run some very quick tests and it appears to all be fine. Will run through it a bit more on the weekend, and give it a proper work over.

But I am confident that you have nailed it.

Regards,

Andrew Scott

http://www.andyscott.id.au/

WOOT!!

That was my last issue before starting on wirebox finally!!

So I will launch cachebox 1.1 tomorrow and next is release candidate land!

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Sweet. I just finished a load test of 68k page requests an hour on a single box and ColdBox 3 from git performed perfect.

Awesome, maybe you can blog those results and how they where done, great to have results like that.

If you like we can even post the results on the coldbox blog? Any screencasts on it?

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com