-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issue of inconsistent JSON in the reported events caused by u…
…sing Gson instead of the previous Jackson version
- Loading branch information
1 parent
be09ef4
commit d95a115
Showing
12 changed files
with
72 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 23 additions & 23 deletions
46
rasp/jvm/JVMProbe/src/main/java/com/security/smith/client/message/ClassUpload.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
package com.security.smith.client.message; | ||
|
||
import java.time.Instant; | ||
import java.util.Arrays; | ||
|
||
public class ClassUpload { | ||
|
||
private String transId; | ||
private int byteTotalLength; | ||
private int byteOffset; | ||
private int byteLength; | ||
private byte[] classData; | ||
private String trans_id = ""; | ||
private int byte_total_length; | ||
private int byte_offset; | ||
private int byte_length; | ||
private String class_data = ""; | ||
|
||
public String getTransId() { | ||
return transId; | ||
return trans_id; | ||
} | ||
|
||
public void setTransId(String traceId) { | ||
this.transId = traceId; | ||
this.trans_id = traceId; | ||
} | ||
|
||
public int getByteTotalLength() { | ||
return byteTotalLength; | ||
public int getByte_Total_Length() { | ||
return byte_total_length; | ||
} | ||
|
||
public void setByteTotalLength(int byteTotallength) { | ||
this.byteTotalLength = byteTotallength; | ||
this.byte_total_length = byteTotallength; | ||
} | ||
|
||
public int getByteOffset() { | ||
return byteOffset; | ||
return byte_offset; | ||
} | ||
|
||
public void setByteOffset(int byteOffset) { | ||
this.byteOffset = byteOffset; | ||
this.byte_offset = byteOffset; | ||
} | ||
|
||
public int getByteLength() { | ||
return byteLength; | ||
return byte_length; | ||
} | ||
|
||
public void setByteLength(int byteLength) { | ||
this.byteLength = byteLength; | ||
this.byte_length = byteLength; | ||
} | ||
|
||
public byte[] getClassData() { | ||
return classData; | ||
public String getClassData() { | ||
return class_data; | ||
} | ||
|
||
public void setClassData(byte[] class_data) { | ||
this.classData = class_data; | ||
public void setClassData(String class_data) { | ||
this.class_data = class_data; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "{" + | ||
"transId: '" + transId + '\'' + | ||
", byteTotalLength: " + byteTotalLength + | ||
", byteOffset: " + byteOffset + | ||
", byteLength: " + byteLength + | ||
"transId: '" + trans_id + '\'' + | ||
", byteTotalLength: " + byte_total_length + | ||
", byteOffset: " + byte_offset + | ||
", byteLength: " + byte_length + | ||
", timestamp: " + Instant.now().getEpochSecond() + | ||
", classData: " + class_data + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters