Skip to content

fix: Convert session ids returned from PostgreSQL#33822

Merged
chmst merged 4 commits intojoomla:4.0-devfrom
nibra:postgres-session-id
May 13, 2021
Merged

fix: Convert session ids returned from PostgreSQL#33822
chmst merged 4 commits intojoomla:4.0-devfrom
nibra:postgres-session-id

Conversation

@nibra
Copy link
Copy Markdown
Member

@nibra nibra commented May 12, 2021

Pull Request for Issue #33740 . alternative to #33787, #33817, #33819

When reading the session id from the session table on a PostgreSQL database, the result is an array of streams and not of strings.

Summary of Changes

If the session ids returned from the database are streams, they are converted into strings.
Additionally, duplicated code was reduced.

Testing Instructions

see #33740

Actual result BEFORE applying this Pull Request

see #33740

Expected result AFTER applying this Pull Request

Successfull logout. Session destroyed correctly.

Documentation Changes Required

None.

@richard67
Copy link
Copy Markdown
Member

@nibra Fix PHP code style errors please: https://ci.joomla.org/joomla/joomla-cms/43569/1/6

@richard67
Copy link
Copy Markdown
Member

Adding release blocker label as inherited from the issue.

@joomdonation
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 9313624


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33822.

@joomdonation
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 7be5b7c


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33822.

1 similar comment
@richard67
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 7be5b7c


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33822.

@richard67
Copy link
Copy Markdown
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33822.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label May 12, 2021
@richard67 richard67 added this to the Joomla 4.0 milestone May 12, 2021
@chmst chmst merged commit 242ebf1 into joomla:4.0-dev May 13, 2021
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 13, 2021
@chmst
Copy link
Copy Markdown
Contributor

chmst commented May 13, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants