linagora / linshare-mobile-flutter-app

Mobile application for LinShare - https://linshare.org/
GNU Affero General Public License v3.0
16 stars 16 forks source link

Fixed can create file with empty or special chars name #954

Closed KhaledNjim closed 4 months ago

KhaledNjim commented 5 months ago

Description

gitlab issue

Root cause

when workgroupNode is null the code return an empty string without performing the other tests

demo of the issue

https://github.com/linagora/linshare-mobile-flutter-app/assets/160496984/c0859c85-4dbd-428a-8df3-f1f277448a37

Solution

changed the condition to allow other test to be performed

demo

https://github.com/linagora/linshare-mobile-flutter-app/assets/160496984/9c78b1e6-08e3-485d-bbeb-18bb6ccb88e5