Skip to content

Resolve obsolete warnings#6965

Open
bdukes wants to merge 13 commits intodnnsoftware:developfrom
bdukes:obsolete
Open

Resolve obsolete warnings#6965
bdukes wants to merge 13 commits intodnnsoftware:developfrom
bdukes:obsolete

Conversation

@bdukes
Copy link
Contributor

@bdukes bdukes commented Feb 3, 2026

Summary

This PR resolves obsolete warnings in DotNetNuke.Library from 1,205 to 1,016.

@bdukes bdukes added this to the 10.2.3 milestone Feb 3, 2026
@bdukes bdukes force-pushed the obsolete branch 3 times, most recently from 8d52554 to 0f943b6 Compare February 9, 2026 21:05
@bdukes bdukes force-pushed the obsolete branch 3 times, most recently from a7adc9c to 92a0d05 Compare February 12, 2026 14:11
@bdukes bdukes force-pushed the obsolete branch 2 times, most recently from e70686c to 953c786 Compare February 17, 2026 19:10
@bdukes bdukes marked this pull request as draft February 17, 2026 23:42
Pass in dependencies to FileManager via constructor
@bdukes bdukes marked this pull request as ready for review February 17, 2026 23:52
Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments/questions but the major issue is that casing was changed on some API controllers returns that are causing issues in the frontend, most notably the Site Settings persona bar module is not working.

public IHttpActionResult Logout()
{
return JwtController.Instance.LogoutUser(this.Request) ? (IHttpActionResult)this.Ok(new { success = true }) : this.Unauthorized();
return JwtController.Instance.LogoutUser(this.Request) ? (IHttpActionResult)this.Ok(new { Success = true, }) : this.Unauthorized();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This casing change in the dynamic object might be breaking for consumers of this response.

res = new CachedCountryList(locale);
DotNetNuke.Common.Utilities.DataCache.SetCache(CacheKey(locale), res);
res = new CachedCountryList(listController);
DataCache.SetCache(CacheKey("none"), res);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the change to "none" here intentional?

@@ -338,34 +381,34 @@ public HttpResponseMessage GetDefaultPagesSettings(int? portalId, string culture
{
Settings = new
{
PortalId = portal.PortalID,
((IPortalInfo)portal).PortalId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could change the casing of the json right, which may make the frontend choke on that change

@@ -453,15 +496,15 @@ public HttpResponseMessage GetMessagingSettings(int? portalId)
{
Settings = new
{
PortalId = portal.PortalID,
((IPortalInfo)portal).PortalId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here on the casing change affecting the response json

Comment on lines +1154 to +1155
a.PortalAliasId,
a.HttpAlias,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here about casing for the json

@@ -1572,15 +1610,15 @@ public HttpResponseMessage GetPrivacySettings(int? portalId)
{
Settings = new
{
PortalId = portal.PortalID,
((IPortalInfo)portal).PortalId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here for json casing

var availablePortals = portals.Select(v => new
{
v.PortalID,
v.PortalId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here for json casing

@@ -2261,7 +2299,7 @@ public HttpResponseMessage GetLanguageSettings(int? portalId)

var settings = new
{
PortalId = portal.PortalID,
((IPortalInfo)portal).PortalId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here for json casing

@valadas valadas removed this from the 10.2.3 milestone Feb 25, 2026
@valadas valadas added this to the 10.2.4 milestone Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants