Domain URI uripath Causing Double Slashes

Created on 19 March 2024, 3 months ago
Updated 20 June 2024, 8 days 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.69.0 2024