You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/lib/ruby/2.3.0/uri/generic.rb:430:in `check_password': bad component(expected user component): [ (URI::InvalidComponentError)
from /usr/lib/ruby/2.3.0/uri/generic.rb:503:in `password='
from ../ruby/2.3.0/gems/almodovar-1.5.1/lib/almodovar/http_client.rb:74:in `request'
from ../ruby/2.3.0/gems/almodovar-1.5.1/lib/almodovar/http_client.rb:22:in `get'
from ../ruby/2.3.0/gems/almodovar-1.5.1/lib/almodovar/http_accessor.rb:5:in `xml'
from ../ruby/2.3.0/gems/almodovar-1.5.1/lib/almodovar/single_resource.rb:57:in `node'
from ../ruby/2.3.0/gems/almodovar-1.5.1/lib/almodovar/single_resource.rb:46:in `method_missing'
from ../ruby/2.3.0/gems/almodovar-1.5.1/lib/almodovar/resource.rb:22:in `method_missing'
It seems that URI::Generic.check_password validation rejects square brackets. For my case, simply removing the lines that set user and password on the uri object fixes the issue.
Trying to authenticate with Almodovar crashes when using a password with a square bracket (and some other characters that must be escaped in URIs).
To reproduce:
It seems that
URI::Generic.check_password
validation rejects square brackets. For my case, simply removing the lines that set user and password on the uri object fixes the issue.The text was updated successfully, but these errors were encountered: