Skip to content

Commit

Permalink
Merge pull request 'bugfix-1.10.0' (#3) from bugfix-1.10.0 into relea…
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Sep 24, 2024
2 parents 73b727f + 62f9895 commit 4f8f739
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/documentserver-example/csharp-mvc/Scripts/jscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if (typeof jQuery != "undefined") {

var timer = null;
var checkConvert = function (filePass, fileType) {
filePass = filePass ? filePass : null;
filePass = filePass ? filePass : null;
if (timer != null) {
clearTimeout(timer);
}
Expand Down
1 change: 1 addition & 0 deletions web/documentserver-example/csharp/Forgotten.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static string DocumentType(string fileName)
{
var ext = Path.GetExtension(fileName).ToLower();

if (FormatManager.PdfExtensions().Contains(ext)) return "pdf"; // pdf for pdf extensions
if (FormatManager.DocumentExtensions().Contains(ext)) return "word"; // word for text document extensions
if (FormatManager.SpreadsheetExtensions().Contains(ext)) return "cell"; // cell for spreadsheet extensions
if (FormatManager.PresentationExtensions().Contains(ext)) return "slide"; // slide for presentation extensions
Expand Down
2 changes: 1 addition & 1 deletion web/documentserver-example/csharp/script/jscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if (typeof jQuery != "undefined") {

var timer = null;
var checkConvert = function (filePass, fileType) {
filePass = filePass ? filePass : null;
filePass = filePass ? filePass : null;
if (timer != null) {
clearTimeout(timer);
}
Expand Down
2 changes: 1 addition & 1 deletion web/documentserver-example/java-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<dependency>
<groupId>com.onlyoffice</groupId>
<artifactId>docs-integration-sdk</artifactId>
<version>1.1.4-SNAPSHOT</version>
<version>1.2.1-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public final class Users {
"group-2", Arrays.asList("group-2", ""), new CommentGroups(null,
Arrays.asList("group-2", ""), Arrays.asList("group-2")), Arrays.asList("group-2", ""),
true, new ArrayList<String>(), descriptionUserSecond, false, true,
new Goback("Go to Documents", null)));
new Goback("Go to Documents", false)));
add(new User("uid-3", "Hamish Mitchell", null,
"group-3", Arrays.asList("group-2"), new CommentGroups(Arrays.asList("group-3", "group-2"),
Arrays.asList("group-2"), null), Arrays.asList("group-2"),
Expand Down
2 changes: 1 addition & 1 deletion web/documentserver-example/php/src/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function saveas()
$formatManager = new FormatManager();

$post = json_decode(file_get_contents('php://input'), true);
$fileurl = $post["url"];
$fileurl = str_replace("//localhost", "//proxy", $post["url"]);
$title = $post["title"];
$extension = mb_strtolower(pathinfo($title, PATHINFO_EXTENSION));
$allexts = $formatManager->allExtensions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def commandRequest(method, key, meta=None):
verify=config_manager.ssl_verify_peer_mode_enabled(), timeout=5)

error = response.json()["error"]
if not error == 0:
if error not in (4, 0):
raise Exception(f"Command Service Error #{error}")

return response
Expand Down
2 changes: 1 addition & 1 deletion web/documentserver-example/ruby/app/models/track_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def self.command_request(method, key, meta = nil)
res = http.request(req) # get the response
data = res.body # and take its body
result = JSON.parse(data) # convert the response body into the json format
raise("Command service error: #{result['error']}") if result['error'] != 0
raise("Command service error: #{result['error']}") if [4, 0].exclude?(result['error'])
rescue StandardError => e
raise(e.message)
end
Expand Down

0 comments on commit 4f8f739

Please sign in to comment.