Defect #34841

URL encoding to pass arguments is broken with Edge and IE

Added by Benoit Petit 8 months ago. Updated 7 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:Cant reproduce Affected version:

Description

Hello,
I've got a tracker and I'm providing to my user an URL to validate or not some boolean fields defined in custom fields.
E.g. : http://myredmine/projects/tracker/issues/new?issue%5Bcustom_field_values%5D%5B4%5D=1

you should read : http://myredmine/projects/tracker/issues/new?issue[custom_field_values][4]=1

As you can see, square brackets are coded. Chrome and firefox are reading them without issue, Edge and IE are not reading them and just open the page without changing the fields.

Any idea how to solve that ?
Running 4.0.3.stable

thanks a lot


Related issues

Related to Redmine - Feature #34978: Drop support for IE 11 New

History

#1 Updated by C S 8 months ago

You know that both (Legacy Edge) are End of Life?

#2 Updated by Benoit Petit 8 months ago

C S wrote:

You know that both (Legacy Edge) are End of Life?

I am, but that is still used.

Additional question, is there a way to prefill a custom field, that would be hidden or read-only ? Basically filled by the URL but without showing the field to the user.

Best

#3 Updated by Go MAEDA 7 months ago

  • Resolution set to Cant reproduce

I cannot reproduce the issue with Internet Explorer 11 and Redmine 4.1.2.

I was able to turn on a boolean custom field using the following URL.

http://127.0.0.1:3000/projects/ecookbook/issues/new?issue%5Bcustom_field_values%5D%5B12%5D=1
(http://172.16.244.1:3000/projects/ecookbook/issues/new?issue[custom_field_values][12]=1)

#4 Updated by Benoit Petit 7 months ago

ok, my issue was may be that the field has to be visible by the user.
I've made additional trials and it might be the root cause.
Can you please give a try to hide the custom field and see if the URL can still set the field?

#5 Updated by Go MAEDA 7 months ago

Benoit Petit wrote:

Can you please give a try to hide the custom field and see if the URL can still set the field?

Does "hide" mean tweaking "Visible" setting in Custom fields ยป Issues page?

If the custom field is not configured to be visible to the user's role, I think the user will not be able to set a value to the custom field.

#6 Updated by Benoit Petit 7 months ago

Yes exactly, not visible but changed by the URL.that helps to sort some issues by internal items that are not easy to explain to newbies..

#7 Updated by Go MAEDA 6 months ago

Also available in: Atom PDF