writeDump( createObject("java", "coldfusion.server.ServiceFactory").getRuntimeService().getMappings() );
Is there a specific reason your taffy mappings need to exist at the server level? Their docs show that App-level mappings are acceptable: http://docs.taffy.io/3.0.0/
It’s much easier to handle those mappings at the app level and checking for them is as simple as a structKeyExists().
if(!structKeyExists(getApplicationSettings().mappings,'/mymapping')){
}
Server-level mappings seems so… 2008. :)
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/d51811ea-1244-4193-a5b5-896d0f970f86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This cropped up when someone else ran into the issue. I did some testing and reported back to Adam about this in regards and have just been inquiring to try and close in on a solution until he gets a moment to look at it as well.
--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/d377e6cf-c05a-4bfb-8733-d7adb46a09f2%40googlegroups.com.
--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/7bd7c638-0e31-48a1-add1-65e99aa3bf4e%40googlegroups.com.
I'm thinking certain parts of cfadmin should be opened up as an object of functions carrying out the similar tasks it already does; but from a read only view. If certain info is to be deemed sensitive from even a read only standpoint, make the server/web context password a required parameter.
I don't know how sensitive some might feel this info to be, but from a framework developers perspective, I think it makes sense to make info like mappings and similar info available to view for config/environment setup etc.
And to suggest another, why does it matter whether the resources are defined as a mapping at all? Wouldn't directoryExists( '/resources' ) be sufficient to determine whether resources had been defined via any means?
--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/96d6966e-375b-4844-bbd6-32e728e5cc83%40googlegroups.com.
First of all Lucee nor Railo never supported this (serviceFactory.getRuntimeService).Check out the Railo source
Our politic about this always was, if there is a high demand we implement also undocumented functionality. We did for example a lot of undocumented functionality back in the days when "Transfer" was popular, transfer has used a lot of undocumented functionality. But if something is not requested or there is an other way to do it we will not do it.It is part of the base architecture of Lucee that you cannot change persistent setting without having a password, we have no plans to change that fact. Change this would be a security concern.
Micha
Am Sonntag, 16. August 2015 schrieb Adam Tuttle :
Tony caught up with me elsewhere about the directoryExists() suggestion, and I like it. Thanks, Brad. I think we'll be switching to that.--To directly answer your question about "it only taking a few seconds in commandbox" ~~ that would require having CB installed and being familiar enough with it to (a) know that and (b) know what to do from there -- and I have neither of those things (until now, which solves A). Don't forget that as programmers once we've done/mastered something, we tend to think of it as fast and easy, when in reality it is not for those that haven't mastered it yet.Also I'm working 14 hour days through the end of August to meet a deadline, so no, I don't have time to play with CommandBox.So, I guess, for now... immediate problem solved. But as Kai has pointed out multiple times, it would be nice if Lucee supported functionality like this (and others) in some supported way.Adam
On Saturday, August 15, 2015 at 11:48:52 AM UTC-4, Tony Junkes wrote:On Saturday, August 15, 2015 at 9:51:06 AM UTC-4, Brad Wood wrote:And to suggest another, why does it matter whether the resources are defined as a mapping at all? Wouldn't directoryExists( '/resources' ) be sufficient to determine whether resources had been defined via any means?I'm not sure I was aware that directoryExists() works with mappings. Interesting.
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/96d6966e-375b-4844-bbd6-32e728e5cc83%40googlegroups.com
For more options, visit https://groups.google.com/d/optout
--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get
your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google
Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com
<mailto:lucee+un...@googlegroups.com>.
To post to this group, send email to lu...@googlegroups.com
<mailto:lu...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/2f5d7cc1-8bf0-4d8b-967c-01cbdccbe52d%40googlegroups.com
<https://groups.google.com/d/msgid/lucee/2f5d7cc1-8bf0-4d8b-967c-01cbdccbe52d%40googlegroups.com?utm_medium=email&utm_source=footer>.
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/AA3hFdg0k_M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/e545ddb1-ba59-48e4-ab14-1104d6d3b110%40googlegroups.com.