CINXE.COM
Bug #1776385 “Failover segment description doesn't accept multil...” : Bugs : masakari
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <base href="https://bugs.launchpad.net/masakari/+bug/1776385/+index" /> <meta charset="UTF-8" /> <title>Bug #1776385 “Failover segment description doesn't accept multil...” : Bugs : masakari</title> <link rel="apple-touch-icon" sizes="180x180" href="/@@/apple-touch-icon.png?v=2022" /> <link rel="icon" type="image/png" sizes="32x32" href="/@@/favicon-32x32.png?v=2022" /> <link rel="icon" type="image/png" sizes="16x16" href="/@@/favicon-16x16.png?v=2022" /> <link rel="manifest" href="/@@/site.webmanifest?v=2022" /> <link rel="mask-icon" href="/@@/safari-pinned-tab.svg?v=2022" color="#e9531f" /> <link rel="shortcut icon" href="/@@/favicon.ico?v=2022" /> <meta name="msapplication-TileColor" content="#da532c" /> <meta name="msapplication-config" content="/@@/browserconfig.xml?v=2022" /> <meta name="theme-color" content="#ffffff" /> <link rel="canonical" href="https://bugs.launchpad.net/bugs/1776385" /> <link rel="alternate" type="application/atom+xml" href="http://feeds.launchpad.net/bugs/1776385/bug.atom" title="Bug 1776385 Feed" /> <link type="text/css" rel="stylesheet" media="screen, print" href="/+icing/revaa29ae0fff49e4e804b39147c9f259d2fb023199/combo.css" /> <meta name="description" content="If user passes description in multi-line characters, then it raises 400 error. $curl -g -i -X POST http://172.16.159.137/instance-ha/v1/14de0d327c5244ea9cb85ca24843e44c/segments -H "Content-Type: application/json" -H "User-Agent: osc-lib/1.10.0 keystoneauth1/3.7.0 python-requests/2.18.4 CPython/2.7.12" -H "X-Auth-Token: gAAAAABbHz8RQDYHeBOL2-NariYUzBSBUkPPBvDoEPZ9L7gIxxLbsndNlctfMzOqkH1VYIO3SCYaMuUSbxVuOolJZjBtDpK7o32wpcf61-tK-iqs2jxNaJrOAIB4jR7DUx2GgBjqe0_ZREdILWRctG5drvJfb-BjRexUe3xGWQU8k6..." /> <meta property="og:description" content="If user passes description in multi-line characters, then it raises 400 error. $curl -g -i -X POST http://172.16.159.137/instance-ha/v1/14de0d327c5244ea9cb85ca24843e44c/segments -H "Content-Type: application/json" -H "User-Agent: osc-lib/1.10.0 keystoneauth1/3.7.0 python-requests/2.18.4 CPython/2.7.12" -H "X-Auth-Token: gAAAAABbHz8RQDYHeBOL2-NariYUzBSBUkPPBvDoEPZ9L7gIxxLbsndNlctfMzOqkH1VYIO3SCYaMuUSbxVuOolJZjBtDpK7o32wpcf61-tK-iqs2jxNaJrOAIB4jR7DUx2GgBjqe0_ZREdILWRctG5drvJfb-BjRexUe3xGWQU8k6..." /> <meta property="og:title" content="Bug #1776385 “Failover segment description doesn't accept multil...” : Bugs : masakari" /> <meta property="og:type" content="website" /> <meta property="og:image" content="/@@/launchpad-og-image.png" /> <meta property="og:url" content="https://bugs.launchpad.net/bugs/1776385" /> <meta property="og:site_name" content="Launchpad" /> <script type="text/javascript"> var LP = { cache: {}, links: {} }; </script> <script type="text/javascript">var cookie_scope = '; Path=/; Secure; Domain=.launchpad.net';</script> <script type="text/javascript" src="/+combo/revaa29ae0fff49e4e804b39147c9f259d2fb023199/?yui/yui/yui-min.js&lp/meta.js&yui/loader/loader-min.js"></script> <script type="text/javascript"> var raw = null; if (LP.devmode) { raw = 'raw'; } YUI.GlobalConfig = { combine: true, comboBase: '/+combo/revaa29ae0fff49e4e804b39147c9f259d2fb023199/?', root: 'yui/', filter: raw, debug: false, fetchCSS: false, maxURLLength: 2000, groups: { lp: { combine: true, base: '/+combo/revaa29ae0fff49e4e804b39147c9f259d2fb023199/?lp/', comboBase: '/+combo/revaa29ae0fff49e4e804b39147c9f259d2fb023199/?', root: 'lp/', // comes from including lp/meta.js modules: LP_MODULES, fetchCSS: false } } }</script> <script type="text/javascript"> // we need this to create a single YUI instance all events and code // talks across. All instances of YUI().use should be based off of // LPJS instead. var LPJS = new YUI(); </script> <script id="base-layout-load-scripts" type="text/javascript"> //<![CDATA[ LPJS.use('base', 'node', 'console', 'event', 'oop', 'lp', 'lp.app.foldables','lp.app.sorttable', 'lp.app.inlinehelp', 'lp.app.links', 'lp.bugs.bugtask_index', 'lp.bugs.subscribers', 'lp.app.ellipsis', 'lp.code.branchmergeproposal.diff', 'lp.views.global', function(Y) { Y.on("domready", function () { var global_view = new Y.lp.views.Global(); global_view.render(); Y.lp.app.sorttable.SortTable.init(); Y.lp.app.inlinehelp.init_help(); Y.lp.activate_collapsibles(); Y.lp.app.foldables.activate(); Y.lp.app.links.check_valid_lp_links(); }); Y.on('lp:context:web_link:changed', function(e) { window.location = e.new_value; }); }); //]]> </script> <script id="base-helper-functions" type="text/javascript"> //<![CDATA[ // This code is pulled from lp.js that needs to be available on every // request. Pulling here to get it outside the scope of the YUI block. function setFocusByName(name) { // Focus the first element matching the given name which can be focused. var nodes = document.getElementsByName(name); var i, node; for (i = 0; i < nodes.length; i++) { node = nodes[i]; if (node.focus) { try { // Trying to focus a hidden element throws an error in IE8. if (node.offsetHeight !== 0) { node.focus(); } } catch (e) { LPJS.use('console', function(Y) { Y.log('In setFocusByName(<' + node.tagName + ' type=' + node.type + '>): ' + e); }); } break; } } } function selectWidget(widget_name, event) { if (event && (event.keyCode === 9 || event.keyCode === 13)) { // Avoid firing if user is tabbing through or simply pressing // enter to submit the form. return; } document.getElementById(widget_name).checked = true; } //]]> </script> <script type="text/javascript" id="available-official-tags-js">var available_official_tags = [];</script> <script type="text/javascript"> LPJS.use('base', 'node', 'oop', 'event', 'lp.bugs.bugtask_index', 'lp.bugs.subscribers', 'lp.code.branchmergeproposal.diff', 'lp.app.comment', 'lp.services.messages.edit', function(Y) { Y.on('domready', function() { Y.lp.code.branchmergeproposal.diff.connect_diff_links(); Y.lp.bugs.bugtask_index.setup_bugtask_index(); Y.lp.bugs.bugtask_index.setup_bugtask_table(); LP.cache.comment_context = LP.cache.bug; var cl = new Y.lp.app.comment.CommentList(); cl.render(); var sl = new Y.lp.bugs.subscribers.createBugSubscribersLoader({ container_box: '#other-bug-subscribers', subscribers_details_view: '/+bug-portlet-subscribers-details', subscribe_someone_else_link: '.menu-link-addsubscriber' }, window); Y.lp.services.messages.edit.setup(); }); }); </script> <style type="text/css"> /* Align the 'add comment' link to the right of the comment box. */ #add-comment-form textarea { width: 100%; } #add-comment-form { max-width: 60em; padding-bottom: 4em; } #add-comment-form .actions {float: right;} .buglink-summary dd { font-size: 10px; } a#privacy-link:link:hover, a#privacy-link:visited:hover {text-decoration:none;} </style> <style type="text/css"> .yui3-overlay .value label { /* It normally makes sense for form labels to be bold, but since this form consists only of radio buttons, there's nothing but labels so we just get wall-to-wall bold. */ font-weight: normal !important; } </style> </head> <body id="document" itemscope="" itemtype="http://schema.org/WebPage" class="tab-bugs main_side public yui3-skin-sam"> <div class="yui-d0"> <div id="locationbar" class="login-logout"> <div id="logincontrol"><a href="https://bugs.launchpad.net/masakari/+bug/1776385/+login">Log in / Register</a></div> </div><!--id="locationbar"--> <div id="watermark" class="watermark-apps-portlet"> <div> <a href="https://launchpad.net/masakari"><img alt="" width="64" height="64" src="/@@/product-logo" /></a> </div> <div class="wide"> <h2 id="watermark-heading"><a href="https://launchpad.net/masakari">masakari</a></h2> </div> <!-- Application Menu --> <ul class="facetmenu"> <li class="overview"><a href="https://launchpad.net/masakari">Overview</a></li> <li class="branches"><a href="https://code.launchpad.net/masakari">Code</a></li> <li class="bugs active"><a href="https://bugs.launchpad.net/masakari">Bugs</a></li> <li class="specifications"><a href="https://blueprints.launchpad.net/masakari">Blueprints</a></li> <li class="translations"><a href="https://translations.launchpad.net/masakari">Translations</a></li> <li class="answers"><a href="https://answers.launchpad.net/masakari">Answers</a></li> </ul> </div> <div class="yui-t4"> <div id="maincontent" class="yui-main"> <div class="yui-b" dir="ltr"> <div class="context-publication"> <h1 id="edit-title"> <span class="yui3-editable_text-text ellipsis" style="max-width: 95%;"> Failover segment description doesn't accept multiline characters </span> </h1> <div id="registration" class="registering"> Bug #1776385 reported by <a href="https://launchpad.net/~tpatil" class="sprite person">Tushar Patil</a> <time title="2018-06-12 04:09:21 UTC" datetime="2018-06-12T04:09:21.584849+00:00">on 2018-06-12</time> </div> </div> <div id="request-notifications"> </div> <div> <div id="bug-is-duplicate"> </div> <div style="float: right;"> <span><a href="/+help-bugs/bug-heat.html" target="help" class="sprite flame">6</a></span> </div> <div class="actions"> <span id="affectsmetoo" style="display: inline">This bug affects 1 person</span> </div> <table id="affected-software" class="listing"> <thead> <tr> <th colspan="2">Affects</th> <th>Status</th> <th>Importance</th> <th>Assigned to</th> <th>Milestone</th> </tr> </thead> <tbody> <tr class="highlight" id="tasksummary2394482"> <td> </td> <td> <span id="bugtarget-picker-tasksummary2394482"> <span class="yui3-activator-data-box"> <a class="sprite product" href="https://bugs.launchpad.net/masakari">masakari</a> </span> <div class="yui3-activator-message-box yui3-activator-hidden"></div> </span> </td> <td style="width: 20%; vertical-align: middle"> <div class="status-content" style="width: 100%; float: left"> <span style="float: left" class="value statusFIXRELEASED">Fix Released</span> </div> </td> <td style="width: 15em; vertical-align: middle"> <div class="importance-content" style="width: 100%; float: left"> <span style="float: left" class="value importanceUNDECIDED">Undecided</span> </div> </td> <td style="width:20%; margin: 0; padding: 0; vertical-align: middle; padding-left: 0.5em"> <span id="assignee-picker-tasksummary2394482"> <span class="yui3-activator-data-box"> <a class="sprite person" href="https://launchpad.net/~sampath-priyankara">SamP</a> </span> <div class="yui3-activator-message-box yui3-activator-hidden"></div> </span> </td> <td style="width: 20%; vertical-align: middle"> </td> </tr> </tbody> </table> <div id="maincontentsub"> <div class="top-portlet"> <div itemprop="mainContentOfPage" class="report"> <div> <div class="lazr-multiline-edit" id="edit-description"> <div class="clearfix"> <h3>Bug Description</h3> </div> <div class="yui3-editable_text-text"><p>If user passes description in multi-line characters, then it raises 400 error.</p> <p>$curl -g -i -X POST <a rel="nofollow" href="http://172.16.159.137/instance-ha/v1/14de0d327c5244ea9cb85ca24843e44c/segments">http://<wbr />172.16.<wbr />159.137/<wbr />instance-<wbr />ha/v1/14de0d327<wbr />c5244ea9cb85ca2<wbr />4843e44c/<wbr />segments</a> -H "Content-Type: application/json" -H "User-Agent: osc-lib/1.10.0 keystoneauth1/3.7.0 python-<wbr />requests/<wbr />2.18.4 CPython/2.7.12" -H "X-Auth-Token: gAAAAABbHz8RQDY<wbr />HeBOL2-<wbr />NariYUzBSBUkPPB<wbr />vDoEPZ9L7gIxxLb<wbr />sndNlctfMzOqkH1<wbr />VYIO3SCYaMuUSbx<wbr />VuOolJZjBtDpK7o<wbr />32wpcf61-<wbr />tK-iqs2jxNaJrOA<wbr />IB4jR7DUx2GgBjq<wbr />e0_ZREdILWRctG5<wbr />drvJfb-<wbr />BjRexUe3xGWQU8k<wbr />6hmDbG0RCE" -d '{"segment": {"service_type": "compute", "recovery_method": "auto", "name": "tsting1", "description": "one\r\ntwo\r\n"}}'</p> <p>HTTP/1.1 400 Bad Request<br /> Date: Tue, 12 Jun 2018 03:34:25 GMT<br /> Server: Apache/2.4.18 (Ubuntu)<br /> OpenStack-<wbr />API-Version: masakari 1.0<br /> Vary: OpenStack-<wbr />API-Version<br /> Content-Type: application/json; charset=UTF-8<br /> Content-Length: 8543<br /> x-openstack-<wbr />request-<wbr />id: req-7bbac51a-<wbr />dea3-41c9-<wbr />977f-650e2dea29<wbr />cd<br /> Connection: close</p> <p>{"badRequest": {"message": "Invalid input for field/attribute description. Value: tsting\<wbr />r\neerewr\<wbr />r\n.u'tsting\<wbr />\r\\neerewr\<wbr />\r\\n' does not match u'^[\\\\ -\\\\~\<wbr />\\\\\xa0-<wbr />\\\\\\xac\<wbr />\\\\\xae-<wbr />\\\\\\u0377\<wbr />\\\\\u037a-<wbr />\\\\\\u037e\<wbr />\\\\\u0384-<wbr />\\\\\\u038a\<wbr />\\\\\u038c\<wbr />\\\\\u038e-<wbr />\\\\\\u03a1\<wbr />\\\\\u03a3-<wbr />\\\\\\u0525\<wbr />\\\\\u0531-<wbr />\\\\\\u0556\<wbr />\\\\\u0559-<wbr />\\\\\\u055f\<wbr />\\\\\u0561-<wbr />\\\\\\u0587\<wbr />\\\\\u0589-<wbr />\\\\\\u058a\<wbr />\\\\\u0591-<wbr />\\\\\\u05c7\<wbr />\\\\\u05d0-<wbr />\\\\\\u05ea\<wbr />\\\\\u05f0-<wbr />\\\\\\u05f4\<wbr />\\\\\u0606-<wbr />\\\\\\u061b\<wbr />\\\\\u061e-<wbr />\\\\\\u061f\<wbr />\\\\\u0621-<wbr />\\\\\\u065e\<wbr />\\\\\u0660-<wbr />\\\\\\u06dc\<wbr />\\\\\u06de-<wbr />\\\\\\u070d\<wbr />\\\\\u0710-<wbr />\\\\\\u074a\<wbr />\\\\\u074d-<wbr />\\\\\\u07b1\<wbr />\\\\\u07c0-<wbr />\\\\\\u07fa\<wbr />\\\\\u0800-<wbr />\\\\\\u082d\<wbr />\\\\\u0830-<wbr />\\\\\\u083e\<wbr />\\\\\u0900-<wbr />\\\\\\u0939\<wbr />\\\\\u093c-<wbr />\\\\\\u094e\<wbr />\\\\\u0950-<wbr />\\\\\\u0955\<wbr />\\\\\u0958-<wbr />\\\\\\u0972\<wbr />\\\\\u0979-<wbr />\\\\\\u097f\<wbr />\\\\\u0981-<wbr />\\\\\\u0983\<wbr />\\\\\u0985-<wbr />\......<wbr />.......<wbr />}</p> <p>Expected Result : 200 OK<br /> Actual Result : 400 badRequest</p></div> </div> </div> <div style="margin:-10px 0 20px 5px" class="clearfix"> </div> <div id="bug-tags"> <span id="tags-heading"> </span> <span id="tag-list"> </span> </div> <script type="text/javascript"> LPJS.use('event', 'node', 'lp.bugs.tags_entry', function(Y) { Y.on('domready', function(e) { Y.lp.bugs.tags_entry.setup_tag_entry( available_official_tags); }, window); }); </script> <div class="clearfix"></div> </div> <div id="branches-and-cves"> <div id="bug-branches-container" style="float: left"> </div><!-- bug-branch-container --> <div class="clearfix"></div> </div> <!-- branches and CVEs --> </div> <div> <div class="boardComment"> <div class="boardCommentDetails"> <a href="https://launchpad.net/~nirajsingh" class="sprite person">Niraj Singh (nirajsingh)</a> <time title="2018-06-12 06:49:50 UTC" datetime="2018-06-12T06:49:50.359035+00:00">on 2018-06-12</time> </div> <div class="boardCommentActivity"> <table class="bug-activity"> <tr> <td colspan="2">Changed in masakari: </td> </tr> <tr> <td style="text-align: right;"> <b>assignee</b>: </td> <td> nobody → Niraj Singh (nirajsingh) </td> </tr> <tr> <td style="text-align: right;"> <b>status</b>: </td> <td> New → In Progress </td> </tr> </table> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/masakari/+bug/1776385/comments/1" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~hudson-openstack" class="sprite person">OpenStack Infra (hudson-openstack)</a> wrote <time itemprop="commentTime" datetime="2018-06-12T07:32:16.891127+00:00" title="2018-06-12 07:32:16 UTC">on 2018-06-12</time><span class="editable-message-last-edit-date">: </span> <a href="/masakari/+bug/1776385/comments/1"> <strong>Fix proposed to masakari (master)</strong> </a> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/masakari/+bug/1776385/comments/1"> #1</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>Fix proposed to branch: master<br /> Review: <a rel="nofollow" href="https://review.openstack.org/574614">https:/<wbr />/review.<wbr />openstack.<wbr />org/574614</a></p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">Fix proposed to branch: master Review: https://review.openstack.org/574614</textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> </div> <div class="boardComment"> <div class="boardCommentDetails"> <a href="https://launchpad.net/~hudson-openstack" class="sprite person">OpenStack Infra (hudson-openstack)</a> <time title="2018-07-03 03:20:03 UTC" datetime="2018-07-03T03:20:03.700473+00:00">on 2018-07-03</time> </div> <div class="boardCommentActivity"> <table class="bug-activity"> <tr> <td colspan="2">Changed in masakari: </td> </tr> <tr> <td style="text-align: right;"> <b>assignee</b>: </td> <td> Niraj Singh (nirajsingh) → SamP (sampath-priyankara) </td> </tr> </table> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/masakari/+bug/1776385/comments/2" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~hudson-openstack" class="sprite person">OpenStack Infra (hudson-openstack)</a> wrote <time itemprop="commentTime" datetime="2021-03-26T15:55:53.677184+00:00" title="2021-03-26 15:55:53 UTC">on 2021-03-26</time><span class="editable-message-last-edit-date">: </span> <a href="/masakari/+bug/1776385/comments/2"> <strong>Fix included in openstack/masakari 11.0.0.0rc1</strong> </a> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/masakari/+bug/1776385/comments/2"> #2</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>This issue was fixed in the openstack/masakari 11.0.0.0rc1 release candidate.</p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">This issue was fixed in the openstack/masakari 11.0.0.0rc1 release candidate.</textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> </div> <div class="boardComment"> <div class="boardCommentDetails"> <a href="https://launchpad.net/~yoctozepto" class="sprite person">Radosław Piliszek (yoctozepto)</a> <time title="2021-03-26 16:40:35 UTC" datetime="2021-03-26T16:40:35.543188+00:00">on 2021-03-26</time> </div> <div class="boardCommentActivity"> <table class="bug-activity"> <tr> <td colspan="2">Changed in masakari: </td> </tr> <tr> <td style="text-align: right;"> <b>status</b>: </td> <td> In Progress → Fix Released </td> </tr> </table> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/masakari/+bug/1776385/comments/3" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~hudson-openstack" class="sprite person">OpenStack Infra (hudson-openstack)</a> wrote <time itemprop="commentTime" datetime="2021-04-29T16:44:21.098382+00:00" title="2021-04-29 16:44:21 UTC">on 2021-04-29</time><span class="editable-message-last-edit-date">: </span> <a href="/masakari/+bug/1776385/comments/3"> <strong>Fix included in openstack/masakari 8.1.2</strong> </a> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/masakari/+bug/1776385/comments/3"> #3</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>This issue was fixed in the openstack/masakari 8.1.2 release.</p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">This issue was fixed in the openstack/masakari 8.1.2 release.</textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/masakari/+bug/1776385/comments/4" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~hudson-openstack" class="sprite person">OpenStack Infra (hudson-openstack)</a> wrote <time itemprop="commentTime" datetime="2021-04-29T16:44:42.994091+00:00" title="2021-04-29 16:44:42 UTC">on 2021-04-29</time><span class="editable-message-last-edit-date">: </span> <a href="/masakari/+bug/1776385/comments/4"> <strong>Fix included in openstack/masakari 9.1.2</strong> </a> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/masakari/+bug/1776385/comments/4"> #4</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>This issue was fixed in the openstack/masakari 9.1.2 release.</p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">This issue was fixed in the openstack/masakari 9.1.2 release.</textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> </div> <div xmlns="http://www.w3.org/1999/xhtml" itemscope="" itemtype="http://schema.org/UserComments" class="boardComment editable-message " data-baseurl="/masakari/+bug/1776385/comments/5" data-i-can-edit="False"> <div class="boardCommentDetails"> <div class="message-revision-container"> <div class="message-revision-container-header"> <span>Revision history for this message</span> <img src="/+icing/build/overlay/assets/skins/sam/images/close.gif" class="message-revision-close" /> </div> <script type="text/template"> <div class='message-revision-item'> <div class='message-revision-title'> <a class="sprite remove action-icon message-revision-del-btn"> Remove </a> <a class="js-action"> Revision #{revision}, created at {date_created_display} </a> </div> <div class='message-revision-body'>{content}</div> </div> </script> <div class="message-revision-list"></div> </div> <table> <tbody> <tr> <td> <a href="https://launchpad.net/~hudson-openstack" class="sprite person">OpenStack Infra (hudson-openstack)</a> wrote <time itemprop="commentTime" datetime="2021-04-29T16:45:03.815062+00:00" title="2021-04-29 16:45:03 UTC">on 2021-04-29</time><span class="editable-message-last-edit-date">: </span> <a href="/masakari/+bug/1776385/comments/5"> <strong>Fix included in openstack/masakari 10.0.2</strong> </a> </td> <td> </td> <td> </td> <td class="bug-comment-index"> <a itemprop="url" href="/masakari/+bug/1776385/comments/5"> #5</a> </td> </tr> </tbody> </table> </div> <div class="boardCommentBody"> <div class="editable-message-body"> <div class="comment-text editable-message-text" itemprop="commentText"><p>This issue was fixed in the openstack/masakari 10.0.2 release.</p></div> </div> <div class="editable-message-form" style="display: none"> <textarea style="width: 100%" rows="10">This issue was fixed in the openstack/masakari 10.0.2 release.</textarea> <input type="button" value="Update" class="editable-message-update-btn" /> <input type="button" value="Cancel" class="editable-message-cancel-btn" /> </div> </div> </div> <div style="float: right;"> <a class="menu-link-activitylog" href="https://bugs.launchpad.net/masakari/+bug/1776385/+activity">See full activity log</a> </div> <div class="clearfix"></div> <div align="center" id="add-comment-login-first"> To post a comment you must <a href="+login?comments=all">log in</a>. </div> </div><!-- class="top-portlet" --> </div><!--- id="maincontentsub"--> <div> <div id="duplicate-form-container"></div> <div id="privacy-form-container"></div> </div> </div> </div><!-- yui-b --> </div><!-- yui-main --> <div id="side-portlets" class="yui-b side"> <div id="involvement" class="portlet"> <ul class="involvement"> <li class="single"> <a class="sprite bugs" href="/masakari/+filebug"> Report a bug </a> </li> </ul> </div> <div id="privacy" class="first portlet public"> <div id="privacy-text"> <span id="information-type-summary" class="sprite public">This report contains <strong id="information-type">Public</strong> information </span> <div id="information-type-description" style="padding-top: 5px">Everyone can see this information. </div> </div> </div> <div id="portlet-actions" class="portlet vertical"> <ul id="duplicate-actions"> </ul> <ul id="lock-status-actions"> </ul> </div> <div class="portlet vertical" id="portlet-subscription"> <div class="section"> <div id="current_user_subscription" class="False"> <span>You are</span> <a class="menu-link-subscription sprite modify edit" href="/masakari/+bug/1776385/+subscribe"> not directly subscribed to this bug's notifications. </a> </div> <div id="sub-unsub-spinner">Subscribing...</div> <ul> <li><a class="menu-link-editsubscriptions sprite modify edit" href="https://bugs.launchpad.net/masakari/+bug/1776385/+subscriptions" title="View and change your subscriptions to this bug">Edit bug mail</a></li> </ul> </div> <script type="text/javascript"> LPJS.use('io-base', 'node', 'lp.bugs.bugtask_index.portlets.subscription', function(Y) { Y.on('domready', function() { Y.lp.bugs.bugtask_index.portlets.subscription.initialize(); }); }); </script> </div> <div class="portlet vertical" id="portlet-subscribers"> <h2>Other bug subscribers</h2> <div> <div><a class="menu-link-addsubscriber sprite add" href="https://bugs.launchpad.net/masakari/+bug/1776385/+addsubscriber" title="Launchpad will email that person whenever this bugs changes">Subscribe someone else</a></div> </div> <div id="other-bug-subscribers"></div> </div> <div class="portlet" id="portlet-watches"> <h2>Remote bug watches</h2> <ul> </ul> <p>Bug watches keep track of this bug in other bug trackers.</p> </div> </div><!-- yui-b side --> </div><!-- yui-t4 --> <div id="footer" class="footer"> <div class="lp-arcana"> <div class="lp-branding"> <a href="https://launchpad.net/"><img src="/@@/launchpad-footer-logo.svg" alt="Launchpad" width="65" height="18" /></a> • <a href="https://launchpad.net/+tour">Take the tour</a> • <a href="https://help.launchpad.net/">Read the guide</a> <form id="globalsearch" method="get" accept-charset="UTF-8" action="https://launchpad.net/+search"> <input type="search" id="search-text" name="field.text" /> <input type="image" src="/@@/search" style="vertical-align:5%" alt="Search Launchpad" /> </form> </div> </div> <div class="colophon"> © 2004 <a href="http://canonical.com/">Canonical Ltd.</a> • <a href="https://launchpad.net/legal">Terms of use</a> • <a href="https://www.ubuntu.com/legal/dataprivacy">Data privacy</a> • <a href="/feedback">Contact Launchpad Support</a> • <a href="http://blog.launchpad.net/">Blog</a> • <a href="https://canonical.com/careers">Careers</a> • <a href="https://ubuntu.social/@launchpadstatus">System status</a> <span id="lp-version"> • aa29ae0 (<a href="https://dev.launchpad.net/">Get the code!</a>) </span> </div> </div> </div><!-- yui-d0--> <script id="json-cache-script">LP.cache = {"related_features": {}, "bug": {"self_link": "https://bugs.launchpad.net/api/devel/bugs/1776385", "web_link": "https://bugs.launchpad.net/bugs/1776385", "resource_type_link": "https://bugs.launchpad.net/api/devel/#bug", "id": 1776385, "private": false, "information_type": "Public", "name": null, "title": "Failover segment description doesn't accept multiline characters", "description": "If user passes description in multi-line characters, then it raises 400 error.\n\n$curl -g -i -X POST http://172.16.159.137/instance-ha/v1/14de0d327c5244ea9cb85ca24843e44c/segments -H \"Content-Type: application/json\" -H \"User-Agent: osc-lib/1.10.0 keystoneauth1/3.7.0 python-requests/2.18.4 CPython/2.7.12\" -H \"X-Auth-Token: gAAAAABbHz8RQDYHeBOL2-NariYUzBSBUkPPBvDoEPZ9L7gIxxLbsndNlctfMzOqkH1VYIO3SCYaMuUSbxVuOolJZjBtDpK7o32wpcf61-tK-iqs2jxNaJrOAIB4jR7DUx2GgBjqe0_ZREdILWRctG5drvJfb-BjRexUe3xGWQU8k6hmDbG0RCE\" -d '{\"segment\": {\"service_type\": \"compute\", \"recovery_method\": \"auto\", \"name\": \"tsting1\", \"description\": \"one\\r\\ntwo\\r\\n\"}}'\n\nHTTP/1.1 400 Bad Request\nDate: Tue, 12 Jun 2018 03:34:25 GMT\nServer: Apache/2.4.18 (Ubuntu)\nOpenStack-API-Version: masakari 1.0\nVary: OpenStack-API-Version\nContent-Type: application/json; charset=UTF-8\nContent-Length: 8543\nx-openstack-request-id: req-7bbac51a-dea3-41c9-977f-650e2dea29cd\nConnection: close\n\n{\"badRequest\": {\"message\": \"Invalid input for field/attribute description. Value: tsting\\r\\neerewr\\r\\n.u'tsting\\\\r\\\\neerewr\\\\r\\\\n' does not match u'^[\\\\\\\\ -\\\\\\\\~\\\\\\\\\\\\xa0-\\\\\\\\\\\\xac\\\\\\\\\\\\xae-\\\\\\\\\\\\u0377\\\\\\\\\\\\u037a-\\\\\\\\\\\\u037e\\\\\\\\\\\\u0384-\\\\\\\\\\\\u038a\\\\\\\\\\\\u038c\\\\\\\\\\\\u038e-\\\\\\\\\\\\u03a1\\\\\\\\\\\\u03a3-\\\\\\\\\\\\u0525\\\\\\\\\\\\u0531-\\\\\\\\\\\\u0556\\\\\\\\\\\\u0559-\\\\\\\\\\\\u055f\\\\\\\\\\\\u0561-\\\\\\\\\\\\u0587\\\\\\\\\\\\u0589-\\\\\\\\\\\\u058a\\\\\\\\\\\\u0591-\\\\\\\\\\\\u05c7\\\\\\\\\\\\u05d0-\\\\\\\\\\\\u05ea\\\\\\\\\\\\u05f0-\\\\\\\\\\\\u05f4\\\\\\\\\\\\u0606-\\\\\\\\\\\\u061b\\\\\\\\\\\\u061e-\\\\\\\\\\\\u061f\\\\\\\\\\\\u0621-\\\\\\\\\\\\u065e\\\\\\\\\\\\u0660-\\\\\\\\\\\\u06dc\\\\\\\\\\\\u06de-\\\\\\\\\\\\u070d\\\\\\\\\\\\u0710-\\\\\\\\\\\\u074a\\\\\\\\\\\\u074d-\\\\\\\\\\\\u07b1\\\\\\\\\\\\u07c0-\\\\\\\\\\\\u07fa\\\\\\\\\\\\u0800-\\\\\\\\\\\\u082d\\\\\\\\\\\\u0830-\\\\\\\\\\\\u083e\\\\\\\\\\\\u0900-\\\\\\\\\\\\u0939\\\\\\\\\\\\u093c-\\\\\\\\\\\\u094e\\\\\\\\\\\\u0950-\\\\\\\\\\\\u0955\\\\\\\\\\\\u0958-\\\\\\\\\\\\u0972\\\\\\\\\\\\u0979-\\\\\\\\\\\\u097f\\\\\\\\\\\\u0981-\\\\\\\\\\\\u0983\\\\\\\\\\\\u0985-\\.............}\n\nExpected Result : 200 OK\nActual Result : 400 badRequest", "owner_link": "https://bugs.launchpad.net/api/devel/~tpatil", "bug_tasks_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/bug_tasks", "duplicate_of_link": null, "date_created": "2018-06-12T04:09:21.584849+00:00", "activity_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/activity", "subscriptions_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/subscriptions", "date_last_updated": "2021-04-29T16:45:04.302674+00:00", "who_made_private_link": null, "date_made_private": null, "heat": 6, "bug_watches_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/bug_watches", "cves_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/cves", "vulnerabilities_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/vulnerabilities", "duplicates_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/duplicates", "attachments_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/attachments", "security_related": false, "latest_patch_uploaded": null, "tags": [], "date_last_message": "2021-04-29T16:45:03.815062+00:00", "number_of_duplicates": 0, "message_count": 6, "users_affected_count": 1, "users_unaffected_count": 0, "users_affected_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/users_affected", "users_unaffected_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/users_unaffected", "users_affected_count_with_dupes": 1, "other_users_affected_count_with_dupes": 1, "users_affected_with_dupes_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/users_affected_with_dupes", "messages_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/messages", "lock_status": "Unlocked", "lock_reason": null, "linked_branches_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/linked_branches", "linked_merge_proposals_collection_link": "https://bugs.launchpad.net/api/devel/bugs/1776385/linked_merge_proposals", "http_etag": "\"daf08e7e52b6fc5c24297731efe6a5979700475b-9593e4f482bb30017635f6bd8e61d2dbfad4246a\""}, "subscribers_portlet_url_data": {"web_link": "https://bugs.launchpad.net/bugs/1776385", "self_link": "https://bugs.launchpad.net/api/devel/bugs/1776385"}, "total_comments_and_activity": 9, "initial_comment_batch_offset": 41, "first visible_recent_comment": -35, "bugtask_data": {"2394482": {"id": 2394482, "row_id": "tasksummary2394482", "form_row_id": "task2394482", "bugtask_path": "/masakari/+bug/1776385", "prefix": "masakari", "targetname": "masakari", "bug_title": "Failover segment description doesn't accept multiline characters", "assignee_value": "sampath-priyankara", "assignee_is_team": false, "assignee_vocabulary": "AllUserTeamsParticipation", "assignee_vocabulary_filters": [], "hide_assignee_team_selection": true, "user_can_unassign": false, "user_can_delete": false, "delete_link": "https://bugs.launchpad.net/masakari/+bug/1776385/+delete", "target_is_product": true, "status_widget_items": [{"name": "Fix Released", "value": "Fix Released", "description": "The fix was released.\n", "description_css_class": "choice-description", "style": "", "help": "", "disabled": false, "css_class": "statusFIXRELEASED"}], "status_value": "Fix Released", "importance_widget_items": "[]", "importance_value": "Undecided", "milestone_widget_items": "[]", "milestone_value": null, "user_can_edit_assignee": false, "user_can_edit_milestone": false, "user_can_edit_status": false, "user_can_edit_importance": false}}, "information_type_data": {"PUBLIC": {"value": "PUBLIC", "description": "Everyone can see this information.\n", "name": "Public", "order": 0, "is_private": false, "description_css_class": "choice-description"}, "PUBLICSECURITY": {"value": "PUBLICSECURITY", "description": "Everyone can see this security related information.\n", "name": "Public Security", "order": 1, "is_private": false, "description_css_class": "choice-description"}, "PRIVATESECURITY": {"value": "PRIVATESECURITY", "description": "Only the security group can see this information.\n ", "name": "Private Security", "order": 2, "is_private": true, "description_css_class": "choice-description"}, "USERDATA": {"value": "USERDATA", "description": "Only shared with users permitted to see private user information.\n", "name": "Private", "order": 3, "is_private": true, "description_css_class": "choice-description"}}, "bug_is_private": false, "context": {"self_link": "https://bugs.launchpad.net/api/devel/masakari/+bug/1776385", "web_link": "https://bugs.launchpad.net/masakari/+bug/1776385", "resource_type_link": "https://bugs.launchpad.net/api/devel/#bug_task", "bug_link": "https://bugs.launchpad.net/api/devel/bugs/1776385", "milestone_link": null, "status": "Fix Released", "status_explanation": null, "importance": "Undecided", "importance_explanation": null, "assignee_link": "https://bugs.launchpad.net/api/devel/~sampath-priyankara", "bug_target_display_name": "masakari", "bug_target_name": "masakari", "bug_watch_link": null, "date_assigned": "2018-06-12T06:49:51.957712+00:00", "date_created": "2018-06-12T04:09:21.584849+00:00", "date_confirmed": "2018-06-12T06:50:00.106900+00:00", "date_incomplete": null, "date_in_progress": "2018-06-12T06:50:00.106900+00:00", "date_closed": "2021-03-26T16:40:36.399257+00:00", "date_left_new": "2018-06-12T06:50:00.106900+00:00", "date_triaged": "2018-06-12T06:50:00.106900+00:00", "date_fix_committed": "2021-03-26T16:40:36.399257+00:00", "date_fix_released": "2021-03-26T16:40:36.399257+00:00", "date_left_closed": null, "owner_link": "https://bugs.launchpad.net/api/devel/~tpatil", "target_link": "https://bugs.launchpad.net/api/devel/masakari", "title": "Bug #1776385 in masakari: \"Failover segment description doesn't accept multiline characters\"", "related_tasks_collection_link": "https://bugs.launchpad.net/api/devel/masakari/+bug/1776385/related_tasks", "is_complete": true, "http_etag": "\"e9ecf1008185a706bde866bd0e7694bdaeeb7a76-f3461c4d589b6d7d24b59ab0bd6cb6686f14eea9\""}};</script> </body> <!-- Facet name: bugs Page type: main_side Has global search: True Has application tabs: True Has side portlets: True At least 45 queries/external actions issued in 0.83 seconds Features: {'profiling.enabled': None, 'hard_timeout': '9000', 'app.mainsite_only.canonical_url': None, 'js.yui_version': None, 'app.maintenance_message': None, 'bugs.affected_count_includes_dupes.disabled': None, 'baselayout.careers_link.disabled': None, 'visible_render_time': None} raa29ae0 --> </html>