Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing file icon docx.svg with new CDN url #13560

Closed
antoine-gannat opened this issue Jun 11, 2020 · 15 comments · Fixed by #14569
Closed

Missing file icon docx.svg with new CDN url #13560

antoine-gannat opened this issue Jun 11, 2020 · 15 comments · Fixed by #14569

Comments

@antoine-gannat
Copy link

antoine-gannat commented Jun 11, 2020

Environment Information

  • Package version(s): Since 7.3.3

Issue description:

The DEFAULT_BASE_URL in initalizeFileTypeIcons.tsx has been changed in this commit.
Since then, the file icon for word documents (docx.svg) is not available in size 24.

Actual behavior:

This url return a 404 error.
https://spoprod-a.akamaihd.net/files/fabric-cdn-prod_20200515.001/assets/item-types/24/docx.svg

Expected behavior:

This url should return the docx icon.
https://spoprod-a.akamaihd.net/files/fabric-cdn-prod_20200515.001/assets/item-types/24/docx.svg

Priorities and help requested:

Are you willing to submit a PR to fix? Yes.

Requested priority: High

Products/sites affected: The SearchBox file suggestions in Word online.

@paulgildea
Copy link
Member

@ecraig12345 Sounds like this was a recent regression could you take a look?

@ecraig12345
Copy link
Member

This is really weird, the icon is there but the filename is in uppercase: https://spoprod-a.akamaihd.net/files/fabric-cdn-prod_20200515.001/assets/item-types/24/DOCX.svg

@dmichon-msft Do you know if anything about the new deploy pipeline could possibly have made URLs case-sensitive when they weren't before?

@dmichon-msft
Copy link
Contributor

dmichon-msft commented Jun 16, 2020 via email

@ecraig12345
Copy link
Member

It's also weird that this particular size of item types has some of the filenames in uppercase--on quick perusal of the asset repo (didn't do a search locally to confirm) I didn't see uppercase filenames in other folders. But that would probably be a good thing to check for and fix.

@antoine-gannat
Copy link
Author

Hi,
Is it possible to get back to this issue ? Seems like it keep happening and is causing a lot of issues.
Just got the same issue with this link:

https://spoprod-a.akamaihd.net/files/fabric-cdn-prod_20200708.002/assets/item-types/24/docx.svg

Thanks.

@ecraig12345
Copy link
Member

I thought @dmichon-msft fixed this back in June (but I guess we forgot to close the issue). @antoine-gannat When did you start seeing this issue?

@antoine-gannat
Copy link
Author

I think it's been about a month or so. But I don't think it was ever fixed. What I did to fix was to downgrade to an earlier version.

@dmichon-msft
Copy link
Contributor

dmichon-msft commented Aug 14, 2020 via email

@dzearing
Copy link
Member

Pinging @bigbadcapers

It seems like some of the filetypeicons that are deployed to the cdn have casing issues.

@bigbadcapers
Copy link
Contributor

Ah, because we've had many contributors to the icon system, the original files have a mix of capitalization. I can work to make the update in our source files but that will take a bit (about 500 artboards need to be renamed). Is there any way to ensure the CDN is configured as before where all URLs were referenced in lowercase and this all worked?

Ideally these URLs should work case-insensitive.

@dmichon-msft
Copy link
Contributor

dmichon-msft commented Aug 17, 2020 via email

@bigbadcapers
Copy link
Contributor

We can make a change to the upload pipeline to force lowercase everything again. Might break one or more recently uploaded files if they refer to it using the exact casing.

That would be ideal as it mirrors the previous behavior. at least for filetypes i believe everything worked correct. I'm already starting to work on updating the master illustrator file but it will take me a while to generate the new PR for all the icons.

cc @Jahnp

@bigbadcapers
Copy link
Contributor

Update: I multitasked during 2 of my meetings and typed as fast as I could. I am generating the new icons now and will submit a PR for FabricCDN asap. Will also need to submit one for fabric itself to up the referenced CDN version, pls stand by.

side note: could someone create some sort of build-step that does that automatically when FabricCDN is deployed?

@dmichon-msft
Copy link
Contributor

dmichon-msft commented Aug 17, 2020 via email

@msft-github-bot
Copy link
Contributor

🎉This issue was addressed in #14569, which has now been successfully released as @uifabric/[email protected].:tada:

Handy links:

@microsoft microsoft locked as resolved and limited conversation to collaborators Sep 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants