Closed
Bug 726057
Opened 14 years ago
Closed 11 years ago
Validator warnings missing for .so files on viewer/compare page
Categories
(addons.mozilla.org Graveyard :: Admin/Editor Tools, defect, P2)
addons.mozilla.org Graveyard
Admin/Editor Tools
Tracking
(Not tracked)
VERIFIED
FIXED
2014-10
People
(Reporter: eviljeff, Assigned: magopian)
References
()
Details
(Whiteboard: [ReviewTeam:P1])
Attachments
(1 file)
|
397.74 KB,
image/png
|
Details |
files with binary like extensions, such as .dll .dylib .exe .so are flagged by the validator:
https://addons.mozilla.org/en-US/developers/addon/gipsy-flight-manager/file/143459/validation
but in the viewer the warnings for .so files aren't displayed.
to quote Kris:
"Looks like some middleware is trying to linkfy *.so even in the JSON transmitted by the validator.
File path comes through as: platform/Linux_x86_64-gcc3/components/<a href="http://outgoing.mozilla.org/v1/0d444c619fc0ab7df2eba62e790b487e00b8d23c/http%3A//gipsy.so" rel="nofollow">gipsy.so</a>"
Updated•14 years ago
|
Whiteboard: [ReviewTeam]
Comment 1•13 years ago
|
||
This is still happening. Middleware shouldn't be mangling JSON responses like this.
OS: Windows 7 → All
Hardware: x86_64 → All
Comment 2•13 years ago
|
||
Cvan, is there something that can be done about the *.so linkification?
Updated•11 years ago
|
Whiteboard: [ReviewTeam] → [ReviewTeam:P1]
Comment 3•11 years ago
|
||
Urgh.
if data['validation']:
data['validation'] = limit_validation_results(escape_validation(
data['validation']))
...
return escape_all(validation)
...
if isinstance(v, basestring):
v = jinja2.escape(smart_unicode(v))
v = linkify_with_outgoing(v)
return v
...
Assignee: nobody → kmaglione+bmo
Comment 4•11 years ago
|
||
If it helps any I recently added a `linkify` param to escape all on zamboni as it was causing a similar issue on the full consumer facing validation results page.
https://github.com/mozilla/zamboni/blob/master/apps/amo/utils.py#L717-L732
https://github.com/mozilla/zamboni/commit/3fbe5962a4edf90860f118c12646f14ef549fe3f
Updated•11 years ago
|
Priority: -- → P2
Target Milestone: --- → 2014-08
Updated•11 years ago
|
Target Milestone: 2014-08 → 2014-09
Updated•11 years ago
|
Target Milestone: 2014-09 → 2014-10
| Assignee | ||
Comment 5•11 years ago
|
||
Assignee: kmaglione+bmo → mathieu
| Assignee | ||
Comment 6•11 years ago
|
||
Fixed in https://github.com/mozilla/olympia/commit/5434d59debb9b864a25ac3f7776fa1c49582046a
STR:
1/ upload an addon that has compiled files (like the one from this bug)
2/ check the full validation results during the submission of the addon, and validate that the .so files aren't linkified, but that normal links (full links, with scheme and all, like https://....) are correctly linkified
3/ one the addon is submitted, validate that the .so files are correctly tagged in the file viewer
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 7•11 years ago
|
||
Verified as fixed. The .so files are not linkified and correctly tagged in file viewer : http://screencast.com/t/s8umGPeTDq
Status: RESOLVED → VERIFIED
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•