Stream: troubleshooting

Topic: Uploaded thumbnail images are not shown in Dataverse v6.11


view this post on Zulip Juan (Sep 02 2026 at 14:37):

There is a behavioral difference between Dataverse v6.5 and Dataverse v6.11 that appears to be a bug. After uploading a thumbnail image to a dataset, it cannot be viewed from either the dataset page or the dataverse page.

image.png

image.png

image.png

This issue occurs because getThumbnailUrl() in Dataset.java checks that thumbnailFile is not null:

public String getThumbnailUrl() {
    return thumbnailFile != null ? SystemConfig.getDataverseSiteUrlStatic() + "/api/datasets/" + this.getId() + "/logo" : null;
}

However, after uploading a thumbnail image, thumbnailFile is explicitly set to null:

Java

public Dataset setNonDatasetFileAsThumbnail(Dataset dataset, InputStream inputStream) {
[....]
    dataset = DatasetUtil.persistDatasetLogoToStorageAndCreateThumbnails(dataset, inputStream);
    dataset.setThumbnailFile(null);
    dataset.setUseGenericThumbnail(false);
    return merge(dataset);
}

I think that the getThumbnailUrl() method should check !useGenericThumbnail instead of thumbnailFile != null.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 02 2026 at 16:22):

Hmm, do you think the behavior changed to due #12403 which was included in 6.11?

view this post on Zulip Juan (Sep 02 2026 at 21:36):

Yes, sure. Before these changes , the file was accessed from the ThumbnailServiceWrapper.java without checking the contents of thethumbnailFile variable.
String url = SystemConfig.getDataverseSiteUrlStatic() + "/api/datasets/" + dataset.getId() + "/logo";

Now, it checks for null first in the Dataset.java file:
return thumbnailFile != null ? SystemConfig.getDataverseSiteUrlStatic() + "/api/datasets/" + this.getId() + "/logo" : null;

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 03 2026 at 11:45):

Gotcha. Thanks.

For the dataset page, I can see the dataset-thumbnail as the author but not when I'm logged out:

Screenshot 2026-09-03 at 7.42.31โ€ฏAM.png

Do you see the same?

view this post on Zulip Juan (Sep 03 2026 at 11:52):

Thanks,
In my case, I do not see the logo in both cases. Only I can see the logo from the "Thumbnails + Widgets" edition page .

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 03 2026 at 13:14):

Interesting. Are you thinking about creating an issue or pull request?

view this post on Zulip Juan (Sep 03 2026 at 13:18):

Ok, I will create the issue and the pull request.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 03 2026 at 13:25):

Thanks! :dataverse_man:

view this post on Zulip Juan (Sep 03 2026 at 14:23):

Created the issue: #12666 and pull request #12667

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 03 2026 at 16:26):

Wow, both! Thanks!

view this post on Zulip Juan (Sep 14 2026 at 17:11):

Hi @Philip Durbin ๐Ÿš€ Should I do something more with the bug or the pull request?

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 14 2026 at 19:49):

@Juan nope! It's in the "ready for QA" column on our board.

The CI tests are failing, but it's not your fault. I'm pretty sure we fixed that testCreateSoftwareDatasetNative thing.

You could rebase the branch to get the tests to run again.

view this post on Zulip Juan (Sep 15 2026 at 07:21):

Perfect, after running the rebase there are not failing tests.


Last updated: Oct 02 2026 at 18:51 UTC