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'),
  );
CommentFileSizeAuthor
#5 Edit_operation___drupal7.png39.77 KBpauloamgomes
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

klausi’s picture

Status: Active » Postponed (maintainer needs more info)

Please describe the exact steps to reproduce this problem. Exact error message? SOAP or REST service? What path? Admin UI path?

klausi’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)
bendiy’s picture

Title: Path cannot be longer than 128 characters... » Service URL cannot be longer than 128 characters...
Issue summary: View changes
Status: Closed (works as designed) » Active

I'm running into a similar problem that I think is this issue. Updating to provide more info.

bendiy’s picture

Also need to ALTER the table column. It defaults to VARCHAR(255).

pauloamgomes’s picture

FileSize
39.77 KB

Same happens when editing operation (REST) for Path value, since textfield is limited by default to 128 chars.

path maxlength