You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description:
When uploading a CKL with a large comment if you view the asset/STIG that comment is in you get an out of sort memory error.
I have checked to see if there is already an existing issue that describes this bug.
To Reproduce
Steps to reproduce the behavior:
Enter a massive amount of text into a comment (see picture below) (The specific RULEID is SV-224993r569186_rule)
Click onto another RULEID. Click back on the original RULEID
The RULEID is loaded, but an error pops up from the browser
Expected behavior
No error.
Actual behavior GET api/collections/3/reviews/77/SV-224993r569186_rule {"message":"Out of sort memory, consider increasing server sort buffer size","code":"ER_OUT_OF_SORTMEMORY","errno":1038,"sqlState":"HY001","sqlMessage":"Out of sort memory, consider increasing server sort buffer size"}
Screenshots
Environment or Configuration:
STIG Manager 1.0.0-beta.37
mysql Ver 8.0.23
Chrome and Edge
Additional context
select @@global.sort_buffer_size;
262144
select * from performance_schema.variables_info where variable_source!='COMPILED';
select char_length(resultComment) as resultCommentChar, length(resultComment) as resultCommentByte, char_length(actionComment) as actionCommentChar, length(actionComment) as actionCommentByte, char_length(metadata) as metadataChar, length(metadata) as metadataByte from stigman.review where char_length(resultComment) > 5000000 or char_length(actionComment) > 5000000 or char_length(metadata) > 5000000 order by resultCommentChar desc;
Bug Location
I found a bug in the:
Bug Description:
When uploading a CKL with a large comment if you view the asset/STIG that comment is in you get an out of sort memory error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error.
Actual behavior
GET api/collections/3/reviews/77/SV-224993r569186_rule {"message":"Out of sort memory, consider increasing server sort buffer size","code":"ER_OUT_OF_SORTMEMORY","errno":1038,"sqlState":"HY001","sqlMessage":"Out of sort memory, consider increasing server sort buffer size"}
Screenshots
Environment or Configuration:
Additional context
select * from performance_schema.variables_info where variable_source!='COMPILED';
select char_length(resultComment) as resultCommentChar, length(resultComment) as resultCommentByte, char_length(actionComment) as actionCommentChar, length(actionComment) as actionCommentByte, char_length(metadata) as metadataChar, length(metadata) as metadataByte from stigman.review where char_length(resultComment) > 5000000 or char_length(actionComment) > 5000000 or char_length(metadata) > 5000000 order by resultCommentChar desc;
The text was updated successfully, but these errors were encountered: