Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing session parameters if session cookies are disabled #47

Closed
wants to merge 3 commits into from

Conversation

tipue-dev
Copy link
Contributor

@tipue-dev tipue-dev commented Apr 4, 2021

Proposed change

Some action in the frontend open the login page instead of what was requested, if the use of cookies is disabled.
I added the session name and session id as parameter where i found them to be missing.

Type of change

  • 🆙 - Dependency upgrade (e.g. libraries)
  • 🐞 - Bugfix (non-breaking change which fixes an issue)
  • 💎 - Code quality improvements to existing code or addition of unit tests
  • 🚀 - New feature (which adds functionality to an existing integration)

Additional information

To reproduce the bug, set the setting "SessionUseCookie" to false.
Try to download the support package using the web interface.

Details to reproduce each error (click to expand)

File

var/httpd/htdocs/js/Core.SystemConfiguration.js

Problem

Changes from line: 192

index.pl?Action=AdminSystemConfiguration;

On the left side in the navigation widget, hover with the mouse over an entry and click on the
icon, that pops up to open the node in a new window

Problem: Login page is shown

Problem

Changes from line: 1624

index.pl?Action=AdminSystemConfiguration;

On the left side in the navigation widget, click on a node.
Then click on the new entry in the breadcrumb.

Problem: Login page is shown

File

var/httpd/htdocs/js/Core.Agent.Admin.SupportDataCollector.js

Problem

Changes from line: 1624

index.pl?Action=AdminSupportDataCollector;

Click on the left on "Generate Support Bundle" and after that on "Download" in the dialog.

Problem: Login page is shown

File

var/httpd/htdocs/js/Core.Agent.Admin.CommunicationLog.js

Problem

Changes from line: 106

index.pl?Action=AdminCommunicationLog;

On the left, change the value of "Time Range" [#TimeRange]

Problem: Login page is shown

Problem

Changes from line: 121

index.pl?Action=AdminCommunicationLog;Subaction=Accounts;

On the left, change the value of "Time Range" [#TimeRangeAccounts]

Problem: Login page is shown

Problem

Changes from line: 136

index.pl?;Action=AdminCommunicationLog;

select a communicatiob from a status status.
Change the priority filter on the left.

Problem: Login page is shown

File

Znuny/var/httpd/htdocs/js/Core.Agent.AppointmentCalendar.js

Problem

Changes from line: 510

index.pl?Action=AgentAppointmentCalendarOverview;

Create an entry in the calendar.
Open the overview or change the visibility of a calendar.

Problem: Login page is shown

Checklist

  • The code change is tested and works locally.(❗)
  • There is no commented out code in this PR.(❕)
  • You improved or added new unit tests.(❕)
  • Local ZnunyCodePolicy run passes successfully.(❕)
  • Local unit tests pass.(❕)
  • GitHub workflow ZnunyCodePolicy passes.(❗)
  • GitHub workflow unit tests pass.(❗)

@dennykorsukewitz dennykorsukewitz added 1 - 🐞 bug 🐞 An issue with the system. 2 - unknown 4 - clarification The issue or pull requests needs more information. labels Apr 6, 2021
@dennykorsukewitz dennykorsukewitz changed the base branch from rel-6_0-dev to rel-6_1-dev June 1, 2021 08:42
@hanneshal hanneshal self-assigned this Jul 21, 2021
@dennykorsukewitz
Copy link
Member

Hi

This branch has conflicts that must be resolved.

Thank you! 🚀

@tipue-dev
Copy link
Contributor Author

tipue-dev commented Apr 4, 2023

@dennykorsukewitz in case you assign me to remind me about the conflicts, i already resolved them

@dignin dignin requested review from hanneshal and dennykorsukewitz and removed request for hanneshal July 12, 2023 09:35
@dignin
Copy link

dignin commented Jul 12, 2023

@dennykorsukewitz is this ready to be merged? If so, please do so. Thx.

@NiklasSchmitt NiklasSchmitt requested review from NiklasSchmitt and removed request for dennykorsukewitz February 19, 2024 16:02
@NiklasSchmitt
Copy link
Contributor

Hi @tipue-dev, could you please try to explain me, how you have found the modules and requests where the session parameters was missing?

@hanneshal hanneshal self-requested a review February 20, 2024 09:46
@hanneshal hanneshal added 4 - wontfix This will not be worked on. and removed 1 - 🐞 bug 🐞 An issue with the system. 4 - clarification The issue or pull requests needs more information. 2 - unknown labels Feb 20, 2024
@hanneshal
Copy link

Hi Tim,

sorry, to bother but this cam just up in my feed.
This "feature" or support for session id in the url is deprecated since the dark ages.

We wont make any changes to it except for removing it completly.
The config has to match the environment, otherwise it simply wont work.

Regards
Johannes

@hanneshal hanneshal closed this Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - wontfix This will not be worked on.
Development

Successfully merging this pull request may close these issues.

5 participants