pnp / pnp/sp-dev-fx-controls-react

FileTypeIcon - some icons are not showing

Open
#2,104 12 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:fixed-next-drop
Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Category

[ ] Enhancement

[X] Bug

[ ] Question

Version

3.24.0

Expected / Desired Behavior / Question

We are using FileTypeIcon control with the following parameters:

<FileTypeIcon type={IconType.image} size={ImageSize.small} path={path} />

This should show an icon based on the value passed to path property.

Observed Behavior

Recently we have started seeing 409 Conflict error for some of document extensions:

PowerPoint, Excel, PDF icons are showing as expected. Above icons had been showing as expected until recently.

Steps to Reproduce
  • add FiletypeIcon control with the following properties:
    • type
    • size
    • path
  • load the page with the control

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the FileTypeIcon control and reproduce the issue with type, size, and path set as shown. Inspect the requests for spo.png and docx.png, compare them with the working PowerPoint, Excel, and PDF icons, and verify that the affected document extensions load without 409 Conflict errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.