[Bug]: API requests send incorrect TabId in pop-ups
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp, javascript
Research direction
Start by locating dnnModal.show and the code that assembles API request headers, then reproduce the issue using the Resource Manager steps in the report. Trace how the pop-up page's TabId is obtained and passed into those headers. Done means requests from pop-up modules send the pop-up page's TabId and Resource Manager loads as expected.
Written by the indexing model from the issue text.
Description
Is there an existing issue for this?
- I have searched the existing issues
What happened?
When opening another page in a pop-up via dnnModal.show, requests from modules on that page get the parent page TabId put in the request headers. This causes problems for APIs that use that, as that module may not exist on the parent page. The TabId of the page open in the pop-up should be sent instead.
Steps to reproduce?
- Enable pop-ups (It's disabled by default on 10.X.X)
- Add the Resource Manager module to a page
- On another page, add a module that opens the first page via
dnnModal.show. An example of this would be an HTML module with this HTML:<p><a href="/Test" onclick="return dnnModal.show('/Test?popUp=true',true,550,950,false)">Test Pop-up</a></p> - Open the pop-up
Current Behavior
The incorrect TabId is sent in the request headers; parent page instead of pop-up page. In the example given above, Resource Manager is unable to get its settings and folder information. It may also trigger browser alerts related to the info the API calls were supposed to get.
Expected Behavior
API calls from modules on the pop-up page should have the correct TabId in the request headers. In the example above, Resource Manager should load as expected.
Relevant log output
{"Message":"Specified module instance does not exist."}
Anything else?
No response
Affected Versions
10.2.3 (latest release)
What browsers are you seeing the problem on?
Chrome
Code of Conduct
- I agree to follow this project's Code of Conduct
- Dominant language
- C#
- Stars
- 1.1k
- Forks
- 791
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 24
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dnnsoftware/Dnn.Platform
-
[Bug]: Edit Bar buttons are not localizedPossibly taken @idumlupinar claimed this 2 days ago. OpenStatus: New
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dnnsoftware/Dnn.Platform#7565 ·
Maintainers usually reply within 1 day
-
[Bug]: DNN 10.4.0 assembly registration fails for a two-component file version (Owin.dll)Possibly taken A pull request linked to this issue is open or already merged. OpenStatus: New
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dnnsoftware/Dnn.Platform#7543 · 3 comments ·
Maintainers usually reply within 1 day
-
Status: New
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dnnsoftware/Dnn.Platform#6681 ·
Maintainers usually reply within 1 day
-
Status: New
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
dnnsoftware/Dnn.Platform#6051 · 4 comments ·
Maintainers usually reply within 1 day
-
Status: New
Difficulty 3/5 1-2 days Newbie friendliness 45/100
dnnsoftware/Dnn.Platform#7555 ·
Maintainers usually reply within 1 day
All issues in dnnsoftware/Dnn.Platform
Similar issues
-
area: design documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
eyalgolan/statecraft-israel#883 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
area/indexing bug package/core triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
elastic/docs-builder#4495 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day