cancel
Showing results for 
Search instead for 
Did you mean: 

Share - Firefox - File Upload Issue

sthurrott
Champ in-the-making
Champ in-the-making
We have installed Share on Linux, we have setup Apache Reverse Proxy with Self Signed Certificate and run into a couple of problems:

1.  We can't connect using Webdav, error says the folder is unavailable (my connection is as follows:  https://myserver/alfresco/)
2.  We can't upload files using Firefox 3 through the web client in Share.  I can upload files on the Alfresco side using Firefox as well as upload files using IE for both Share and Alfresco.

I suspect we have a configuration error but I'm not sure where to look as sys-admin is not my area of expertise.  Any insight into this would be helpful?

Thanks
50 REPLIES 50

mikeh
Star Contributor
Star Contributor
That's because Adobe Flash doesn't support https using a browser other than MSIE.

Mike

breandanose
Champ in-the-making
Champ in-the-making
Hello,

If anybody else is having javascript problems with Alfresco 3.2 Community using the HTML upload, whereby it's hanging after loading a document saying "Document is being uploaded", the fix is described below. I was getting this bug while upgrading from 3stable to Alfresco 3.2 Community:

Error: missing ) after argument list
Source File: http://{www.mysite.com}/share/proxy/alfresco/api/upload.html
Line: 11, Column: 8
Source Code:
      });

To fix, add an end bracket around these lines
( starting line 466, {Alfresco home}\tomcat\webapps\share\components\upload\html-upload.js):

         var success = "window.parent.Alfresco.util.ComponentManager.get('" + this.id + "')";
and
         var failure = "window.parent.Alfresco.util.ComponentManager.get('" + this.id + "')";


This looks like a bug in this file ("html-upload.js") in the installation for Alfresco 3.2 Community??

Thanks.

mikeh
Star Contributor
Star Contributor
This looks like a bug in this file ("html-upload.js") in the installation for Alfresco 3.2 Community??
Yes, it's been fixed on HEAD (and nightly builds)

Thanks,
Mike

olalarsson
Champ in-the-making
Champ in-the-making
We have also seen this upload issue and I think we know how to work around this. The problem seems to be https and Flash players lack of method to support self signed certificates:

Windows: Firefox 3.5.2 (also tried 3.0) does not work even when we add the cert as trusted in firefox.
Resolution: When using internet explorer add the cert to "Trusted Root Certification Authorities", upload now works in Firefox.
Conclusion: Flash player plugin does not query Fiefox list of trusted certs, it only looks in Windows Certificates.

Mac: Firefox 3.5.2 does not work
Resolution: Open safari, enter the site and when cert warning appears choose to Always trust the cert, the cert is now add to key chain under System and upload in Firefox works.
Conclusion: Flash player plugin does not query Firefox list of certs, it onl looks in keychain.

This seems to work for now.

lgarcia
Champ in-the-making
Champ in-the-making
hi all
in 3.0 version i can't upload files in share. I can't see the icon to search for the documents in folders. someone knows what can i do?
is this a flash player or a browser problem?
Thanks
Luís Garcia

icpeanuts
Champ in-the-making
Champ in-the-making
I tried this solution

Resolution: When using internet explorer add the cert to "Trusted Root Certification Authorities", upload now works in Firefox.

It is still not working. Even after importing the ssl certificate into Internet Explorer, when I try to access Alfresco using https, I still get
"There is a problem with this website's security certificate.
The security certificate presented by this website was issued for a different website's address.
Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.  "


If I choose to continue, I get pop ups, "Security Warnings" I am able to upload file using Internet Explorer, but I can not using Mozilla Firefox, Google Chrome etc..

The only thing I did was following these instructions on using SSL with tomcat. http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html (Where is the ssl certificate store on Windows 2008 Server using the tomcat SSL=howto?)

If there is anything I am not doing, let me know.

userfrank
Champ in-the-making
Champ in-the-making
Hello,

I still have problems to upload files under Share using https with Firefox. Is there still no solution for this problem?

I tried to disable the flash upload by editing file-upload.js like follows but it didn't work.

The code auto-detect whether you have Flash installed or not.

The only way to disable the Flash uploader without uninstalling Flash would be to edit file-upload.js and look for:
this.hasRequiredFlashPlayer = Alfresco.util.hasRequiredFlashPlayer(9, 0, 45)
and change it to:
this.hasRequiredFlashPlayer = false
Thanks,
Mike

There were some instruction to edit the html-upload-file.js but I couldn't find these lines in that file
in file html-upload.js, you have to correct line 219


    216           // If it hasn't load the gui (template) from the server
    217             Alfresco.util.Ajax.request(
    218             {
    219                url: Alfresco.constants.URL_SERVICECONTEXT + "components/upload/html-upload?htmlid=" + this.id,
    220                successCallback:


"modules/html-upload?htmlid=" replaced by  "components/upload/html-upload?htmlid="

But, … html component is still no displayed, maybe a css issue, i don't know …..

can anybody help and tell what to edit in which file so that I can use any upload function in Share with https in Firefox?

many thanks
Frank

indrek
Champ in-the-making
Champ in-the-making
To sum up, if you're using HTTPS with self-signed certificate, then only IE flash upload might work. No workaround for it at the moment, other than to buy an SSL certificate from an authorized provider.

To disable the flash upload completely, change ALFRESCO_DIR/tomcat/webapps/share/components/upload/file-upload.js from:
this.hasRequiredFlashPlayer = Alfresco.util.hasRequiredFlashPlayer(9, 0, 45)
to
this.hasRequiredFlashPlayer = false;

Now copy the contents of file-upload.js to the file file-upload-min.js in the same directory. If you want you can use some online minifier to minify the javascript in file-upload.min.js, but it's not necessary to enable regular uploads.

mikeh
Star Contributor
Star Contributor
Actually, the way to disable the Flash uploader in v3.4 is to add the following configuration to share-config-custom.xml in Tomcat/shared/classes/alfresco/web-extension
<alfresco-config>

   <!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">

      <!–
         File upload configuration
      –>
      <file-upload>
         <!–
            Adobe Flash™
            In certain environments, an HTTP request originating from Flash cannot be authenticated using an existing session.
            See: http://bugs.adobe.com/jira/browse/FP-4830
            For these cases, it is useful to disable the Flash-based uploader for Share Document Libraries.
         –>
         <adobe-flash-enabled>false</adobe-flash-enabled>
      </file-upload>
   </config>

</alfresco-config>

Thanks,
Mike

kriner
Champ in-the-making
Champ in-the-making
Hello,
in a secure environment (https, ssl), the flash plugin tries to find the root certificate that signed the server certificate (or the self-signed certificate) not in the browser certificates container, but in the computer certificates container.
So if you use firefox under windows, you have also to import the root certificate through 'Configuration Panel' -> 'Internet options' -> 'Content' -> 'Certificates' -> "Import …" or else with IE.
If you use firefox under Linux, the root certificate must be installed in the /etc/ssl/certs directory with the 'update-ca-certificates' shell command (needs super-user rights).
Restart firefox after that, is should work.
Regards.