Skip to content
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

set content type to application/json #53

Merged
merged 1 commit into from Nov 5, 2015
Merged

Conversation

reinhardt
Copy link
Contributor

text/json is not supported by old IEs but text/html fails in every browser with plone.protect 3.0.11

@davisagli
Copy link
Member

I think you want application/json

@reinhardt
Copy link
Contributor Author

text/json did fix it for me but application/json makes more sense now you mention it. Cheers!

@pysailor
Copy link
Contributor

@davisagli @frisi This PR fixes the false "Failed" error message for me in yet another Plone project (4.3.2).
Can you please merge this and make a new release? I would be happy to do that too, my Pypi username is "thomasw".
Cheers

@reinhardt reinhardt changed the title set content type to text/json set content type to application/json Oct 29, 2015
@davisagli
Copy link
Member

@pysailor not sure why you addressed @frisi and me; the owners on PyPI are: thet, maethu, vincentfretin, encolpe, ingeniweb, tdesvenain, macadames

@maethu
Copy link
Member

maethu commented Oct 29, 2015

@reinhardt Which IE's are no longer supported?

@reinhardt
Copy link
Contributor Author

In our tests IE9 and earlier still had problems. Bear in mind though that with the recent hotfix those versions have problems with the old content-type setting as well.

@pysailor
Copy link
Contributor

@davisagli Sorry, you're right. I had just seen that you had replied on this PR / the ticket referencing it and addressed you by default. I hadn't really checked if you're also maintainers.

@frisi
Copy link
Member

frisi commented Oct 29, 2015

IE9 wants do download the @@quick_upload_file response (see screenshot), but the file upload works

ie9-upload

@thet: should we add the hotfix to the test-buildout-configs (at least for test-plone-4.3.x.cfg)?

[buildout]
extends =
    test-plone-4.3.x.cfg

eggs += 
    plone4.csrffixes

[versions]
plone.protect = 3.0.14
plone.keyring = 3.0.1
plone.locking = 2.0.8
plone4.csrffixes = 1.0.6

@thet could you add me as a maintainer? i'd add the hotfix to the tests (if you think that makes sense), squash the commits and do the release

@frisi
Copy link
Member

frisi commented Nov 2, 2015

@reinhardt: could you squash your commits please?

@thet , @tdesvenain could you please comment on my proposal to add the csrf-hotfix to the tests.
also, a new release should be done as this affects a lot of people. could you please do the release, or grant me permission? thanks!

@mauritsvanrees
Copy link
Member

Fix looks good to me.

Adding plone4.csrffixes to the test buildout is fine with me. But just to be sure: not to setup.py please in any way. Getting plone4.csrffixes added in another buildout just because you add collective.quickupload would be a bad thing.

Oh, if you are going to squash commits, please rebase on master too as that has already done the unittest2 dependency better than on this pull request branch.

@reinhardt
Copy link
Contributor Author

Thanks for the comments! I've squashed and rebased.

mauritsvanrees added a commit that referenced this pull request Nov 5, 2015
set content type to application/json
@mauritsvanrees mauritsvanrees merged commit ae441f9 into master Nov 5, 2015
This was referenced Nov 9, 2015
@vincentfretin
Copy link
Member

@thet and me have pypi owner role. If somebody want to have Owner role to make a new release please give me your pypi login.

@thet thet deleted the content-type-json branch November 11, 2015 12:37
@thet
Copy link
Member

thet commented Nov 11, 2015

@pysailor @frisi sorry for not coming back to that earlier. i gave you both pypi access. happy releasing!

@frisi
Copy link
Member

frisi commented Nov 11, 2015

thanks @reinhardt @mauritsvanrees @thet and @vincentfretin - release is done

@reinhardt
Copy link
Contributor Author

Brilliant, cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants