20
Views
1
Comments
[Properties Management] Bug found in ModuleServices OnBeforeRequest of PropertiesCore
properties-management
Web icon
Forge asset by Properties Team
Application Type
Traditional Web
Service Studio Version
11.54.79 (Build 63629)
Platform Version
11.30.0 (Build 43791)

I installed this in Lifetime to test this component out and was met with many integration 404 errors such as:

https://www.mydomain.net/PropertiesServices/rest/ModuleServices//Module_GetSharedSitePropertiesList

The error is of course due to the double "//" between ModuleServices and Module_GetSharedSitePropertiesList path names.

In the OnBeforeRequest of the ModuleServices API, you are setting the CustomizedRequest.BaseURL = Protocol + "://" + Hostname + "/PropertiesServices/rest/ModuleServices/"

The BaseURL is then prepended to the method path, such as:

/Module_GetSharedSitePropertiesList?ModuleKey={ModuleKey}&SearchKeyword={SearchKeyword}&OnlyActive={OnlyActive}&Hostname={Hostname}&Protocol={Protocol}

As a result, you end up with double "//" in the full URL.

The quick solution for me was to remove the trailing "/" in the CustomizedRequest.BaseURL.  

Pointing this out for anyone else that attempts to use this component; and hopefully fixed by the team.


2025-02-22 18-27-01
Alfaro
 
MVP

Hello @ChrisRE ,

Thank you for mentioning this, I'll add this correction to the upcoming next version.

CA

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.