New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't cancel upload when collective.cover is installed #85
Comments
I can confirm the same issue on a different site with Plone 4.3 and collective.upload v1.2b1 installed, so we broke this before. we will need to add a RF test for this case. |
@hvelarde I added a breakpoint in the cancel button callback and I confirm that it is fired. for every download it calls the abort method: I think the version of jquery upload we are using was written with some unsafe code, I mean, some way to code that didn't become specification, and now we can see some problems. I suggest to try again to update the jQuery-File-Upload library. |
@hvelarde now I see that |
as mentioned above, is not working in production in two sites. |
I didn't find an easy way to fix this. I suggest or to Update jQuery File Upload version or to remove cancel button. |
we're not going to update the library because we have no resources for that and because the problem has nothing to do with that. I just tested again and this only happens if you have collective.cover installed in the same instance that collective.upload is installed; because of that, I suspect the problem is related with #51. I updated the issue description to include this information. |
It looks like the Maybe we should add again the dependency of |
instead, I think we must copy the code related with the feature to the package JS so we do not depend on any external package, neither on an specific loading order. |
IMHO it looks like bootstrap is a dependency of jquery file upload, so it makes no sense to remove this dependency. But I'm still not sure with what the problem is. In one specific commit this javascript order change works, but in the master branch it didn't work.. So I'm still trying to figure out what is going on here. Besides, I try to add a Robot Framework test using the Choose File keyword, it fill the input with the file, but didn't trigger jquery file upload events for some reason. |
My bad.. the problem is not related with the position of I realized it after diff the entire generated html and see that the only significant difference in the working and not working was the To make sure, in the console, when I run this code inserting back the $('head').append($('<link rel="stylesheet" type="text/css" media="screen" href="'+portal_url+'/portal_css/Sunburst%20Theme/++resource++collective.js.bootstrap/css/bootstrap.min.css">')) The problem now is to identify what css rule makes the difference, and add it into Pretty weird right? I think so.. |
@hvelarde with the last version of collective.cover 1.4b1 and collective.upload 1.4b1.dev0 the bug is gone. |
sorry to give you bad news but the problem is still present. |
@hvelarde it is definitely working here, could you test again please? |
those are the versions present on customer's staging site; test it there and you'll see the issue. |
I did some tests at one of our customer's staging site, and conclude that updating two packages the problems are solved:
|
yes, because the offending classes will be gone. |
looking now some erros at console, and plone.app.jquery should be a version greater than 1.9.1 |
Plone 4.3 with collective.upload v1.3b1 installed:
folder_contents
view or in the Add new… menu itemnow install collective.cover v1.2b1 in the same instance:
folder_contents
view or in the Add new… menu itemprobably related with #51.
The text was updated successfully, but these errors were encountered: