[GH-ISSUE #27] "Download As" error #16

Closed
opened 2026-02-26 09:35:01 +03:00 by kerem · 2 comments
Owner

Originally created by @mdelerue on GitHub (Feb 21, 2017).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/27

Hi,

I created a docker image for Only Office.
Here is the Dockerfile :

FROM onlyoffice/documentserver:latest
COPY ./default.json /etc/onlyoffice/documentserver/default.json

The problem is that I get an error when I try to download any document by clicking "Download As". The server send a HTTP 400 error.

I just modified the default.json by adding secret string and enabling token :

"secret": {
        "inbox": {
          "string": "ABCDEFGHJ",
          "file": "",
          "tenants": {}
        },
        "outbox": {
          "string": "ABCDEFGHJ",
          "file": ""
        },
        "session": {
          "string": "ABCDEFGHJ",
          "file": ""
        }
      },
      "token": {
        "enable": {
          "browser": true,
          "request": {
            "inbox": true,
            "outbox": true
          }
        },
        "inbox": {
          "header": "Authorization",
          "prefix": "Bearer "
        },
        "outbox": {
          "header": "Authorization",
          "prefix": "Bearer ",
          "algorithm": "HS256",
          "expires": "5m"
        },
        "session": {
          "algorithm": "HS256",
          "expires": "5m"
        }
      }

The weird part is that if I set token.enable.browser, token.enable.request.inbox and token.enable.request.outbox to false everything is ok and I can download files.

If somebody had a clue, it would be great.

Thank you.
Marc

Originally created by @mdelerue on GitHub (Feb 21, 2017). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/27 Hi, I created a docker image for Only Office. Here is the Dockerfile : ``` FROM onlyoffice/documentserver:latest COPY ./default.json /etc/onlyoffice/documentserver/default.json ``` The problem is that I get an error when I try to download any document by clicking "Download As". The server send a HTTP 400 error. I just modified the default.json by adding secret string and enabling token : ``` "secret": { "inbox": { "string": "ABCDEFGHJ", "file": "", "tenants": {} }, "outbox": { "string": "ABCDEFGHJ", "file": "" }, "session": { "string": "ABCDEFGHJ", "file": "" } }, "token": { "enable": { "browser": true, "request": { "inbox": true, "outbox": true } }, "inbox": { "header": "Authorization", "prefix": "Bearer " }, "outbox": { "header": "Authorization", "prefix": "Bearer ", "algorithm": "HS256", "expires": "5m" }, "session": { "algorithm": "HS256", "expires": "5m" } } ``` The weird part is that if I set `token.enable.browser`, `token.enable.request.inbox` and `token.enable.request.outbox` to `false` everything is ok and I can download files. If somebody had a clue, it would be great. Thank you. Marc
kerem closed this issue 2026-02-26 09:35:02 +03:00
Author
Owner

@JohnPerkin commented on GitHub (Mar 2, 2017):

Hello!
Please check if there is a field 'permissions' in the object for signature as decribed in the instruction. Send to us the field 'Payload' and logs from the mapped folder.

<!-- gh-comment-id:283581915 --> @JohnPerkin commented on GitHub (Mar 2, 2017): Hello! Please check if there is a field 'permissions' in the object for signature as decribed in the [instruction](http://api.teamlab.info/editors/signature/browser). Send to us the field 'Payload' and logs from the mapped folder.
Author
Owner

@mdelerue commented on GitHub (Mar 8, 2017):

Hi, I need to apologize :
The token generation was wrong in our code and the payload was empty.
Fixing the token solve the download bug.

Thank you for everything.
Marc

<!-- gh-comment-id:285012451 --> @mdelerue commented on GitHub (Mar 8, 2017): Hi, I need to apologize : The token generation was wrong in our code and the payload was empty. Fixing the token solve the download bug. Thank you for everything. Marc
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#16
No description provided.