Giter Site home page Giter Site logo

Comments (8)

yvolk avatar yvolk commented on June 13, 2024 1

Hi @marek22k I made the fix and posted updated v.61.01 to #456

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

I see. The problem is with this pattern:

private val WEBFINGER_ID_REGEX: String = "^[_A-Za-z0-9-+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$"

Looks like I need to relax its host part...

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

@marek22k I see that my browser doesn't resolve "https://social.dn42", but does resolve "https://social.dn42.us"
Could you give more info on why do you need "social.dn42" host in the "uniquename" and how can I see, what is that?

from andstatus.

marek22k avatar marek22k commented on June 13, 2024

The dn42, to which the dn42 TLD belongs, is a hobby network and forms an "Internet within the Internet". Participants in dn42 can access .dn42, .neo, .hack, .crxn and several other domains of networks that are connected to them. Behind social.dn42 is just a normal Plemora instance.
Here is a picture when I open the page in the browser:
pic2
pic3

Alternatively, the dn42 can also be thought of as an internal company network, except that it is operated by a number of BGP hobbyists instead of a company.

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

@marek22k In order to make a good fix, we need to understand the whole flow.
As I cannot check this, you could fix that regexp, create your own AndStatus build and test further?!

from andstatus.

marek22k avatar marek22k commented on June 13, 2024

Unfortunately, I don't have the confidence to build an Android app. But I can test or repair the regex: #587

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

@marek22k The question is not only about the regex changing.
Your goal is to have successful connection to the ActivityPub server, and that may need additional changes (maybe at both sides. I mean, changes in AndStatus AND in the server). See, for example this discussion: #585

from andstatus.

yvolk avatar yvolk commented on June 13, 2024

I found the related discussion: https://stackoverflow.com/questions/9071279/number-in-the-top-level-domain
and I think this conclusion (backed by a long list of RFCs) is good for us:

Q: Does top-level domain can contain a number at the end?

A: Yes technically, except if it is purely numerical, then it can not be a TLD, under current rules and for easy reasons to understand (to disambiguate with IP addresses). And it can not contain a number at the end, except if it is an IDN TLD, for reasons enforced by ICANN.

from andstatus.

Related Issues (20)

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.