Skip to content

Fix HTTPS support on external storages - #22636

Merged
DeepDiver1975 merged 2 commits into
masterfrom
fix-ssl-on-external-storages
Feb 25, 2016
Merged

DeepDiver1975 merged 2 commits into
masterfrom
fix-ssl-on-external-storages

Conversation

@LukasReschke

Copy link
Copy Markdown
Contributor

The current logic is checking whether:

  1. The returned value is a boolen
  2. The returned value is a string and then matches for "true"

Since the config is now written to the database the data is now a string with the value "1" if HTTPS is set to true. Effectively this option was thus always disabled at the moment, falling back to plain HTTP.

This change casts the data to a boolean if it is defined as boolean.

Fixes #22605
Fixes #22016


@SergioBertolinSG Please test
@PVince81 @icewind1991 Mind taking a look?

Otherwise debugging issues is a PITA
The current logic is checking whether:

1. The returned value is a boolen
2. The returned value is a string and then matches for "true"

Since the config is now written to the database the data is now a string with the value "1" if HTTPS is set to true. Effectively this option was thus always disabled at the moment, falling back to plain HTTP.

This change casts the data to a boolean if it is defined as boolean.

Fixes #22605
Fixes #22016
@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @PVince81, @Xenopathic and @bartv2 to be potential reviewers

@PVince81

Copy link
Copy Markdown
Contributor

Tested, works: the checkbox value is preserved 👍

@davitol @SergioBertolinSG @icewind1991 @Xenopathic second review ?

@davitol

davitol commented Feb 25, 2016

Copy link
Copy Markdown
Contributor

I've tested this issue #22016

After mounting the webdav mount, it appears in the filesview, but when i browse into the folder, it disappears

@LukasReschke

Copy link
Copy Markdown
Contributor Author

After mounting the webdav mount, it appears in the filesview, but when i browse into the folder, it disappears

Thou shall describe exactly what you have done exactly 😉

@davitol

davitol commented Feb 25, 2016

Copy link
Copy Markdown
Contributor

@LukasReschke The PR works fine 👍

Thou shall describe exactly what you have done exactly 😉

but when i browse into the folder, it disappears

It does not dissapear, i was wrong due to the webdavmount had the same skeleton folders than the server I used. So when i browsed into it i thought it was disappearing 💀

Sorry for the mistake

@LukasReschke

Copy link
Copy Markdown
Contributor Author

It does not dissapear, i was wrong due to the webdavmount had the same skeleton folders than the server I used. So when i browsed into it i thought it was disappearing 💀

No worries 😄

DeepDiver1975 added a commit that referenced this pull request Feb 25, 2016
@DeepDiver1975
DeepDiver1975 merged commit 914ac09 into master Feb 25, 2016
@DeepDiver1975
DeepDiver1975 deleted the fix-ssl-on-external-storages branch February 25, 2016 13:36
@lock

lock Bot commented Aug 7, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

5 participants