Domain URI uripath Causing Double Slashes
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3432120. -->
Reported by: [fractile81](https://www.drupal.org/user/62850)
Related to !22
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Having added a new Domain and authorized it with a remote site, I was unable to connect to the agent due to the URI having two forward slashes between the domain's host and the path. In the database, the drd_domain.uripath had been set to "/". The agent's server was redirecting to remove the double forward slashes, breaking the agent's use of "php://input".</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>With an added domain, check drd_domain for one with a uripath of "/", or set one to it.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>When generating the domain's URI, trim the uripath of forward slashes before checking its emptiness.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Test and apply patch.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>n/a</p>
<h3 id="summary-api-changes">API changes</h3>
<p>n/a</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>n/a</p>
issue