Skip to content
Snippets Groups Projects
Commit 652ef621 authored by Leslie Linden's avatar Leslie Linden
Browse files

EXP-1791 FIX -- Handle case where initialization with SLM fails in the...

EXP-1791 FIX -- Handle case where initialization with SLM fails in the Merchant Outbox floater in the viewer

* Timeout now triggers the re-initialization logic in the merchant outbox.
parent 4b9cca70
No related branches found
No related tags found
No related merge requests found
......@@ -132,11 +132,12 @@ namespace LLMarketplaceImport
}
if ((status == MarketplaceErrorCodes::IMPORT_REDIRECT) ||
(status == MarketplaceErrorCodes::IMPORT_AUTHENTICATION_ERROR))
(status == MarketplaceErrorCodes::IMPORT_AUTHENTICATION_ERROR) ||
(status == MarketplaceErrorCodes::IMPORT_JOB_TIMEOUT))
{
if (gSavedSettings.getBOOL("InventoryOutboxLogging"))
{
llinfos << " SLM POST clearing marketplace cookie due to authentication failure" << llendl;
llinfos << " SLM POST clearing marketplace cookie due to authentication failure or timeout" << llendl;
}
sMarketplaceCookie.clear();
......@@ -173,11 +174,12 @@ namespace LLMarketplaceImport
llinfos << " SLM GET content: " << content.asString() << llendl;
}
if (status == MarketplaceErrorCodes::IMPORT_AUTHENTICATION_ERROR)
if ((status == MarketplaceErrorCodes::IMPORT_AUTHENTICATION_ERROR) ||
(status == MarketplaceErrorCodes::IMPORT_JOB_TIMEOUT))
{
if (gSavedSettings.getBOOL("InventoryOutboxLogging"))
{
llinfos << " SLM GET clearing marketplace cookie due to authentication failure" << llendl;
llinfos << " SLM GET clearing marketplace cookie due to authentication failure or timeout" << llendl;
}
sMarketplaceCookie.clear();
......
......@@ -50,6 +50,7 @@ namespace MarketplaceErrorCodes
IMPORT_AUTHENTICATION_ERROR = 401,
IMPORT_DONE_WITH_ERRORS = 409,
IMPORT_JOB_FAILED = 410,
IMPORT_JOB_TIMEOUT = 499,
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment