Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Testicular Slingshot
Alchemy Viewer
Commits
73c1e41a
Commit
73c1e41a
authored
10 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-4301 FIXED failed script upload makes the wait cursor stick
parent
bafcec7d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llassetuploadresponders.cpp
+34
-7
34 additions, 7 deletions
indra/newview/llassetuploadresponders.cpp
indra/newview/skins/default/xui/en/strings.xml
+1
-0
1 addition, 0 deletions
indra/newview/skins/default/xui/en/strings.xml
with
35 additions
and
7 deletions
indra/newview/llassetuploadresponders.cpp
+
34
−
7
View file @
73c1e41a
...
...
@@ -229,21 +229,34 @@ void LLAssetUploadResponder::httpFailure()
{
// *TODO: Add adaptive retry policy?
LL_WARNS
()
<<
dumpResponse
()
<<
LL_ENDL
;
LLSD
args
;
std
::
string
reason
;
if
(
isHttpClientErrorStatus
(
getStatus
()))
{
args
[
"FILE"
]
=
(
mFileName
.
empty
()
?
mVFileID
.
asString
()
:
mFileName
);
args
[
"REASON"
]
=
"Error in upload request. Please visit "
reason
=
"Error in upload request. Please visit "
"http://secondlife.com/support for help fixing this problem."
;
LLNotificationsUtil
::
add
(
"CannotUploadReason"
,
args
);
}
else
{
args
[
"FILE"
]
=
(
mFileName
.
empty
()
?
mVFileID
.
asString
()
:
mFileName
);
args
[
"REASON"
]
=
"The server is experiencing unexpected "
reason
=
"The server is experiencing unexpected "
"difficulties."
;
LLNotificationsUtil
::
add
(
"CannotUploadReason"
,
args
);
}
LLSD
args
;
args
[
"FILE"
]
=
(
mFileName
.
empty
()
?
mVFileID
.
asString
()
:
mFileName
);
args
[
"REASON"
]
=
reason
;
LLNotificationsUtil
::
add
(
"CannotUploadReason"
,
args
);
// unfreeze script preview
if
(
mAssetType
==
LLAssetType
::
AT_LSL_TEXT
)
{
LLPreviewLSL
*
preview
=
LLFloaterReg
::
findTypedInstance
<
LLPreviewLSL
>
(
"preview_script"
,
mPostData
[
"item_id"
]);
if
(
preview
)
{
LLSD
errors
;
errors
.
append
(
LLTrans
::
getString
(
"UploadFailed"
)
+
reason
);
preview
->
callbackLSLCompileFailed
(
errors
);
}
}
LLUploadDialog
::
modalUploadFinished
();
LLFilePicker
::
instance
().
reset
();
// unlock file picker when bulk upload fails
}
...
...
@@ -298,8 +311,22 @@ void LLAssetUploadResponder::uploadUpload(const LLSD& content)
void
LLAssetUploadResponder
::
uploadFailure
(
const
LLSD
&
content
)
{
LL_WARNS
()
<<
dumpResponse
()
<<
LL_ENDL
;
// unfreeze script preview
if
(
mAssetType
==
LLAssetType
::
AT_LSL_TEXT
)
{
LLPreviewLSL
*
preview
=
LLFloaterReg
::
findTypedInstance
<
LLPreviewLSL
>
(
"preview_script"
,
mPostData
[
"item_id"
]);
if
(
preview
)
{
LLSD
errors
;
errors
.
append
(
LLTrans
::
getString
(
"UploadFailed"
)
+
content
[
"message"
].
asString
());
preview
->
callbackLSLCompileFailed
(
errors
);
}
}
// remove the "Uploading..." message
LLUploadDialog
::
modalUploadFinished
();
LLFloater
*
floater_snapshot
=
LLFloaterReg
::
findInstance
(
"snapshot"
);
if
(
floater_snapshot
)
{
...
...
This diff is collapsed.
Click to expand it.
indra/newview/skins/default/xui/en/strings.xml
+
1
−
0
View file @
73c1e41a
...
...
@@ -2509,6 +2509,7 @@ The [[MARKETPLACE_CREATE_STORE_URL] Marketplace store] is returning errors.
<string
name=
"CompileSuccessful"
>
Compile successful!
</string>
<string
name=
"CompileSuccessfulSaving"
>
Compile successful, saving...
</string>
<string
name=
"SaveComplete"
>
Save complete.
</string>
<string
name=
"UploadFailed"
>
File upload failed:
</string>
<string
name=
"ObjectOutOfRange"
>
Script (object out of range)
</string>
<!-- god tools -->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment