It is not possible to create a container with a three-part domain #56
Labels
No Label
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-contract#56
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Expected Behavior
It is suggested that it is possible to create a container with a name like <some_name>.<some_name>.<some_tld_name>, example: сats.kapusta.ns.
An example of a test that should pass: https://git.frostfs.info/r.loginov/frostfs-contract/src/branch/example-test/tests/nns_test.go#L316
Current Behavior
Now, when trying to create a container with a domain like <some_name>.<some_name>.<some_tld_name>, the error “invalid domain name format” occurs.
Steps to Reproduce
It seems the problem is here
a1b61d3949/nns/nns_contract.go (L222)
For some reason isAvailable only works for domains with <=2 fragments
a1b61d3949/nns/nns_contract.go (L726)