Prompt: Cross-portal scripting: "set-user", "restore-user", "add-roles" are not working with anyhting other than the main site (To be general, the site in the URL))

Description

Steps:

  1. For some platform installation (DNN_Platform_9.2.0.323-661).

  2. Login as host.

  3. From PB, Go Manage, sites.

  4. Add new child site (site2) (Will get ID=1) with type Domain (yourMainURL/site2)

  5. Login to the child site, add new user; usery (In my case it has ID=5).

  6. Use fiddler

  7. Pass the url of you main site +"/API/PersonaBar/Command/Cmd/1" as POST (This targets scripting over the site with id=1)

  8. Add all required headers (From the main site's instance)

  9. Pass this in the request's body: {"cmdLine=set-user 5 username useryyy --firstname usery --lastname useryyy "}

  10. Execute the request.

  11. Repeat with "restore-user" & "add-roles" commands.

Result:

  • You'll get in the body of your request that the userNotExist or ObjectReference not set to an instance of an object according to the command.

Expected:

  • When targeting site2 in the crossportalID and with commands targeting users on that port, it should work.
    Currently these commands only work for the main site (or actually the site of the basic url)
    Needs fixing for "set-user", "restore-user", "add-roles".
    You can find the other user commands working correctly, for e.g. new-user, delete-user.

QA Test Plan

None

Assignee

Mohtshm

Reporter

Nesma Ashraf

Story Size

M

Severity

Major

Triage

New

Reported in Build #

None

Fixed in Build

Dev Owner

Mohtshm

Includes Code Fix

No

Documentation Required

None

Trouble Ticket

None

Requires More Info

None

QA Story Points

None

QA Owner

Nesma Ashraf

Injected

None

Automation Required

None

Code Review Owner

None

Story Points

3

Epic Link

Components

Fix versions

Priority

High
Configure