mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 03:17:06 +02:00
Don't verify-fail if the fst has no certificate
Also remove some debugging prints
This commit is contained in:
parent
119b4fd826
commit
4c0dc118c9
1 changed files with 25 additions and 24 deletions
|
@ -33,8 +33,6 @@ void MixerAvatar::fetchAvatarFST() {
|
|||
_pendingEvent = false;
|
||||
|
||||
QUrl avatarURL = getSkeletonModelURL();
|
||||
auto avatarString = avatarURL.toString();
|
||||
qCDebug(avatars) << "MixerAvatar::fetchAvatarFST: called with" << avatarString;
|
||||
if (avatarURL.isEmpty() || avatarURL.isLocalFile() || avatarURL.scheme() == "qrc") {
|
||||
// Not network FST.
|
||||
return;
|
||||
|
@ -61,7 +59,6 @@ void MixerAvatar::fetchAvatarFST() {
|
|||
ResourceRequest* fstRequest = resourceManager->createResourceRequest(this, avatarURL);
|
||||
if (fstRequest) {
|
||||
QMutexLocker certifyLocker(&_avatarCertifyLock);
|
||||
qCDebug(avatars) << "Requesting FST at" << avatarURL;
|
||||
|
||||
_avatarRequest = fstRequest;
|
||||
_verifyState = requestingFST;
|
||||
|
@ -195,6 +192,7 @@ void MixerAvatar::processCertifyEvents() {
|
|||
case receivedFST:
|
||||
{
|
||||
generateFSTHash();
|
||||
if (_certificateIdFromFST.length() != 0) {
|
||||
QString& marketplacePublicKey = EntityItem::_marketplacePublicKey;
|
||||
bool staticVerification = validateFSTHash(marketplacePublicKey);
|
||||
_verifyState = staticVerification ? staticValidation : verificationFailed;
|
||||
|
@ -219,6 +217,10 @@ void MixerAvatar::processCertifyEvents() {
|
|||
_pendingEvent = false;
|
||||
qCDebug(avatars) << "Avatar" << getDisplayName() << "FAILED static certification";
|
||||
}
|
||||
} else { // FST doesn't have a certificate, so noncertified rather than failed:
|
||||
_pendingEvent = false;
|
||||
_verifyState = nonCertified;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -227,7 +229,6 @@ void MixerAvatar::processCertifyEvents() {
|
|||
QJsonDocument responseJson = QJsonDocument::fromJson(_dynamicMarketResponse.toUtf8());
|
||||
QString ownerPublicKey;
|
||||
bool ownerValid = false;
|
||||
qCDebug(avatars) << "Marketplace response for avatar" << getDisplayName() << ":" << _dynamicMarketResponse;
|
||||
if (responseJson["status"].toString() == "success") {
|
||||
QJsonValue jsonData = responseJson["data"];
|
||||
if (jsonData.isObject()) {
|
||||
|
|
Loading…
Reference in a new issue