Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Service URL path field length is limited to 128 characters. When attempting to save a service's settings with a URL longer than 128 characters, it gets trimmed. At admin/config/services/wsclient/manage/{service}
Can '#maxlength' be more than 128 characters?
$form['url'] = array(
'#type' => 'textfield',
'#title' => 'URL',
'#maxlength' => 4096, // <-- This needs to be much bigger than the default of 128 chars.
'#default_value' => $service->url,
'#required' => TRUE,
'#description' => t('The URL of the web service.'),
'#element_validate' => array('wsclient_ui_element_url_validate'),
);
Comment | File | Size | Author |
---|---|---|---|
#5 | Edit_operation___drupal7.png | 39.77 KB | pauloamgomes |
Comments
Comment #1
klausiPlease describe the exact steps to reproduce this problem. Exact error message? SOAP or REST service? What path? Admin UI path?
Comment #2
klausiComment #3
bendiy CreditAttribution: bendiy commentedI'm running into a similar problem that I think is this issue. Updating to provide more info.
Comment #4
bendiy CreditAttribution: bendiy commentedAlso need to ALTER the table column. It defaults to VARCHAR(255).
Comment #5
pauloamgomes CreditAttribution: pauloamgomes commentedSame happens when editing operation (REST) for Path value, since textfield is limited by default to 128 chars.