Home

Store extension "corruption" bug - repair fails

%3CLINGO-SUB%20id%3D%22lingo-sub-1097814%22%20slang%3D%22en-US%22%3EStore%20extension%20%22corruption%22%20bug%20-%20repair%20fails%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1097814%22%20slang%3D%22en-US%22%3E%3CP%3ENot%20sure%20where%20to%20put%20bug%20reports.%26nbsp%3B%20If%20this%20is%20the%20wrong%20place%2C%20please%20point%20me%20to%20the%20correct%20place%20and%20I'll%20file%20it%20there.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20attempt%20to%20install%20our%20CRX%20from%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fdetail%2Fjffkbfhhjokopidblbjfkippklbhegoj%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fdetail%2Fjffkbfhhjokopidblbjfkippklbhegoj%3C%2FA%3E%26nbsp%3Bthe%20extension%20icon%20disappears%20from%20the%20browser's%20chrome%20and%20I%20get%20a%20message%20in%20about%3Aextensions%20that%20says%20%22%3CSPAN%3EThis%20extension%20may%20have%20been%20corrupted.%22%26nbsp%3B%20The%20%22repair%22%20button%20reinstalls%20the%20CRX%2C%20but%20the%20extension%20immediately%20fails%20again.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThis%20is%20repeatable%20in%20Windows%20and%20OSX%20on%20Dev%2C%20Beta%2C%20and%20Canary.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20spun%20up%20the%20Canary%20build%20on%20OSX%20in%20debug%20mode%20and%20traced%20down%20the%20issue%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3E%5B36361%3A28163%3A0108%2F181031.984127%3AVERBOSE1%3Afile_url_loader_factory.cc(442)%5D%20FileURLLoader%3A%3AStart%3A%20file%3A%2F%2F%2FUsers%2Fusername%2FLibrary%2FApplication%2520Support%2FMicrosoft%2520Edge%2520Beta%2FDefau%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3Elt%2FExtensions%2F%3C%2FSPAN%3E%3CSPAN%20class%3D%22s2%22%3Ejffkbfhhjokopidblbjfkippklbhe%3C%2FSPAN%3E%3CSPAN%20class%3D%22s1%22%3Egoj%2F2.1.624_0%2Fimg%2Flogo%2FSU%2520Icon.svg%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3E%5B36361%3A29443%3A0108%2F181031.984705%3AVERBOSE1%3Acontent_verify_job.cc(278)%5D%20job%20failed%20for%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22s2%22%3Ejffkbfhhjokopidblbjfkippklbhe%3C%2FSPAN%3E%3CSPAN%20class%3D%22s1%22%3Egoj%20img%2Flogo%2FSU%20Icon.svg%20reason%3A2%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3E%5B36361%3A775%3A0108%2F181031.985502%3AVERBOSE1%3Acontent_verifier.cc(507)%5D%20VerifyFailed%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22s2%22%3Ejffkbfhhjokopidblbjfkippklbhe%3C%2FSPAN%3E%3CSPAN%20class%3D%22s1%22%3Egoj%20reason%3A2%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3EI%20checked%20computed%20hashes%20(_metadata%2Fcomputed_hashes.json)%20for%20%22SU%20Icon.svg%22%20and%20verified%20that%20it%20was%20missing.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3E%24%20cat%20jffkbfhhjokopidblbjfkippklbhegoj%2F2.1.624_0%2F_metadata%2Fcomputed_hashes.json%20%7C%20jq%20%7C%20grep%20-i%20SU.Icon%5C.svg%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3ENote%20that%20%22SU%20Icon.svg%22%20has%20a%20space%20in%20it.%26nbsp%3B%20On%20closer%20inspection%2C%20it%20appears%20that%20all%20of%20the%20files%20with%20spaces%20in%20them%20are%20missing%20from%20the%20computed%20hashes%20file.%26nbsp%3B%20Not%20sure%20if%20this%20is%20a%20red%20herring%20or%20the%20issue%20itself.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3EI%20checked%20chromium's%20code%20(content_verify_job.h%20to%20be%20exact)%20and%20the%20%22reason%3A2%22%20says%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22p1%22%3E%3CSPAN%20class%3D%22s1%22%3E%2F%2F%20Failed%20because%20this%20file%20wasn't%20found%20in%20the%20list%20of%20expected%20hashes.%3CBR%20%2F%3ENO_HASHES_FOR_FILE%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
mixdev
Visitor

Not sure where to put bug reports.  If this is the wrong place, please point me to the correct place and I'll file it there.

 

When I attempt to install our CRX from here: https://microsoftedge.microsoft.com/addons/detail/jffkbfhhjokopidblbjfkippklbhegoj the extension icon disappears from the browser's chrome and I get a message in about:extensions that says "This extension may have been corrupted."  The "repair" button reinstalls the CRX, but the extension immediately fails again.

 

This is repeatable in Windows and OSX on Dev, Beta, and Canary.

 

I spun up the Canary build on OSX in debug mode and traced down the issue:

[36361:28163:0108/181031.984127:VERBOSE1:file_url_loader_factory.cc(442)] FileURLLoader::Start: file:///Users/username/Library/Application%20Support/Microsoft%20Edge%20Beta/Defau

lt/Extensions/jffkbfhhjokopidblbjfkippklbhegoj/2.1.624_0/img/logo/SU%20Icon.svg

[36361:29443:0108/181031.984705:VERBOSE1:content_verify_job.cc(278)] job failed for jffkbfhhjokopidblbjfkippklbhegoj img/logo/SU Icon.svg reason:2

[36361:775:0108/181031.985502:VERBOSE1:content_verifier.cc(507)] VerifyFailed jffkbfhhjokopidblbjfkippklbhegoj reason:2

 

I checked computed hashes (_metadata/computed_hashes.json) for "SU Icon.svg" and verified that it was missing.

$ cat jffkbfhhjokopidblbjfkippklbhegoj/2.1.624_0/_metadata/computed_hashes.json | jq | grep -i SU.Icon\.svg

 

Note that "SU Icon.svg" has a space in it.  On closer inspection, it appears that all of the files with spaces in them are missing from the computed hashes file.  Not sure if this is a red herring or the issue itself.

 

I checked chromium's code (content_verify_job.h to be exact) and the "reason:2" says:

// Failed because this file wasn't found in the list of expected hashes.
NO_HASHES_FOR_FILE