Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[httpFoundation] Request::getPreferredFormat() - Submit form, force to download render page with IE7 or IE 11 (with strategy GPO to emulate IE7) #34857

Copy link
Copy link
Closed
@thewalkingcoder

Description

@thewalkingcoder
Issue body actions

Symfony version(s) affected: 4.4.1
php 7.2.25 or 7.2.9

Description
If you try to submit form with bad value, like a empty value with the Assert\NotBlank when you submit the form, only on IE 11 (with strategy GPO to emulate IE7) or IE 7 the render page is forced to download.

On chrome , EDGE, Firefox the render is correct with the message "This value should not be blank."

The same code and apache config with symfony 4.3.x work correctly

How to reproduce

You can try https://github.com/thewalkingcoder/symf44.git

Is a fresh symfony 4.4.1 --full install, with very very simple Entity, form and template.

Additional context

ex IE 11
image

ex : chrome
image

I try multiple tests

linux apache/php 7.2.25

with alias http://symf44.local
chrome, firefox, edge -> ok
IE 7 -> fail

no alias like http://localhost/myapp/public
chrome, firefox, edge -> ok
IE 7 -> ok

symfony server
with alias http://symf44.local with reverse proxy
chrome, firefox, edge -> ok
IE 7 -> fail

no alias like http://localhost:8080
chrome, firefox, edge -> ok
IE 7 -> ok

**windows xp with Uwamp beurk !! **
with alias
chrome, firefox -> ok
IE 7 -> fail

no alias like http://localhost/myapp/public
chrome, firefox -> ok
IE 7 -> fail

I try to change or remove .htaccess (provide to apache-pack) same result
I try to change Constraint NotBlank annotation to php style or YAML same result

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.