Mango



Thread: File Explorer Error

Created on: 07/15/08 02:59 PM

New topic Reply    Page: 1  

Replies: 30
kramm


kramm's Gravatar
Joined: 03/29/08
Posts: 15

07/15/08 2:59 PM

I am unable to upload files.

In the file explorer I see Assets folder and under that a folder called getting directories.

When I try to upload a file I receive a I/O error.

In Coldfusion logs
there is this error
    Error     jrpp-48    
Base path does not exist The specific sequence of files included or processed is: \admin\com\asfusion\fileexplorer\services\upload.cfm, line: 38

I am using Mango version 1.1

Am I doing something incorrectly or do I not have something set up right?

THanks.
Kelly
Link | Top | Bottom
kramm


kramm's Gravatar
Joined: 03/29/08
Posts: 15

07/19/08 1:08 PM

I went back and installed Mango version 1.0 and the file explorer works.

Is there an issue with version 1.1 and file explorer. When I installed 1.1 it was as a new install and not an upgrade.
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

07/21/08 12:12 AM

Hi Kelly,
There shouldn't be an issue with version 1.1. In fact, I fixed a couple of things with the file explorer in 1.1.
The file explorer looks for folder assets/content by default, maybe the folder didn't exist?
Link | Top | Bottom
msmilonich


msmilonich's Gravatar
Joined: 07/26/08
Posts: 4

07/26/08 12:29 PM

I have just installed 1.1 and am having the same problem. I get an Input Output Error when a file is attempting to be uploaded.

I get the error below when I click the browse button.

Are there any solutions yet?

[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://76.12.245.17/blog/admin/com/asfusion/fileexplorer/services/FileWebService.cfc";]. URL: http://76.12.245.17/blog/admin/com/asfusion/fileexplorer/services/FileWebService.cfc";]
   at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
   at mx.rpc::Responder/fault()
   at mx.rpc::AsyncRequest/fault()
   at DirectHTTPMessageResponder/errorHandler()
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at flash.net::URLLoader/redirectEvent()
Link | Top | Bottom
kramm


kramm's Gravatar
Joined: 03/29/08
Posts: 15

07/27/08 12:56 PM

What worked for me, is installing 1.0 first and then upgrading to 1.1.

--but--

I had already done this before receiving the feedback to make sure there was content folder in the assets folder... so it is possible that when I installed 1.1, I missed uploading the content folder.
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

07/27/08 1:17 PM

Hi there,
I think the problem that msmilonich is experiencing is completely different (though it could have to do with the folder assets/content not existing, please check that). In fact, knowing how the file explorer works, I don't think it even has to do with trying to upload a file (FileWebService.cfc doesn't get called when uploading files). Also, there is no "Browse" button...

Are you even able to see the folders or it stays "Getting directories...".

There seems to be an error when calling the webservice, but I can't tell what the problem is without looking at the cf logs or using an HTTP analyzer or in some other way.
Link | Top | Bottom
msmilonich


msmilonich's Gravatar
Joined: 07/26/08
Posts: 4

08/30/08 3:46 PM

I can see Getting directories... and that is all that happens. Not sure what to do next. I can attempt to upload and it looks like it is working, but then I get and io error on file...

Each time I click on the Getting Directories it shows the error again.

Any suggestions?
Link | Top | Bottom
msmilonich


msmilonich's Gravatar
Joined: 07/26/08
Posts: 4

08/30/08 3:47 PM

Also, the file path in the browser is listed at NOPATH.
Link | Top | Bottom
msmilonich


msmilonich's Gravatar
Joined: 07/26/08
Posts: 4

08/30/08 4:50 PM

Ok, so I did some testing on the pathing, since I did have the assets/content folder in place. I discovered that it was attempting to go to the wrong path. I changed the line in the application.cfc in the admin folder to the following:

<cfset application.asfFileExplorerPluginRoot = expandPath("/blog/assets/content/") />

since I have the blog in a blog directory. I guess I expected this to pick that up on installation.

Are there any issues this could cause?

Thanks...
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

09/04/08 12:23 AM

Hi,
It may not cause any issues except that it will be overwritten in the next update, if you choose to update. But you will be able to set the path in the config file.
Link | Top | Bottom
bphamous


bphamous's Gravatar
Joined: 05/18/10
Posts: 18

04/04/11 12:28 PM

Hi Laura,

I’m having the same problem, all I see is “Getting Directories…” and path in the browser is listed at NOPATH.

I attempt to update the application.cfc as msmilonich mention but application.cfc doesn’t exist in the admin folder.
I’m running Mangoblog verion 1.6 and ACF 7 and 8. Do you have any other suggestions?
Brad
Link | Top | Bottom
bphamous


bphamous's Gravatar
Joined: 05/18/10
Posts: 18

04/04/11 12:35 PM

I forgot to mention that it works fine in Firefox 4. The problem is in Internet Explorer 7.
Brad
Link | Top | Bottom
tsqware


tsqware's Gravatar
Joined: 06/04/10
Posts: 7

04/18/11 12:17 PM

Hello All,

I am having a similar issue with the File Explorer. I am using CF 9 and upgraded to Mango version 1.6, and when I click on the Files screen to select images in my blog, I get an error message
Security error accessing url
. And under the Folders heading I see
Assets / Error getting directories
. I was able to download the HttpFox addon for Firefox, and in the activity log I see 3 lines with errors:

application/x-shockwave-flash (NS_BINDING_ABORTED)   http://blog/admin/assets/swfs/AssetSelector.swf?path=%2Fblog%2Fadmin%2Fcom%2Fasfusion%2F



application/x-shockwave-flash (NS_ERROR_FAILURE)   http://blog/admin/assets/swfs/FileExplorerLite.swf



NS_ERROR_UNKNOWN_HOST   http://computername/crossdomain.xml


I could not find where computername was coming from, it appears it is coming from the swf.

Any suggestions?
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

04/18/11 12:24 PM

Using Fiddler or Charles to debug would give us more information.
Link | Top | Bottom
visual28

Wizard
visual28's Gravatar
Joined: 05/18/08
Posts: 652

04/18/11 12:30 PM

did you modify the links for posting on here or is the error message really missing the domain name?

Example: http://blog/ is not a valid domain name.

Could this be an indication that the config is botched?

-
Mark - www.visual28.com | www.mangowear.com
Link | Top | Bottom
tsqware


tsqware's Gravatar
Joined: 06/04/10
Posts: 7

04/18/11 12:41 PM

Hi Laura and visual28,

Yes, I modified the links for the domain name.

I downloaded Fiddler, and I copied the row that contained the error:

#   Result   Protocol   Host   URL   Body   Caching   Content-Type   Process   Comments   Custom   

162   400   HTTP   204814-web1   /crossdomain.xml   39      text/html   firefox:4304
Link | Top | Bottom
tsqware


tsqware's Gravatar
Joined: 06/04/10
Posts: 7

04/25/11 1:09 PM

I changed the links for the purpose of the post, but the actual url - which is the url in question - is http://www.chelseapiers.com/sportcenterblog. It's not a botched config: I was hiding the domain name but it I guess that only added to the confusion.

My results from Fiddler are in the previous post (4/18/11, 12:41pm) and are still the same, and I still cannot get FileExplorer to work.

Any suggestions?
Link | Top | Bottom
JMR


JMR's Gravatar
Joined: 08/09/12
Posts: 7

08/09/12 2:57 AM

Good morning

I've deployed in a Linux / CF901 / Apache Virtual Host / Apache Reverse Proxy a fresh install of MangoBlog 1.6 with MySQL

All features are working fine except the file utilities (upload/browse)

All attempts (in FF/IE/Chrome) are returning error getting directories and a red popup "security error accessing url"

In a dump of the blog settings I see correct paths to the asset/content folder

Any ideas/suggestions on how to helpe to solve this issue?

Thank you
Link | Top | Bottom
JMR


JMR's Gravatar
Joined: 08/09/12
Posts: 7

08/13/12 1:20 AM

After searching I found the issue

Issue is related to the use of our ReverseProxy, if look at the URL's of the webservice they are all associated with the 127.0.0.1 url. This is more related to ColdFusion than mangoBlog.

To solve the problem on the cfc used by the fileexplorer I had to add the servicename attribute to the cfcomponent tag (attribute supported since CF8), this attribute contains the server URL and the path to the cfc.

I also had to add this attribute in the cacheService.cfc to allow caching operations.

Do you think it may be possible to add this attributes to the blog configuration? Modified code is at disposal if I can contribute.
Link | Top | Bottom
JMR


JMR's Gravatar
Joined: 08/09/12
Posts: 7

08/13/12 1:28 AM

sorry the attributes is serviceaddress not servicename

<cfcomponent serviceaddress="http://SERVERNAME/admin/com/asfusion/fileexplorer/Authorizer.cfc">;
Link | Top | Bottom
kartogram


kartogram's Gravatar
Joined: 09/17/12
Posts: 3

09/17/12 1:58 PM

Hi JMR,

we're having the exact same issue with one of our deployments and would like you to share the solution you've found in detail. If possible, send me the modified code to [email protected]. You help would be much appreciated!

Regards,
Simon
Link | Top | Bottom
JMR


JMR's Gravatar
Joined: 08/09/12
Posts: 7

09/17/12 11:56 PM

Simon,

Please find my complete answer below (so everybody share the same information)

To allow proper operations I've modified 3 different cfc's as follow

1. Install_FOLDER/admin/com/asfusion/fileexplorer/Authorizer.cfc
modified the <cfcomponent> tag as follow
<cfcomponent serviceaddress="http://BLOG_SERVER_ADDRESS/admin/com/asfusion/fileexplorer/Authorizer.cfc">;

