瀏覽代碼

10.0.10 release

Gaudenz Alder 6 年之前
父節點
當前提交
db25525b24

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+28-DEC-2018: 10.0.10
+
+- Fixes for error logging
+
 27-DEC-2018: 10.0.9
 
 - Fixes sync for unsaved files in Desktop

+ 1 - 1
VERSION

@@ -1 +1 @@
-10.0.9
+10.0.10

+ 1 - 1
src/main/webapp/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 12/27/2018 08:50 AM
+# 12/28/2018 09:29 AM
 
 app.html
 index.html?offline=1

文件差異過大導致無法顯示
+ 4 - 3
src/main/webapp/js/app.min.js


文件差異過大導致無法顯示
+ 19 - 18
src/main/webapp/js/atlas-viewer.min.js


文件差異過大導致無法顯示
+ 480 - 479
src/main/webapp/js/atlas.min.js


+ 19 - 9
src/main/webapp/js/diagramly/DrawioFile.js

@@ -360,28 +360,38 @@ DrawioFile.prototype.checkShadow = function(shadow)
 {
 	if (shadow == null || shadow.length == 0)
 	{
+		var data = (this.shadowData == null) ? 'null' :
+			this.compressReportData(
+			this.ui.anonymizeString(
+			this.shadowData),
+			null, 1000);
+		
 		this.sendErrorReport(
 			'Shadow is null or empty',
 			'Shadow: ' + ((shadow != null) ? shadow.length : 0) +
 			'\nShadowPages: ' + ((this.shadowPages != null) ?
 				this.shadowPages.length : 0) +
-			'\nShadowData: ' + ((this.shadowData != null) ?
-				this.shadowData.length : 0));
+			'\nShadowData: ' + data);
 	}
 };
 
 /**
  * Adds the listener for automatically saving the diagram for local changes.
  */
-DrawioFile.prototype.compressReportData = function(data, max)
+DrawioFile.prototype.compressReportData = function(data, limit, max)
 {
-	max = (max != null) ? max : 10000;
-	
-	if (data != null && data.length > max)
+	limit = (limit != null) ? limit : 10000;
+
+	if (data != null && data.length > limit)
 	{
 		data = this.ui.editor.graph.compress(data) + '\n';
 	}
 	
+	if (max != null && data != null && data.length > max)
+	{
+		data = data.substring(0, max) + '[...]';
+	}
+	
 	return data;
 };
 
@@ -423,9 +433,9 @@ DrawioFile.prototype.checksumError = function(error, patches, details)
 		
 		this.sendErrorReport(
 			'Checksum Error',
-			'Patches:\n' + json)
-			((details != null) ? (+ '\n' + details) : '') +
-			'\nData:\n' + data;
+			'Patches:\n' + json +
+			((details != null) ? ('\n\n' + details) : '') +
+			'\n\nData:\n' + data);
 	}
 	catch (e)
 	{

文件差異過大導致無法顯示
+ 1 - 1
src/main/webapp/js/embed-static.min.js


文件差異過大導致無法顯示
+ 1 - 1
src/main/webapp/js/reader.min.js


文件差異過大導致無法顯示
+ 19 - 18
src/main/webapp/js/viewer.min.js