[CSHARP-3427] Can't make use of compression when application path contain space Created: 16/Feb/21  Updated: 28/Oct/23  Resolved: 01/Jun/21

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: 2.11.6
Fix Version/s: 2.12.4

Type: Bug Priority: Major - P3
Reporter: Jérémy WAGUET Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10 64 Bits + .NET 5.0 Desktop


Issue Links:
Related
related to CSHARP-3693 Improve native assembly loading behavior Closed
Backwards Compatibility: Fully Compatible

 Description   

Because of the use or Uri class (don't know why ...), application path containing spaces (e.g. ClickOnce deployed app running on a user account with spaces) produce the following exception when trying to connect to DB with compression enabled:

System.IO.FileNotFoundException: Could not find library snappy64.dll. Checked C:\Users\User%20Name\source\repos...\bin\Release\net5.0-windows\snappy64.dll;C:\Users\User%20Name\source\repos...\bin\Release\net5.0-windows....\runtimes\win\native\snappy64.dll;C:\Users\User%20Name\source\repos...\bin\Release\net5.0-windows\runtimes\win\native\snappy64.dll.

The request here Can't make use of compression when application path contain space by jeremy-waguet · Pull Request #457 · mongodb/mongo-csharp-driver (github.com) does fix it. For now I have to disable compression on the connection string (to keep using official nuget packages)



 Comments   
Comment by Githook User [ 01/Jun/21 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-3427: Fix test. (#541)

CSHARP-3427: Relax assertion of native library loader test.
Branch: v2.12.x
https://github.com/mongodb/mongo-csharp-driver/commit/f276201469077789461a1fe60a763f448b704ae2

Comment by Githook User [ 01/Jun/21 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-3427: Can't make use of compression when application path contain space. (#529)

CSHARP-3427: Can't make use of compression when application path contain space.
Branch: v2.12.x
https://github.com/mongodb/mongo-csharp-driver/commit/2d66ecef8bdf305348b1317776bf6856528b82c4

Comment by Githook User [ 01/Jun/21 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-3427: Fix test. (#541)

CSHARP-3427: Relax assertion of native library loader test.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/c315f06616b0da71ed38f885214b3125d5586ad0

Comment by Githook User [ 01/Jun/21 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-3427: Can't make use of compression when application path contain space. (#529)

CSHARP-3427: Can't make use of compression when application path contain space.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/dcadb19acc416715e146761142337bcc3c5a5163

Comment by James Kovacs [ 17/Feb/21 ]

Hi, Jérémy,

Thank you for filing this JIRA ticket and your related PR. We are reviewing your PR, including reproducing the issue that you observed, and will get back to you shortly with feedback.

Sincerely,
James

Generated at Wed Feb 07 21:45:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.