-
Notifications
You must be signed in to change notification settings - Fork 726
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
GUACAMOLE-926: Fix connection CSV imports for fields with "(attribute)" and "(parameter)" suffixes #952
Conversation
@leonard2901 Could you please re-base this against the |
The |
@leonard2901 - Ah, sorry about that, Leonard, you are correct - this is in the Git repo under the master branch, but not in the current 1.5.x release. In that case, maybe you could just put this under the GUACAMOLE-926 issue, which is still open, and is the overall issue for implementing that feature? |
Sure. I just linked the Jira issues. |
@leonard2901 - My vote would be to actually change the title of this PR and the commit messages to "GUACAMOLE-926:", instead of GUACAMOLE-1925, and just close 1925 out completely and do all of the work under 926, since it's still open/unreleased. |
…)" and "(parameter)" suffixes
6c5ed99
to
3d7d37c
Compare
Okay, the only other thing is that I think this should be re-based against, and the PR should be to merge into the |
@necouchman Nope! |
Here's a bit of a write-up: https://cwiki.apache.org/confluence/display/GUAC/Version+Numbering+and+Branching+Scheme |
In think there’s a typo under the description of “minor releases”, it states
I think that is meant to be “never part of minor releases…” |
I think you're correct - I've updated it. |
@necouchman thank you, and thank you for writing up the process in the wiki! |
@neandrake Thanks for the fix - and Mike was the one who wrote it up... :-) |
For a CSV header which ends with " (attribute)" or " (parameter)"
header.replace(SUFFIX)
is called. However,replace
expects a second parameter. If it is omitted it will beundefined
which results in the header stringheadernameundefined
and the field not being imported correctly.This can be reproduced when importing a CSV file like this: