Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] web_editor: show toaster notification error on uploading folder #159905

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 29, 2024

Steps to reproduce:

OS: Ubuntu 20.04.4 LTS with nautilus
Browser: Google Chrome Version 123.0.6312.58

  • type /file command in knowledge
  • select a folder and click on open
  • traceback occurs

Current behavior before PR:

When a user attempts to upload a folder using /file command, the processing begins, but the folder is not uploaded because the getDataURLFromFile return promise is not fulfilled. Additionally, there is no indication of any warnings or errors during the folder upload process.

Desired behavior after PR is merged:

If a user attempts to upload a folder instead of a file using the /file command, it results in an error message in the toaster notification.

task-3690847

Forward-Port-Of: #159755
Forward-Port-Of: #151755

Steps to reproduce:

OS: Ubuntu 20.04.4 LTS with nautilus
Browser: Google Chrome Version 123.0.6312.58

- type /file command in knowledge
- select a folder and click on open
- traceback occurs

Before this commit:

When a user attempts to upload a folder using /file command, the
processing begins, but the folder is not actually uploaded because the
`getDataURLFromFile` return promise which is not fulfiled. Additionally,
there is no indication of any warnings or errors during the folder
upload process.

After this commit:

If a user attempts to upload a folder instead of a file using the /file
command, it results in a error message in toaster notification.

task-3690847

X-original-commit: 591658e
@robodoo
Copy link
Contributor

robodoo commented Mar 29, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 29, 2024

This PR targets saas-17.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 29, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 29, 2024
robodoo pushed a commit that referenced this pull request Apr 2, 2024
Steps to reproduce:

OS: Ubuntu 20.04.4 LTS with nautilus
Browser: Google Chrome Version 123.0.6312.58

- type /file command in knowledge
- select a folder and click on open
- traceback occurs

Before this commit:

When a user attempts to upload a folder using /file command, the
processing begins, but the folder is not actually uploaded because the
`getDataURLFromFile` return promise which is not fulfiled. Additionally,
there is no indication of any warnings or errors during the folder
upload process.

After this commit:

If a user attempts to upload a folder instead of a file using the /file
command, it results in a error message in toaster notification.

task-3690847

closes #159905

X-original-commit: 591658e
Signed-off-by: Damien Abeloos (abd) <abd@odoo.com>
robodoo pushed a commit that referenced this pull request Apr 2, 2024
Steps to reproduce:

OS: Ubuntu 20.04.4 LTS with nautilus
Browser: Google Chrome Version 123.0.6312.58

- type /file command in knowledge
- select a folder and click on open
- traceback occurs

Before this commit:

When a user attempts to upload a folder using /file command, the
processing begins, but the folder is not actually uploaded because the
`getDataURLFromFile` return promise which is not fulfiled. Additionally,
there is no indication of any warnings or errors during the folder
upload process.

After this commit:

If a user attempts to upload a folder instead of a file using the /file
command, it results in a error message in toaster notification.

task-3690847

closes #159905

X-original-commit: 591658e
Signed-off-by: Damien Abeloos (abd) <abd@odoo.com>
@robodoo robodoo closed this Apr 2, 2024
@fw-bot fw-bot deleted the saas-17.1-16.0-traceback-on-uploading-folder-visp-3-at-fw branch April 16, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants