cs3org / reva

WebDAV/gRPC/HTTP high performance server to link high level clients to storage backends
https://reva.link
Apache License 2.0
167 stars 113 forks source link

make space registry match providerids with regexes #2859

Open butonic opened 2 years ago

butonic commented 2 years ago

We generate provider IDs dynamically. Can you make these work with regexes?

"eoshome-[dlntz]" = { address = "localhost:16000" }
"eoshome-[agjkw]" = { address = "localhost:16001" }
"eoshome-[horsy]" = { address = "localhost:16002" }
"eoshome-[bemvx]" = { address = "localhost:16003" }
"eoshome-[cfipqu]" = { address = "localhost:16004" }

For example, provider IDs 1284d238-aa92-42ce-bdc4-0b000000[9157-9159] should go to localhost:11000

And doing a ListProviders without any filters should ideally return all of these:

[
  {address: localhost:11000, provider_id: 1284d238-aa92-42ce-bdc4-0b0000009157},
  {address: localhost:11000, provider_id: 1284d238-aa92-42ce-bdc4-0b0000009158},
  {address: localhost:11000, provider_id: 1284d238-aa92-42ce-bdc4-0b0000009159}
]

_Originally posted by @ishank011 in https://github.com/cs3org/reva/pull/2792#discussion_r867995757_

ishank011 commented 2 years ago

Hi @butonic. What's the timeline for implementing this and improving path-based lookups?

ishank011 commented 2 years ago

I'm starting to work on it as it's urgently needed for us and I'd appreciate it if you could review and merge it soon.

dragotin commented 2 years ago

@butonic is that ticket done with the commits? Please follow up.