coldfusion.server.ServiceFactory get datasource names? cf10

59 views
Skip to first unread message

hofar...@houseoffusion.com

unread,
Aug 13, 2013, 2:04:40 PM8/13/13
to ColdFusion Technical Talk

They turned this off on one of our servers. we do not have access to cfadmin.
can any one think of a way to output the names of dsn's set up on a
server without having access to java objects?

any help would be appreciated!
-m

Detail Access to Java objects in the ColdFusion package has been
disabled by the administrator.
Message Permission denied for creating Java object:
coldfusion.server.ServiceFactory.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356448

hofar...@houseoffusion.com

unread,
Aug 13, 2013, 2:10:15 PM8/13/13
to ColdFusion Technical Talk

Assume "they" are a hosting provider, and have a sandbox setup, you
probably do not have access for this either but maybe worth a try. Read the
neo-datasource.xml and parse that?

Byron Mann
Lead Engineer & Architect
HostMySite.com
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356449

hofar...@houseoffusion.com

unread,
Aug 13, 2013, 2:17:43 PM8/13/13
to ColdFusion Technical Talk

Morchella,

You shouldn't be using the ServiceFactory stuff anyway, as that is
undocumented and subject to change without notice. Take a look at the
Administrator API (provided that isn't locked down as well):
http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fcf.html.
Take a close look at datasource.cfc.

HTH,
-Carl V.
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356450

hofar...@houseoffusion.com

unread,
Aug 13, 2013, 2:34:06 PM8/13/13
to ColdFusion Technical Talk

just remember that anything you can do, so can every other customer on the
server, thus why access to the serviceFactory is not allowed on a shared
server.
Really createObject(java) should not be allowed either in a shared hosting
environment as this is a massive security risk, but so many apps need it
that it is impossible to disable it without crippling any site using a
framework.
If you want this level of access then you need your own server.
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356451

hofar...@houseoffusion.com

unread,
Aug 13, 2013, 2:44:45 PM8/13/13
to ColdFusion Technical Talk

Thanks Guys.
Was just given access to readonly cfadmin where i can do debuggning
and see dsn's

"they" are/is current employer.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356452

hofar...@houseoffusion.com

unread,
Aug 13, 2013, 7:04:51 PM8/13/13
to ColdFusion Technical Talk

hopefully this is an internal app then that won't be going on shared
hosting servers ?
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356465
Reply all
Reply to author
Forward
0 new messages