Domain URI uripath Causing Double Slashes

Created on 19 March 2024, 9 months ago
Updated 20 June 2024, 6 months ago

Problem/Motivation

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".

Steps to reproduce

With an added domain, check drd_domain for one with a uripath of "/", or set one to it.

Proposed resolution

When generating the domain's URI, trim the uripath of forward slashes before checking its emptiness.

Remaining tasks

Test and apply patch.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

🐛 Bug report
Status

Fixed

Version

4.1

Component

Code

Created by

🇺🇸United States fractile81

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024