Comments (6)
Haha well talking about peculiarities of the Java API ... :-)
So I understand the issue is fixed and I thus close it. Should you encounter more problems, just open a new one.
from smb-nio.
For completeness sake, I should mention I'm using this on JDK Eclipse Temurin 17.0.4.1
Perhaps the return-value of getAuthority
changed from empty-string to null
somewhere?
from smb-nio.
Hey! Happy to hear, that this library is proving useful.
I agree with your assessment that there should be a null-check. According to the official JavaDoc URI.getAuthority()
can indeed return null.
I have just committed a fix and I'm releasing a new version.
from smb-nio.
Talk about instant turn-around!
Version 0.12.0 no longer throws the NPE. Fixed!
I'm still figuring out how to actually use the API correctly, to list the contents of a directory, but that's a different topic alltogether.
from smb-nio.
Side note: my API problems were because my IP-handling was accidentally adding an additional forward-slash inside the URL.
TL;DR use InetAddress.getHostAddress()
, never InetAddress.toString()
😦
instead of smb://1.2.3.4/root/
I thus got smb:///1.2.3.4/root/
, which breaks in all kinds of interesting ways 😆
from smb-nio.
It looks like the fix for this caused a regression since the constructed authority string is effectively duplicated.
I have provided #27, assuming this fixes that regression.
from smb-nio.
Related Issues (14)
- Read-only files cannot be read due to write operation HOT 2
- java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
- Use NtlmPasswordAuthenticator with SMBFileSystemProvider HOT 6
- Directory must end with '/' (smb-nio-ng) HOT 1
- trailing slashes should not be required for directories/folders HOT 3
- dependency conflict with spring-integration-smb ? HOT 1
- Example usage mentions getDefault() but this method does not exist
- Environment is never used in the context HOT 1
- [FeatureRequest] Implement FileSystemProvider file channels HOT 2
- Credentials in SMB URL not working
- Update eu.agno3.jcifs:jcifs-ng to version 2.1.10 HOT 1
- URI encoding problems with passwords HOT 5
- Trailing slashes are missing for subdirectories in SMBDirectoryStream HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smb-nio.