Skip to content

Work/no avatars no cry - #9127

Merged
TheOneRing merged 1 commit into
2.9from
work/no-avatars-no-cry
Oct 7, 2021
Merged

TheOneRing merged 1 commit into
2.9from
work/no-avatars-no-cry

Conversation

@erikjv

@erikjv erikjv commented Oct 6, 2021

Copy link
Copy Markdown
Contributor

The server has a capability to indicate that profile pictures (avatars)
are not available. Previously, the client would try to fetch them no
matter what, and even retry when the server responded with a 404. Now
we take the server capability into account, and do not try to fetch
those when not available.

Fixes: #8758

Comment thread src/gui/connectionvalidator.cpp Resolved
Comment thread src/libsync/capabilities.cpp Outdated
bool Capabilities::avatarsAvailable() const
{
// true by default for older servers, because turning off profile pictures was introduced in later versions
return _fileSharingPublicCapabilities.value(QStringLiteral("profile_picture"), true).toBool();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that should be _capabilities.value("user").toMap().value(
Please retest with demo.owncloud.com

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, apparently it's files_sharing -> user -> profile_picture.

I thought it was on the same level as expire_date, but it turns out there are 4 places where expire_date occurs.

The server has a capability to indicate that profile pictures (avatars)
are not available. Previously, the client would try to fetch them no
matter what, and even retry when the server responded with a 404. Now
we take the server capability into account, and do not try to fetch
those when not available.

Fixes: #8758
@erikjv
erikjv force-pushed the work/no-avatars-no-cry branch from ba3cd71 to da2f97d Compare October 7, 2021 11:52
@erikjv erikjv changed the title Draft: Work/no avatars no cry Work/no avatars no cry Oct 7, 2021
@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2021

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants