You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there
Great job you did here, I really like your tool and I already recommended dockly to serveral friends :)
I stumbled over an issue after creating some local docker images. The local built images don't have a digest or tag and this leads to a bug in the imageList.widget and then the application crashes: Empty digest:
It's on immageList.widget line 52, at this point image.RepoDigests is of type object and it's value is an empty array. So the if statement evaluates to true and the split on image.RepoDigests[0] fails and leads to the crash.
Empty tag:
It's on immageList.widget line 48, at this point the if statement, to check the tag value evaluates to true. Therefore the split leads then to the crash.
With those two changes dockly runs as smooth as always, when I build it locally. If you would like, I can also create a pull request. Either way I hope I could help a little.
Your environment setup
Operating System: Ubuntu 22.04.2 LTS
Node.js version: v19.3.0
Package version: dockly 3.23.0
Docker version: Docker version 24.0.4
The text was updated successfully, but these errors were encountered:
@saemik94 thank you for the kind words ❤️
would indeed be great if you wanted to send over a pull request and we'll happily merge and publish a new release.
What went wrong?
Hi there
Great job you did here, I really like your tool and I already recommended dockly to serveral friends :)
I stumbled over an issue after creating some local docker images. The local built images don't have a digest or tag and this leads to a bug in the imageList.widget and then the application crashes:
![local-images](https://private-user-images.githubusercontent.com/76621625/254164814-c586b89d-8e4c-46c7-874c-c2517f27e89f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTk2NTIsIm5iZiI6MTczOTA1OTM1MiwicGF0aCI6Ii83NjYyMTYyNS8yNTQxNjQ4MTQtYzU4NmI4OWQtOGU0Yy00NmM3LTg3NGMtYzI1MTdmMjdlODlmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAwMDIzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc1MDg3OWRkODM0OGZjMzVlODUxNDY2MGNjMTk3OGEzNmJlZmUwOGUzZjVlYmEzODk1NTZjZDI4ZjNlZjExNjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dylb3-1oZ60LA4d7qJ-vr-K2N1wGU5cnZ4CeDLS60GA)
![error1](https://private-user-images.githubusercontent.com/76621625/254168226-86209924-91ff-42df-93d8-7b5728194783.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTk2NTIsIm5iZiI6MTczOTA1OTM1MiwicGF0aCI6Ii83NjYyMTYyNS8yNTQxNjgyMjYtODYyMDk5MjQtOTFmZi00MmRmLTkzZDgtN2I1NzI4MTk0NzgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAwMDIzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0M2E4MDc0YTkxN2I2OTY3NTNlY2RlZWNiMmJmMWM0Zjk2M2UyZTU4MWJmYmI5OTkxMDhmZTYxZDc3YmZjY2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.t5fNWufBbkdThaFpjfFa7SZdgYO69CQESWPMgNQxC6Y)
Empty digest:
It's on immageList.widget line 52, at this point image.RepoDigests is of type object and it's value is an empty array. So the if statement evaluates to true and the split on image.RepoDigests[0] fails and leads to the crash.
Empty tag:
![error2](https://private-user-images.githubusercontent.com/76621625/254168564-15b4954a-4418-4b17-a0fc-0bf692de0e45.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTk2NTIsIm5iZiI6MTczOTA1OTM1MiwicGF0aCI6Ii83NjYyMTYyNS8yNTQxNjg1NjQtMTViNDk1NGEtNDQxOC00YjE3LWEwZmMtMGJmNjkyZGUwZTQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDAwMDIzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZlODQ0NDUxNzVlNDNhNjkxNGMzZjY0ZDZlMjViZDcyNzhjNjk1OGNiYzA1NGY3ZjRjYWM5NWJiYmI0Y2I0NmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.g9LAwlsy7cBA9KMRvBeLXEEa9ghn1WBrivW9xrArI14)
It's on immageList.widget line 48, at this point the if statement, to check the tag value evaluates to true. Therefore the split leads then to the crash.
Proposed solution:
immageList.widget line 52
image.RepoDigests?.length ? image.RepoDigests[0].split('@')[0] : getTag(image[2], 0),
immageList.widget line 48
const getTag = (tag, part) => tag?.length ? tag[0].split(':')[part] : 'none'
With those two changes dockly runs as smooth as always, when I build it locally. If you would like, I can also create a pull request. Either way I hope I could help a little.
Your environment setup
The text was updated successfully, but these errors were encountered: