Skip to content

Commit

Permalink
10.5.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
alderg committed Mar 25, 2019
1 parent 6b292f8 commit 767b302
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 50 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
25-MAR-2019: 10.5.6

- Adds file ID and mime type in GDriveConnector macro editor
- Removes convert warning, cache alive check in lightbox
- Improves handling of redirects and invalid responses
- Removes connection arrows for edge labels

25-MAR-2019: 10.5.5

- Improvements for Gliffy import
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
10.5.5
10.5.6
35 changes: 23 additions & 12 deletions src/main/java/com/mxgraph/online/ProxyServlet.java
Expand Up @@ -94,8 +94,8 @@ protected void doGet(HttpServletRequest request,
.getResponseCode();
int counter = 0;

// Follows a maximum of 2 redirects
while (counter++ < 2
// Follows a maximum of 6 redirects
while (counter++ <= 6
&& (status == HttpURLConnection.HTTP_MOVED_PERM
|| status == HttpURLConnection.HTTP_MOVED_TEMP))
{
Expand All @@ -110,16 +110,27 @@ protected void doGet(HttpServletRequest request,
.getResponseCode();
}

response.setStatus(status);

// Copies input stream to output stream
InputStream is = connection.getInputStream();
byte[] head = (contentAlwaysAllowed(urlParam)) ? emptyBytes
: Utils.checkStreamContent(is);
response.setContentType("application/octet-stream");
String base64 = request.getParameter("base64");
copyResponse(is, out, head,
base64 != null && base64.equals("1"));
if (status >= 200 && status <= 299)
{
response.setStatus(status);

// Copies input stream to output stream
InputStream is = connection.getInputStream();
byte[] head = (contentAlwaysAllowed(urlParam)) ? emptyBytes
: Utils.checkStreamContent(is);
response.setContentType("application/octet-stream");
String base64 = request.getParameter("base64");
copyResponse(is, out, head,
base64 != null && base64.equals("1"));
}
else
{
response.setStatus(HttpURLConnection.HTTP_PRECON_FAILED);
}
}
else
{
response.setStatus(HttpURLConnection.HTTP_UNSUPPORTED_TYPE);
}

out.flush();
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/cache.manifest
@@ -1,7 +1,7 @@
CACHE MANIFEST

# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 03/25/2019 07:06 AM
# 03/25/2019 08:30 PM

app.html
index.html?offline=1
Expand Down
47 changes: 24 additions & 23 deletions src/main/webapp/js/app.min.js

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions src/main/webapp/js/diagramly/App.js
Expand Up @@ -1133,7 +1133,8 @@ App.prototype.init = function()
this.checkLicense();

if (this.drive.user != null && (!isLocalStorage || mxSettings.settings == null ||
mxSettings.settings.closeRealtimeWarning == null))
mxSettings.settings.closeRealtimeWarning == null) &&
(!this.editor.chromeless || this.editor.editable))
{
this.drive.checkRealtimeFiles(mxUtils.bind(this, function()
{
Expand Down Expand Up @@ -1289,7 +1290,8 @@ App.prototype.init = function()
this.mode = App.mode;
}

if (!mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp)
if (!mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp && urlParams['embed'] != '1' &&
(!this.editor.chromeless || this.editor.editable))
{
// Checks if the cache is alive
var acceptResponse = true;
Expand Down Expand Up @@ -3917,11 +3919,17 @@ App.prototype.loadFile = function(id, sameWindow, file, success, force)
return id;
};

if (!this.fileLoaded(tempFile, true))
if (!this.fileLoaded(tempFile, true) && !doFallback())
{
doFallback();
this.handleError({message: mxResources.get('fileNotFound')},
mxResources.get('errorLoadingFile'));
}
}
else if (!doFallback())
{
this.handleError({message: mxResources.get('fileNotFound')},
mxResources.get('errorLoadingFile'));
}
}), mxUtils.bind(this, function()
{
if (!doFallback())
Expand Down
11 changes: 11 additions & 0 deletions src/main/webapp/js/mxgraph/Graph.js
Expand Up @@ -2280,6 +2280,12 @@ Graph.prototype.selectCellsForConnectVertex = function(cells, evt, hoverIcons)
*/
Graph.prototype.connectVertex = function(source, direction, length, evt, forceClone, ignoreCellAt)
{
// Ignores relative edge labels
if (source.geometry.relative && this.model.isEdge(source.parent))
{
return [];
}

ignoreCellAt = (ignoreCellAt) ? ignoreCellAt : false;

var pt = (source.geometry.relative && source.parent.geometry != null) ?
Expand Down Expand Up @@ -3909,6 +3915,11 @@ HoverIcons.prototype.update = function(state, x, y)
}
else
{
if (state != null && state.cell.geometry.relative && this.graph.model.isEdge(state.cell.parent))
{
state = null;
}

var timeOnTarget = null;

// Time on target
Expand Down
18 changes: 9 additions & 9 deletions src/main/webapp/js/viewer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 767b302

Please sign in to comment.