Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views_ui.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Oct 2014 at 11:00 UTC
Updated:
28 Oct 2014 at 04:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerThere we go.
Comment #2
dawehnerLet's use a better variable name.
Comment #3
catchComment #4
xjmMarked #2353457: Random test failure in Drupal\views_ui\Tests\DisplayPathTest duplicate.
Comment #5
wim leersOnly nitpicks:
I think I know why this uses
UrlHelper::parse()rather thanparse_url(), but shouldn't we document that very briefly?s/path query/query/
?
s/empty just fragment/only fragment/
s/a path/an invalid path/
s/valid/random, valid/
Comment #6
zaporylieRe-roll and fixed 2-5 from #5
Comment #8
zaporylieI missed one string. Should be ok this time.
Comment #9
zaporylieComment #10
dawehnerWell, there has been no special reason, just general usage, as I assumed that there is a good reason why Drupal has introduced its own wrapper for it.
Comment #11
dawehnerBtw. I am not convinced that this belongs into views_ui, given that the code is part of views itself.
Comment #12
chx commentedI saw this error myself. The fix is good, Wim's concerns are addressed and UrlHelper::parse supports internal urls vs parse_url doesn't, I doubt we need to add this to every place where we call it.
Comment #13
alexpottCommitted 557bd08 and pushed to 8.0.x. Thanks!
Comment #15
alexpottJust had an issue fail with the above problem - we've not quite fixed this one :(
Comment #16
dawehnerWell yeah, the "@" is also a problem. I would vote for now, let's generate a safe string and add another custom test string to check for those cases.
Comment #17
penyaskitoWhy is it invalid? Could we hint what is wrong to the user here?
Comment #18
dawehnerMaybe link to the spec?
Comment #19
penyaskitowow, maybe too much?
Can we explicitly say the reserved chars (2.2. Reserved Characters) in that spec?
Comment #20
alexpottAlso an error message that is
Invalid path, see Specis very odd - no full stop. Personally I feelThe path '@path' is invalid.is consistent with our other messages - for example the site front page and MenuLinkContentForm use a similar error message.Comment #21
yesct commentedhad one here too
#2341341-41: Change public 'name' property access on languages to getName() and add back setName()
base://>j*>&:}A
Comment #22
dawehnerMaybe just that.
Comment #23
penyaskitoOK for me.
Comment #24
webchickGood catch.
Committed and pushed to 8.0.x. Thanks!