Page MenuHomePhabricator

Make SELECT construction in PolicyAwareQuery safer
ClosedPublic

Authored by epriestley on Nov 7 2018, 10:40 AM.
Tags
None
Referenced Files
F14076636: D19785.diff
Thu, Nov 21, 6:59 PM
Unknown Object (File)
Wed, Nov 20, 3:52 PM
Unknown Object (File)
Mon, Nov 18, 8:17 AM
Unknown Object (File)
Wed, Nov 13, 10:13 PM
Unknown Object (File)
Sun, Nov 10, 1:51 PM
Unknown Object (File)
Tue, Nov 5, 8:14 PM
Unknown Object (File)
Thu, Oct 31, 11:20 PM
Unknown Object (File)
Wed, Oct 30, 6:45 AM
Subscribers
None

Details

Summary

Depends on D19784. Ref T13217. Reduce uses of unsafe %Q in SELECT construction.

Test Plan

This reduces the number of safety warnings when loading Phabricator home from ~900 to ~800.

Diff Detail

Repository
rP Phabricator
Branch
qobject5
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21100
Build 28678: Run Core Tests
Build 28677: arc lint + arc unit

Unit TestsFailed

TimeTest
2 msConpherenceRoomTestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
1 msConpherenceRoomTestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
1 msConpherenceRoomTestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
1 msConpherenceRoomTestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
2 msDiffusionURITestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-71/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
View Full Test Results (100 Failed · 260 Passed)

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 7 2018, 10:41 AM
Harbormaster failed remote builds in B21100: Diff 47251!

Failures are just a dependency issue.

This revision is now accepted and ready to land.Nov 14 2018, 7:24 PM
This revision was automatically updated to reflect the committed changes.