2. Install_FOLDER/admin/com/asfusion/fileexplorer/FileWebService.cfc
modified the <cfcomponent name="fileBrowser" access="public" description="Facade for directory and file management."> tag as follow
<cfcomponent name="fileBrowser" access="public" description="Facade for directory and file management." serviceaddress="http://BLOG_SERVER_ADDRESS/admin/com/asfusion/fileexplorer/FileWebService.cfc">;

3. Install_FOLDER/api/CacheService.cfc
modified the <cfcomponent> tag as follow
<cfcomponent serviceaddress="http://BLOG_SERVER_ADDRESS/api/CacheService.cfc">;

The first 2 modifications are needed for proper operations of the fileExplorer component, the last one is needed to allow cache reset operations.

Regards,

JMR
Link | Top | Bottom
kartogram


kartogram's Gravatar
Joined: 09/17/12
Posts: 3

09/18/12 4:04 AM

Hi JMR, thanks for this. Could you please confirm which ColdFusion version is being run on the server your blog is on. I've updated the code as per your directions, but nothing has changed.

Also, my hosting providers were checking this thing from their end and came to conclusions that file explorer is not compatible with the ColdFusion 10 as exact same setup works perfectly on version 9.

Regards,
Simon
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

09/23/12 6:16 PM

Hi Simon,

If you make any change you would probably need to restart the application. (ie: restart the server, change the application name or try clicking reload config in the admin, although the last option may not completely work).
Link | Top | Bottom
JMR


JMR's Gravatar
Joined: 08/09/12
Posts: 7

09/23/12 11:56 PM

I'm using in production cf 9.0.1 Linux Enterprise edition (JRun). The CF server is behind one Apache 2.2.x server wich is behind another Apache 2.2.x instance running as reverse proxy.

I've encountered the same issue with CF10 on a dev box and I think you might try my workaround (it's just code editing so rolling back is quite easy).

And as mentionned by Laura but you might need to reload the config by restarting the server as the reload button is affected by the issue... (see point 3 of my previous entry).

Hope it helps
Link | Top | Bottom
JMR


JMR's Gravatar
Joined: 08/09/12
Posts: 7

09/24/12 12:53 AM

I forgot you can also reload the configuration using the method described by Laura at the end of this entry
http://www.mangoblog.org/forums/messages.cfm?threadid=C8E18330-B20C-C65B-3C22D65CA355DED1

URL to invoke
http://yourbloginstall/api/CacheService.cfc?method=reloadConfig&username=YOURUSERNAME&password=YOURPASSWORD

It avoids you to restart the CF server.
Link | Top | Bottom
tsqware


tsqware's Gravatar
Joined: 06/04/10
Posts: 7

09/26/12 11:16 AM

JMR,

That totally worked. Thank you so much. It appeared that the application was looking for the crossdomain.xml file using the computer name instead of the domain url. I saw it right away using Fiddler and Firebug - the file not found error cleared up.
Link | Top | Bottom
gklandes


gklandes's Gravatar
Joined: 04/01/11
Posts: 12

12/04/12 9:56 AM

I am having the issue described above where the file explorer hangs on "getting directories". It displays "NOPATH" as the location if I click on "getting directories".

I added the "serviceaddress" attributes but that did not seem to help. I noticed this error in the logs:
COLDFUSION-OUT.LOG
Dec 4, 2012 11:43:14 AM Information [ajp-bio-8012-exec-9] - Using Axis 2 framework for servicing the web service request to the endPoint https://mydomain.com/admin/com/asfusion/fileexplorer/FileWebService.cfc.

Dec 4, 2012 11:43:14 AM Error [ajp-bio-8012-exec-9] - The web service operation caused an invocation exception.The root cause was that: javax.servlet.ServletException: https is forbidden The specific sequence of files included or processed is: C:\PathToMangoBlog\admin\com\asfusion\fileexplorer\FileWebService.cfc''

We force https in the Application.cfc. When I turn off the https redirect and allow the admin access over http, the error goes away but I still don't get a response from the file explorer.

We are running CF10 on Win08R2/IIS7. Has anyone else had this issue in 10? Is there a fix?
Link | Top | Bottom
kgraham


kgraham's Gravatar
Joined: 01/28/13
Posts: 2

01/28/13 12:22 PM

After all the suggested fixes, I am also still experiencing the same issue as gklandes:

I am having the issue described above where the file explorer hangs on "getting directories". It displays "NOPATH" as the location if I click on "getting directories".


We are also running CF10 on Win08R2/IIS7.

Any guidance would be greatly appreciated.
Link | Top | Bottom
gklandes


gklandes's Gravatar
Joined: 04/01/11
Posts: 12

01/29/13 4:17 AM

@kgraham I did finally get my production blog working again, but it required replacing the editor and file explorer with a licensed CKeditor+CKfinder. I will try to get a how to up on my personal blog at some point, but it is really pretty straightforward. Some of the items above gave me the starting points.
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

04/06/13 7:08 PM

Hi all,

For your information, issue with CF 10 and the file explorer is now fixed with update to version 1.7
Link | Top | Bottom

New Post

Please login to post a response.