In the file upload scenario, the file link url carries parameters bug #6678

Closed
opened 2026-02-21 18:16:48 -05:00 by yindo · 5 comments
Owner

Originally created by @JiesenSun on GitHub (Nov 11, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.11.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

For security reasons, files on OSS use temporary URLs(eg: https://dig-ai-trade.oss-cn-beijing.aliyuncs.com/resource/files/20241111/1731315800FQJ6uBUq.pdf?OSSAccessKeyId=LTAI5t8g16ZFABU5jcfDshkh&Expires=1731318323&Signature=XwXfht5EA8bn%2Fjy9ZHVpJiNADWg%3D).
But When using the file link method, the URL carries parameters and the following error occurs, see the figure:
image
The error in the docker container is as follows:
image
There is no problem with actual code testing and browser access to the URL, as shown below:
image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @JiesenSun on GitHub (Nov 11, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.11.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce For security reasons, files on OSS use temporary URLs(eg: https://dig-ai-trade.oss-cn-beijing.aliyuncs.com/resource/files/20241111/1731315800FQJ6uBUq.pdf?OSSAccessKeyId=LTAI5t8g16ZFABU5jcfDshkh&Expires=1731318323&Signature=XwXfht5EA8bn%2Fjy9ZHVpJiNADWg%3D). But When using the file link method, the URL carries parameters and the following error occurs, see the figure: ![image](https://github.com/user-attachments/assets/bba4c0c8-4c79-41c1-b602-3e3a41c3044a) The error in the docker container is as follows: ![image](https://github.com/user-attachments/assets/9950de39-fe75-4550-ae24-8beb3d6425a8) There is no problem with actual code testing and browser access to the URL, as shown below: ![image](https://github.com/user-attachments/assets/54ace5f1-f645-4d22-9740-2249267b2624) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:16:48 -05:00
yindo closed this issue 2026-02-21 18:16:48 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 11, 2024):

I found a similar unsolved discussion regarding issues with opening images in Dify, which might be related to your problem with file link URLs carrying parameters. You can check it out here [1].

For your specific issue, it seems like there might be a problem with how URL parameters are being handled in the Docker setup. Unfortunately, I couldn't find specific documentation or code comments in Dify that explain how to troubleshoot file link issues or known bugs related to URL parameter handling. However, you might want to verify the URL signing and validation process to ensure that the parameters are correctly processed and that the URL is valid and not expired. If the issue persists, consider checking the Docker logs for any additional error messages that might provide more insight.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 11, 2024): <!-- Answer --> I found a similar unsolved discussion regarding issues with opening images in Dify, which might be related to your problem with file link URLs carrying parameters. You can check it out [here](https://github.com/langgenius/dify/discussions/10312) <sup>[[1]](https://github.com/langgenius/dify/discussions/10312)</sup>. For your specific issue, it seems like there might be a problem with how URL parameters are being handled in the Docker setup. Unfortunately, I couldn't find specific documentation or code comments in Dify that explain how to troubleshoot file link issues or known bugs related to URL parameter handling. However, you might want to verify the URL signing and validation process to ensure that the parameters are correctly processed and that the URL is valid and not expired. If the issue persists, consider checking the Docker logs for any additional error messages that might provide more insight. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner
@JiesenSun commented on GitHub (Nov 11, 2024): https://dig-ai-trade.oss-cn-beijing.aliyuncs.com/resource/files/20241111/1731322972LXP8b1vg.pdf?OSSAccessKeyId=LTAI5t8g16ZFABU5jcfDshkh&Expires=1731582197&Signature=zuUPLj0ONr9aM70MBIaaK%2BN%2FL8Q%3D The above URL is valid for 72 hours and can be tested
Author
Owner

@hjlarry commented on GitHub (Nov 11, 2024):

https://dig-ai-trade.oss-cn-beijing.aliyuncs.com/resource/files/20241111/1731322972LXP8b1vg.pdf?OSSAccessKeyId=LTAI5t8g16ZFABU5jcfDshkh&Expires=1731582197&Signature=zuUPLj0ONr9aM70MBIaaK%2BN%2FL8Q%3D The above URL is valid for 72 hours and can be tested

it works for me, please try the cloud version or update your dify version

@hjlarry commented on GitHub (Nov 11, 2024): > https://dig-ai-trade.oss-cn-beijing.aliyuncs.com/resource/files/20241111/1731322972LXP8b1vg.pdf?OSSAccessKeyId=LTAI5t8g16ZFABU5jcfDshkh&Expires=1731582197&Signature=zuUPLj0ONr9aM70MBIaaK%2BN%2FL8Q%3D The above URL is valid for 72 hours and can be tested it works for me, please try the cloud version or update your dify version
Author
Owner

@JiesenSun commented on GitHub (Nov 11, 2024):

https://dig-ai-trade.oss-cn-beijing.aliyuncs.com/resource/files/20241111/1731322972LXP8b1vg.pdf?OSSAccessKeyId=LTAI5t8g16ZFABU5jcfDshkh&Expires=1731582197&Signature=zuUPLj0ONr9aM70MBIaaK%2BN%2FL8Q%3D The above URL is valid for 72 hours and can be tested

it works for me, please try the cloud version or update your dify version

Thank you, the bug has been solved after upgrading to version 0.11.1

@JiesenSun commented on GitHub (Nov 11, 2024): > > https://dig-ai-trade.oss-cn-beijing.aliyuncs.com/resource/files/20241111/1731322972LXP8b1vg.pdf?OSSAccessKeyId=LTAI5t8g16ZFABU5jcfDshkh&Expires=1731582197&Signature=zuUPLj0ONr9aM70MBIaaK%2BN%2FL8Q%3D The above URL is valid for 72 hours and can be tested > > it works for me, please try the cloud version or update your dify version Thank you, the bug has been solved after upgrading to version 0.11.1
Author
Owner

@JiesenSun commented on GitHub (Nov 11, 2024):

the bug has been solved after upgrading to version 0.11.1

@JiesenSun commented on GitHub (Nov 11, 2024): the bug has been solved after upgrading to version 0.11.1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6678