Giter VIP home page Giter VIP logo

Comments (6)

ppanopticon avatar ppanopticon commented on June 12, 2024 1

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.

juleskers avatar juleskers commented on June 12, 2024

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.

ppanopticon avatar ppanopticon commented on June 12, 2024

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.

juleskers avatar juleskers commented on June 12, 2024

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.

juleskers avatar juleskers commented on June 12, 2024

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.

HannesWell avatar HannesWell commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.