Custom ticket query on TRAC broken

Discussion about forum rules, new moderators, website content, website layout, VideoLAN artwork etc..
Forum rules
Please read the forum's rules carefully before posting. This forum should not be used to post VLC usage related questions.
styxxx
New Cone
New Cone
Posts: 2
Joined: 14 May 2018 23:32

Custom ticket query on TRAC broken

Postby styxxx » 14 May 2018 23:41

Hi,

it seems like your trac installation has some issues.
I cannot show custom querys. Nothing happens at all.

Console log says:
Form submission failed, as the <SELECT> element named '0_type_mode' was implicitly closed by reaching the end of the file. Please add an explicit end tag ('</SELECT>')
End tags are indeed missing in the source for all the <select> elements. The code is therefore invalid since both the starting and ending tag are mandatory.


Using Google Chrome 66.0.3359.139

thresh
Site Administrator
Site Administrator
Posts: 92
Joined: 22 Mar 2006 11:28
VLC version: git master
Operating System: Linux
Location: Korolev, Russian Federation

Re: Custom ticket query on TRAC broken

Postby thresh » 15 May 2018 10:45

Sorry, cant reproduce on both Linux/Chromium 66.0.3359.139 (no extensions whatsoever, clean install), and Windows 10 Chrome 66.0.3359.170 (also no extensions and clean install on a VM).
Konstantin Pavlov

styxxx
New Cone
New Cone
Posts: 2
Joined: 14 May 2018 23:32

Re: Custom ticket query on TRAC broken

Postby styxxx » 09 Oct 2018 13:25

The problem still exists.

Go to https://trac.videolan.org/vlc/query and select some filter from the drop-down. Watch the console, it will show something like:
Form submission failed, as the <SELECT> element named '0_description_mode' was implicitly closed by reaching the end of the file. Please add an explicit end tag ('</SELECT>')
The name depends on your selection since the element is created dynamically by query.js.

The error is in the createSelect function (starting at query.js line 43) which only creates the start tag. It does the same for other tags (createCheckbox, createRadio, ..).

Code: Select all

// Create a <select> function createSelect(name, options, optional, optgroups) { var e = $($.htmlFormat('<select name="$1">', name)); <- just the opening tag here if (optional) $("<option>").appendTo(e); appendOptions(e, options); if (optgroups) { for (var i = 0; i < optgroups.length; i++) { var grp = optgroups[i]; var optgrp = $($.htmlFormat('<optgroup label="$1">', grp.label)); appendOptions(optgrp, grp.options); optgrp.appendTo(e); } } return e; }
When selecting a filter the code at line 163 is triggered ($filters.find("select[name^=add_filter_]").change(function()) which includes the buggy createSelect.

I don't know why your Chromium doesn't complain because there actually is an error in the code.


Return to “Forum, Website and Artwork discussion”

Who is online

Users browsing this forum: No registered users and 16 guests