Skip to content
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

Creating a term fails when description has special characters #1

Open
chasingmaxwell opened this issue Dec 10, 2015 · 1 comment
Open

Comments

@chasingmaxwell
Copy link

I'm running this command against a Pantheon site:

drush @pantheon.alias  behat  --nocolor= create-term '{"name":"Test Term","vocabulary_machine_name":"Test Vocab","description":"g&lx\\#r)J\"kBm~?>Z^sY$;v23l=Mi7%Jsn|w93AgHCJ\/UBw9oZ|ss>+I#|'\''\\h*TXlU8i%lJ4{e-~Jr\"*^Rs81v=z5~8u$3u@M;@y#h.boHf*NX&(DI}AiR!V0H,i8^h\/3<M$NEz3]@`<4f3v58nzq{:e[Y PX5lN#$5N>zat\/u@aye$a@0q Lf7H3OT3Xm,&2^><;<4Vg(l8>7EiRljaggt~IOwbWuTlB`B*`6LM>}+E3WbzA8Ez[DfVH\"C}#}0"}'

It fails with the error Command not supported as typed. When I remove the special characters in the description it works.

The above command is being generated by the DrushDriver class and the description with the special characters is generated by the DrupalContext class. My work around for now is to extend the DrupalContext class and createTerm method to use the name() method of generating a random string rather than the string() method.

@chasingmaxwell
Copy link
Author

Issue for DrupalDriver jhedstrom/DrupalDriver#73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant