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

Exporting ClientSidePage with thumbnail image within Guid in the name fails #568

Closed
magarma opened this issue Jan 10, 2022 · 2 comments
Closed

Comments

@magarma
Copy link
Contributor

magarma commented Jan 10, 2022

Hi,
We've found a case when we have a client side page with a Guid being part of the thumbnail url and it's failing during the export template.
image

This would raise an exception in the line 172.

The page has as thumbnail the image URL
https://xxxxxxxx.sharepoint.com/sites/WhateverTest/Library/761982578-pexels-stanislav-kondratiev-5379088_01D8B295-5963-47F3-B1F8-946AF2A635782021-08-12T10-16-06.jpg

As you can notice when the code is try to find a Guid pattern with Regex, is matching, but of course is not a valid file Id to be got with web.GetFileById

@magarma
Copy link
Contributor Author

magarma commented Feb 1, 2022

This will happen every time there is a thumbnail image added to a page from the O365 stock images.

@jansenbe
Copy link
Contributor

Closing as the fix was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants