-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: input multiple domains in domain input field adds them as a single domain #1621
Comments
I'm not sure if this issue should be handle in the web interface or in FTL. In In this case, the expected value for the domain field ( The current |
Exactly, FTL expects one domain to be added per request. I think the web interface needs to iterate over the input data and split it. Can this be done in JS? |
Yes, but this will send multiple API requests (one for each domain) and FTL will reload the list after each request. I was thinking if this should be done in FTL, to handle multi-domain inputs (from web interface or command line) in a single step and reload the lists only once. |
I see the issue here. Agree, this should be handled by FTL |
#1629 adds handling in FTL. I'm currently developing away from my test environment and am not keen to break it from remote so this PR is - so far - entirely untested (you are welcomed to do this :-) ). This will need a subsequent web change. Sending a space-separated domain seems a dirty hack. The PR above makes FTL accept either a string or an array of strings for domains, clients, group names and lists. The web interface will need to split the input itself and send a proper array to the API in this case. |
I never said we should do that. I just said this is how it is done in v5. OK, now the web interface will accept a domain or a list of domains separated by spaces (maybe we could also accept line breaks). The javascript code will need to split the "domain" field and send the result as an array. |
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
Expected behavior is like it was in v5: domains separated by space should be added as individual entries.
The text was updated successfully, but these errors were encountered: