Piwigo / Piwigo-Android

Piwigo Native Android App
GNU General Public License v3.0
141 stars 43 forks source link

No picture displayed (due to http accesses after login with https) #184

Closed guiyou65 closed 3 years ago

guiyou65 commented 4 years ago

Each of my tablett and smartphone with Android 9 Pie are unable to show pictures with the latest v1.0.2. Folders are there. But no picture. I tried a standard user and a privileged one. No result.

Edit, ramack, Status: Some servers return strange URLs for the images depending on settings like original_url_protection and also if piwigo server is behind an reversproxy like nginx or haproxy

Solution: see comment from @EddyLB we need to:

tvass commented 4 years ago

@calmor15014 I did not wanted to offend you about the RTFM. I wanted to point that some technical information about this issue are explained previously (it includes some Piwigo dev in it).

I understand what you are saying and technically everything is fine. It's very common nowadays to have reverse proxy to terminate TLS and there are plenty of ways to solve this easily (override the URL on client side like you mentioned, use URL with relative path is an other, server side variable to force HTTPS URL, etc...).

From my perspective, when you configure an account with HTTPS:// in an Android Application, you expect to NEVER connect an HTTP:// endpoint. In this case, leaking URL over HTTP is a real problem because pictures are NOT protected to direct linking ... I don't think the Android application should trick the user and make him to think he is secured when he is not.

calmor15014 commented 4 years ago

@tvass No offense taken! I should have read the above comments in more details, but I was skimming for the solution. My apologies.

As for the endpoint type leaking issue, maybe the app could force HTTPS when the server is set up as HTTPS, and just error out (with error message) if the HTTPS access to the configured account fails, and not even try the HTTP version. That seems like a reasonable way of handling the issue. In my case, at least, I'm not trying to ask the Android app to connect to the HTTP endpoint, I want it to hit the HTTPS endpoint as per the account.

What is happening instead is the Android app IS trying to access the HTTP version, getting the 301, and not following it, silently failing and showing blank images.

I am not a pro dev but I might try to force Piwigo to just send relative URLs via the API and see if both Android and iOS will work with that, since it's far easier to configure some code on my server than it is to rebuild and side-load the app. If that actually does work, then there would be no redirection.

I suppose it could be possible for HAProxy to actually overwrite the JSON but that would be exceedingly hackish/messy...

calmor15014 commented 4 years ago

With some very hackish overriding url returns in ws_functions.inc.php on the Piwigo server side, I was able to discern that the Android app does NOT work with relative paths in the JSON returns. It didn't work with a leading slash or without. So, while I was hoping to quick-patch the server side to just get rid of the host info, that won't help.

However, hard-coding that same file with my host with https://server.url/ in that code did allow the Android app to make the appropriate calls.

Above, someone referenced Nextcloud having an option to tell it that it's behind a SSL-terminating proxy and to send https links, but as mentioned this is a Piwigo server issue, not as much an app issue.

That said, it also seems like you can fix it by going into Piwigo's functions_url.inc.php and changing function get_absolute_root_url($with_scheme=true)

Changing else { $url .= 'http://' }

to

else { $url .= 'https://' }

SUPER hackish (basically forcing piwigo to return https links for everything). It didn't fix uploading, but I can see everything on the server, so that's a start.

bhlevca commented 4 years ago

@calmor15014 Thank you for looking into it. It is really helpful. I will try to fix mine the same way. For now just looking at the pictures is all I need. Empty folders are not fun to look at.

calmor15014 commented 4 years ago

@bhlevca Please make that change at your own risk. I know nothing of the Piwigo code and I can't promise it won't break something else badly. It shouldn't end in catastrophe with just forcing https, but I can't predict all possibilities. It will also likely be overwritten by Piwigo upgrades.

I am still able to use the iOS app and the desktop versions just fine, including upload. I can't delete or rename anything, but I'm not even sure if that app supports it typically. I use the same user on all platforms and that user is an admin.

I just tested now after a few hours, and a restart of the app. I was actually able to upload and create new folders without any additional changes.

Edit: seems like only some things I can actually upload. Still don't know what's going on with that.

bhlevca commented 4 years ago

@calmor15014 Do not worry, no need for disclaimer. Things can be always reverted if something does not work. I also understand that updates may overwrite my changes. I usually keep copy of the files I am changing so that I can redo them if needed. I will test and if not happy with the solution I can always go back.

ramack commented 3 years ago

As with the picasso update the https redirect should work properly I close this for now. Please try with upcoming release and report a new ticket if there is still an issue.

jscmidt commented 3 years ago

As with the picasso update the https redirect should work properly I close this for now. Please try with upcoming release and report a new ticket if there is still an issue.

Do I still have to use one of the “hacks” showed above or should it work out of the box right now? Because actually that isn’t the case when using Piwigo behind a Treafik reverse-proxy. I’m only getting white squares…

ioogithub commented 2 years ago

As with the picasso update the https redirect should work properly I close this for now. Please try with upcoming release and report a new ticket if there is still an issue.

@ramack I just tried this with Piwigo NG version 1.0.3 from fdroid and it did not work. I was getting white squares and broken links for all images in the app while the www workes fine. You mentioned https redirect are you refering to adding RequestHeader set X-Forwarded-Proto "http" to the server? I just tried this and it did not work.

The hack definitely works, I was researching this for several hours before I found this thread but if it is supposed to work out of the box it definitely did not. Can we reopen this issue?

Do I still have to use one of the “hacks” showed above or should it work out of the box right now? Because actually that isn’t the case when using Piwigo behind a Treafik reverse-proxy. I’m only getting white squares… It fixed the issue for me, I believe this hack is still necessary the other redirect didn't work for me.

ramack commented 2 years ago

Piwigo NG is not in fdroid, I guess you installed it from Play store. @remi-martin @plegall maybe you should consider restructuring the repos here such that users are ending up in the right one.

Also the NG should be made available in f-droid to officially phase out the old android app. Maybe even think of moving the new one into the old android package name to have a upgrade path...

ioogithub commented 2 years ago

Piwigo NG is not in fdroid, I guess you installed it from Play store.

As I mentioned in the other thread, I downloaded and am using version 1.0.3 from the fdroid app. I do not have the google play store on my device.

guiyou65 commented 2 years ago

I think you did not download the last version which is Piwigo NG, only on Playstore

bhlevca commented 2 years ago

I downloaded the latest version from playstore, but the empty squares problems are still there. The app since its early inception has not worked. Luckily, the mobile web version is very good, which makes the app not necessary. I believe the developers only test with direct connection and not through a proxy such as ha_proxy. Otherwise, one cannot understand why it takes so long to figure out that the app does not work in such conditions

remi-martin commented 2 years ago

Hi @bhlevca, Piwigo NG is not officially released on f-droid. As the Android Developer of Piwigo, I know that I never did.

bhlevca commented 2 years ago

Hi @bhlevca, Piwigo NG is not officially released on f-droid. As the Android Developer of Piwigo, I know that I never did.

@remi-martin, I did not say anything about f-droid, which I don't even have on my phone, I said playstore. Check my previous post above. However, you forgot to mention that this does not change the fact the Piwigo NG or the previous piwigo app never worked properly, at least behind a proxy like ha-proxy. If you want to fix the https issue you need to have such an environment for developing and testing.

remi-martin commented 2 years ago

Hi @bhlevca, then if it concerns Piwigo NG I'll recommend you to check the right repository piwigo-flutter-app There is an issue that might match yours no image show on android piwigo_ng app or piwigo

Then, yes we mainly work with Piwigo.com. Having an environment for every type of server that can host a Piwigo is nearly impossible. The best would be to work with you in order to find and resolve the issue you encounter. I'll check for more information on the compatibility with flutter networking and ha-proxy.

bhlevca commented 2 years ago

Thanks for the info, I will check it out. However, bear in mind that it is not every type of server. This is a specific issue with the piwigo server behind an https proxy or load balancer such as ha_proxy. There are many reports about this and only your app has this issue, the browser copes with the problem.

Since the browser on the phone works just fine probably I am going to continue using that.

bluebrad commented 1 year ago

im having a simlar issue. all my users cant see the full size image but there are thumbnails. not only is the full size image missing but the images for the menus are also missing.

Gegele1 commented 1 year ago

HI, I get no pictures through Piwigo NG 2.2.3 running on Android 9 with a Piwigo server 13.8.0 running on FreBSD since it is behind an HAProxy reverse proxy. The connection gets all right, but all thumbnails and pictures appear as broken files. When using any browser (Edge, Firefox, Chrome …) I can get the pictures, but some thumbnails appear only after refreshing the pages, not immediately, When the Piwigo NG application accesses to the Piwigo server by its IP address from the internal network, the thumbnails and pictures display correctly. Using the iPhone Piwigo client also works fine from anywhere. HAProxy with a let’s encrypt certificate redirects in https to Piwigo Server with a self-signed certificate Piwigo Free client from the Play Store displays the pictures normally, but also displays a warning “unexpected authority piwigo.piquot.eu:80 found in URL and replaced by piwigo.piquot.eu. Your server could be misconfigured” Is there a solution to this problem that appear in several forums without a practical solution?

Environnement Piwigo 13.8.0 Dernière version ? Installé le 12 Septembre 2021, il y a 1 an 11 mois 3 semaines 2 jours Système d'exploitation: FreeBSD PHP: 7.4.23 (Montrer les informations) [2023-09-06 11:50:49] MySQL: 5.5.5-10.5.12-MariaDB [2023-09-06 13:50:49] Bibliothèque graphique: GD 2.3.1 Taille du cache 0.96 Mo   calculé il y a 3 mois Rafraîchir Liste des plugins activés15 Admin Tools Batch Downloader Community Fotorama gdThumb GThumb+ Language Switch LocalFiles Editor Meta Open Graph OpenStreetMap ShareAlbum Tag Groups Take A Tour of Your Piwigo User Collections VideoJS

bluebrad commented 1 year ago

im not seeing any problems looks like it might be on your end, have you tried another computer? I can see the direct image is https, you might want to delete all thumbnails and have them regenerate. under Maintenance > Delete multiple size images > check off all and delete them. https://piwigo.piquot.eu/i.php?/upload/2021/12/22/20211222124102-c9dcba39-xl.jpg

also is there a way to rebuild your DNS zone file. i have found that sometimes that is a problem with subdomains.

Gegele1 commented 1 year ago

Hi Brad,

Thank you for your answer. My server is a jail on a TrueNAS core server (FreeBSD). I shall try to make a new clean installation in another environment, but this can take some time.

My main concern is about Piwigo NG, as my audience is generally using their android or IOS pad/phone. The problem remains in this environment for all android terminals that I have tried. No problem with IOS and the other Piwigo Client available in Play store is working fine but sending warning about a :80 inserted in the server answer that should not be there.

Concerning the thumbnails (and associated links) that do not appear immediately, I still have this problem, mainly on the albums with little or no traffic. I would like to regenerate all thumbnails, but, on my server, all sizes are already unchecked and; in this situation, I do not have any link to delete anything. Should I, on the contrary, check all sizes and delete them (is this safe for my picture base?)?

Thanks again

De : Brad Smith @.> Envoyé : mercredi 6 septembre 2023 17:55 À : Piwigo/Piwigo-Android @.> Cc : Gegele1 @.>; Comment @.> Objet : Re: [Piwigo/Piwigo-Android] No picture displayed (due to http accesses after login with https) (#184)

im not seeing any problems looks like it might be on your end, have you tried another computer? I can see the direct image is https, you might want to delete all thumbnails and have them regenerate. under Maintenance > Delete multiple size images > check off all and delete them. https://piwigo.piquot.eu/i.php?/upload/2021/12/22/20211222124102-c9dcba39-xl.jpg

also is there a way to rebuild your DNS zone file. i have found that sometimes that is a problem with subdomains.

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708657289 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWYATYTTQ5RFACIPTFHSF4TXZCMGZANCNFSM4JHSY6UA . You are receiving this because you commented. https://github.com/notifications/beacon/AWYATYW6CWVJ5N4IOYG5RVLXZCMGZA5CNFSM4JHSY6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOMXMAVCI.gif Message ID: @. @.> >

bhlevca commented 1 year ago

Hi,

There is a problem with the Android app when the server is behind a reverse HTTPS proxy like HAproxy. The iOS app is OK any browser is okay even on the Android platform.

Logically, it means that the Android app has a communication problem.

Most people don't see a problem, because they have a server not behind the reverse proxy.

I think that the developers should install such a server configuration and fix it. It has been too long and too much denial from the developers.

Cheers, Bogdan

On Wed, Sep 6, 2023 at 11:55 AM Brad Smith @.***> wrote:

im not seeing any problems looks like it might be on your end, have you tried another computer? I can see the direct image is https, you might want to delete all thumbnails and have them regenerate. under Maintenance > Delete multiple size images > check off all and delete them.

https://piwigo.piquot.eu/i.php?/upload/2021/12/22/20211222124102-c9dcba39-xl.jpg

also is there a way to rebuild your DNS zone file. i have found that sometimes that is a problem with subdomains.

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708657289, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABMRXVO4NWREILQUT6RAYLXZCMGVANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

ramack commented 1 year ago

This app here is dead. Piwigo NG is the one where some further development is ongoing... if the problem is there, you should better report it in the repository of piwigo flutter app.

calmor15014 commented 1 year ago

Hi Bogdan,

I am on this chain as having submitted the minor code change request to fix an issue. It's been so long now that I don't remember specifics! I am not a Piwigo dev, just a guy who wrote a fix for one issue relating to reverse proxy.

I haven't updated my Piwigo server in a year or two either, so I would have to check the latest server code to see if it was integrated. I believe so.

But, I can confirm I am still running HAProxy reverse proxy, and it is doing HTTPS proxy services. My Piwigo server is just set up to http (non SSL).

I just downloaded and installed the latest Android app this morning and thumbnails and full pictures are loading normally with no issues.

Life has kept me out of the computer world lately so I am probably too rusty to help you diagnose, but I can confirm Piwigo can work just fine behind HAProxy HTTPS.

Jim

On Wed, Sep 6, 2023, 14:39 Bogdan Hlevca @.***> wrote:

Hi,

There is a problem with the Android app when the server is behind a reverse HTTPS proxy like HAproxy. The iOS app is OK any browser is okay even on the Android platform.

Logically, it means that the Android app has a communication problem.

Most people don't see a problem, because they have a server not behind the reverse proxy.

I think that the developers should install such a server configuration and fix it. It has been too long and too much denial from the developers.

Cheers, Bogdan

On Wed, Sep 6, 2023 at 11:55 AM Brad Smith @.***> wrote:

im not seeing any problems looks like it might be on your end, have you tried another computer? I can see the direct image is https, you might want to delete all thumbnails and have them regenerate. under Maintenance > Delete multiple size images > check off all and delete them.

https://piwigo.piquot.eu/i.php?/upload/2021/12/22/20211222124102-c9dcba39-xl.jpg

also is there a way to rebuild your DNS zone file. i have found that sometimes that is a problem with subdomains.

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708657289>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABMRXVO4NWREILQUT6RAYLXZCMGVANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708902224, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGX7RUEAJX5DYWAFQS5OVYLXZC7N7ANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

calmor15014 commented 1 year ago

Sorry for the extra message, but it is worth noting I installed Piwigo NG from the Play Store to run this test.

On Wed, Sep 6, 2023, 15:24 James Spece @.***> wrote:

Hi Bogdan,

I am on this chain as having submitted the minor code change request to fix an issue. It's been so long now that I don't remember specifics! I am not a Piwigo dev, just a guy who wrote a fix for one issue relating to reverse proxy.

I haven't updated my Piwigo server in a year or two either, so I would have to check the latest server code to see if it was integrated. I believe so.

But, I can confirm I am still running HAProxy reverse proxy, and it is doing HTTPS proxy services. My Piwigo server is just set up to http (non SSL).

I just downloaded and installed the latest Android app this morning and thumbnails and full pictures are loading normally with no issues.

Life has kept me out of the computer world lately so I am probably too rusty to help you diagnose, but I can confirm Piwigo can work just fine behind HAProxy HTTPS.

Jim

On Wed, Sep 6, 2023, 14:39 Bogdan Hlevca @.***> wrote:

Hi,

There is a problem with the Android app when the server is behind a reverse HTTPS proxy like HAproxy. The iOS app is OK any browser is okay even on the Android platform.

Logically, it means that the Android app has a communication problem.

Most people don't see a problem, because they have a server not behind the reverse proxy.

I think that the developers should install such a server configuration and fix it. It has been too long and too much denial from the developers.

Cheers, Bogdan

On Wed, Sep 6, 2023 at 11:55 AM Brad Smith @.***> wrote:

im not seeing any problems looks like it might be on your end, have you tried another computer? I can see the direct image is https, you might want to delete all thumbnails and have them regenerate. under Maintenance > Delete multiple size images > check off all and delete them.

https://piwigo.piquot.eu/i.php?/upload/2021/12/22/20211222124102-c9dcba39-xl.jpg

also is there a way to rebuild your DNS zone file. i have found that sometimes that is a problem with subdomains.

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708657289>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABMRXVO4NWREILQUT6RAYLXZCMGVANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708902224, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGX7RUEAJX5DYWAFQS5OVYLXZC7N7ANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

bhlevca commented 1 year ago

I am talking about Piwigo NG. The old app had the same issue. I couldn't use either of them. The same problem has been ported to NG and it never worked for me. I am happy with the browser. I reported the problem many years ago and nothing has been done, being told that my setup is weird. Interestingly the Piwigo NG on iOS works flawlessly in the same environment. You draw the conclusion.

Many people didn't even know that this tread is for the old one. I spent enough time reporting, this is my last one, here or anywhere on this topic.

Bogdan

On Wed, Sep 6, 2023 at 3:21 PM Raphael Mack @.***> wrote:

This app here is dead. Piwigo NG is the one where some further development is ongoing... if the problem is there, you should better report it in the repository of piwigo flutter app.

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708958166, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABMRXXLOSUUEQRK6QIA5L3XZDENBANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

bhlevca commented 1 year ago

Hi Jim,

Thank you for your email.

It works for you because you have http and not https. Try to implement https and you'll get the error. I don't want to downgrade to HTTP.

Cheers, Bogdan

On Wed, Sep 6, 2023 at 3:25 PM calmor15014 @.***> wrote:

Hi Bogdan,

I am on this chain as having submitted the minor code change request to fix an issue. It's been so long now that I don't remember specifics! I am not a Piwigo dev, just a guy who wrote a fix for one issue relating to reverse proxy.

I haven't updated my Piwigo server in a year or two either, so I would have to check the latest server code to see if it was integrated. I believe so.

But, I can confirm I am still running HAProxy reverse proxy, and it is doing HTTPS proxy services. My Piwigo server is just set up to http (non SSL).

I just downloaded and installed the latest Android app this morning and thumbnails and full pictures are loading normally with no issues.

Life has kept me out of the computer world lately so I am probably too rusty to help you diagnose, but I can confirm Piwigo can work just fine behind HAProxy HTTPS.

Jim

On Wed, Sep 6, 2023, 14:39 Bogdan Hlevca @.***> wrote:

Hi,

There is a problem with the Android app when the server is behind a reverse HTTPS proxy like HAproxy. The iOS app is OK any browser is okay even on the Android platform.

Logically, it means that the Android app has a communication problem.

Most people don't see a problem, because they have a server not behind the reverse proxy.

I think that the developers should install such a server configuration and fix it. It has been too long and too much denial from the developers.

Cheers, Bogdan

On Wed, Sep 6, 2023 at 11:55 AM Brad Smith @.***> wrote:

im not seeing any problems looks like it might be on your end, have you tried another computer? I can see the direct image is https, you might want to delete all thumbnails and have them regenerate. under Maintenance > Delete multiple size images > check off all and delete them.

https://piwigo.piquot.eu/i.php?/upload/2021/12/22/20211222124102-c9dcba39-xl.jpg

also is there a way to rebuild your DNS zone file. i have found that sometimes that is a problem with subdomains.

— Reply to this email directly, view it on GitHub <

https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708657289>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABMRXVO4NWREILQUT6RAYLXZCMGVANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708902224>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AGX7RUEAJX5DYWAFQS5OVYLXZC7N7ANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708962021, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABMRXQJPUNC5HL62YGOBKLXZDEZFANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

calmor15014 commented 1 year ago

Hi Bogdan, I hope you are well. I read back through the the chain and remembered our discussion.

I have HAProxy doing the HTTPS. Piwigo itself just serves HTTP, HAProxy converts everything to HTTPS. I am running Piwigo NG. Requests to my server are all in HTTPS.

And that's where the Piwigo source modification I recommended and we discussed about three years ago fixed the issue.

I never upgraded the server (shame on me) so I don't know if that change was implemented, was fixed in another manner, still exists, etc.

But I can demonstrate today a HAProxy served Piwigo server which is publicly exposed as HTTPS with a valid SSL certificate from Let's Encrypt renewed via ACME (pfSense router) which works with Piwigo NG.

Good luck!

Jim

On Wed, Sep 6, 2023, 16:03 Bogdan Hlevca @.***> wrote:

Hi Jim,

Thank you for your email.

It works for you because you have http and not https. Try to implement https and you'll get the error. I don't want to downgrade to HTTP.

Cheers, Bogdan

On Wed, Sep 6, 2023 at 3:25 PM calmor15014 @.***> wrote:

Hi Bogdan,

I am on this chain as having submitted the minor code change request to fix an issue. It's been so long now that I don't remember specifics! I am not a Piwigo dev, just a guy who wrote a fix for one issue relating to reverse proxy.

I haven't updated my Piwigo server in a year or two either, so I would have to check the latest server code to see if it was integrated. I believe so.

But, I can confirm I am still running HAProxy reverse proxy, and it is doing HTTPS proxy services. My Piwigo server is just set up to http (non SSL).

I just downloaded and installed the latest Android app this morning and thumbnails and full pictures are loading normally with no issues.

Life has kept me out of the computer world lately so I am probably too rusty to help you diagnose, but I can confirm Piwigo can work just fine behind HAProxy HTTPS.

Jim

On Wed, Sep 6, 2023, 14:39 Bogdan Hlevca @.***> wrote:

Hi,

There is a problem with the Android app when the server is behind a reverse HTTPS proxy like HAproxy. The iOS app is OK any browser is okay even on the Android platform.

Logically, it means that the Android app has a communication problem.

Most people don't see a problem, because they have a server not behind the reverse proxy.

I think that the developers should install such a server configuration and fix it. It has been too long and too much denial from the developers.

Cheers, Bogdan

On Wed, Sep 6, 2023 at 11:55 AM Brad Smith @.***> wrote:

im not seeing any problems looks like it might be on your end, have you tried another computer? I can see the direct image is https, you might want to delete all thumbnails and have them regenerate. under Maintenance > Delete multiple size images > check off all and delete them.

https://piwigo.piquot.eu/i.php?/upload/2021/12/22/20211222124102-c9dcba39-xl.jpg

also is there a way to rebuild your DNS zone file. i have found that sometimes that is a problem with subdomains.

— Reply to this email directly, view it on GitHub <

https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708657289>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABMRXVO4NWREILQUT6RAYLXZCMGVANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708902224>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AGX7RUEAJX5DYWAFQS5OVYLXZC7N7ANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708962021>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABMRXQJPUNC5HL62YGOBKLXZDEZFANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709020743, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGX7RUC3ZO2QJHIMGUZF5ULXZDJITANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

bhlevca commented 1 year ago

Hi Jim,

I implemented the change then, but I kept upgrading the server. It does not work for me so that means that your changes have not been integrated.

On the other hand, the iOS app works flawlessly in the same conditions. That means that the Android app could be made to work the same way. Browsers also work perfectly. My logic tells me that the Android app has a problem that the other clients don't.

Thanks, Bogdan

On Wed, Sep 6, 2023 at 4:36 PM calmor15014 @.***> wrote:

Hi Bogdan, I hope you are well. I read back through the the chain and remembered our discussion.

I have HAProxy doing the HTTPS. Piwigo itself just serves HTTP, HAProxy converts everything to HTTPS. I am running Piwigo NG. Requests to my server are all in HTTPS.

And that's where the Piwigo source modification I recommended and we discussed about three years ago fixed the issue.

I never upgraded the server (shame on me) so I don't know if that change was implemented, was fixed in another manner, still exists, etc.

But I can demonstrate today a HAProxy served Piwigo server which is publicly exposed as HTTPS with a valid SSL certificate from Let's Encrypt renewed via ACME (pfSense router) which works with Piwigo NG.

Good luck!

Jim

On Wed, Sep 6, 2023, 16:03 Bogdan Hlevca @.***> wrote:

Hi Jim,

Thank you for your email.

It works for you because you have http and not https. Try to implement https and you'll get the error. I don't want to downgrade to HTTP.

Cheers, Bogdan

On Wed, Sep 6, 2023 at 3:25 PM calmor15014 @.***> wrote:

Hi Bogdan,

I am on this chain as having submitted the minor code change request to fix an issue. It's been so long now that I don't remember specifics! I am not a Piwigo dev, just a guy who wrote a fix for one issue relating to reverse proxy.

I haven't updated my Piwigo server in a year or two either, so I would have to check the latest server code to see if it was integrated. I believe so.

But, I can confirm I am still running HAProxy reverse proxy, and it is doing HTTPS proxy services. My Piwigo server is just set up to http (non SSL).

I just downloaded and installed the latest Android app this morning and thumbnails and full pictures are loading normally with no issues.

Life has kept me out of the computer world lately so I am probably too rusty to help you diagnose, but I can confirm Piwigo can work just fine behind HAProxy HTTPS.

Jim

On Wed, Sep 6, 2023, 14:39 Bogdan Hlevca @.***> wrote:

Hi,

There is a problem with the Android app when the server is behind a reverse HTTPS proxy like HAproxy. The iOS app is OK any browser is okay even on the Android platform.

Logically, it means that the Android app has a communication problem.

Most people don't see a problem, because they have a server not behind the reverse proxy.

I think that the developers should install such a server configuration and fix it. It has been too long and too much denial from the developers.

Cheers, Bogdan

On Wed, Sep 6, 2023 at 11:55 AM Brad Smith @.***> wrote:

im not seeing any problems looks like it might be on your end, have you tried another computer? I can see the direct image is https, you might want to delete all thumbnails and have them regenerate. under Maintenance > Delete multiple size images > check off all and delete them.

https://piwigo.piquot.eu/i.php?/upload/2021/12/22/20211222124102-c9dcba39-xl.jpg

also is there a way to rebuild your DNS zone file. i have found that sometimes that is a problem with subdomains.

— Reply to this email directly, view it on GitHub <

https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708657289>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABMRXVO4NWREILQUT6RAYLXZCMGVANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708902224>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AGX7RUEAJX5DYWAFQS5OVYLXZC7N7ANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1708962021>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABMRXQJPUNC5HL62YGOBKLXZDEZFANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709020743>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AGX7RUC3ZO2QJHIMGUZF5ULXZDJITANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709073606, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABMRXWN44WKATKP5UDXVT3XZDNGTANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

Gegele1 commented 1 year ago

Hi Jim and Bogdan,

According to what I read on other forums, it seems that the Piwigo server responds with the 80 port when sending the pictures through HAProxy, and this seems to be corrected by iPhone Piwigo Client and by the other Play Store application. It appeared when I installed the HAProxy, with no SSL on the Piwigo server in a first step, and the problem remained the same after I implemented https on my Piwigo server. If this is true, the best way to fix this system would probably to make sure that the piwigo server, when behind HAProxy, do not send the frames in the form https://piwigo.piquot.eu:80/...

thanks, Gerard

bhlevca commented 1 year ago

Hi Gerard

Your solution would be good, but alternatively, the Android app could be made to behave like the iOS one.

I think that would solve the problem immediately for everyone.

Thanks Bogdan

On Wed, Sep 6, 2023 at 6:18 PM Gegele1 @.***> wrote:

Hi Jim and Bogdan,

According to what I read on other forums, it seems that the Piwigo server responds with the 80 port when sending the pictures through HAProxy, and this seems to be corrected by iPhone Piwigo Client and by the other Play Store application. It appeared when I installed the HAProxy, with no SSL on the Piwigo server in a first step, and the problem remained the same after I implemented https on my Piwigo server. If this is true, the best way to fix this system would probably to make sure that the piwigo server, when behind HAProxy, do not send the frames in the form https://piwigo.piquot.eu:80/...

thanks, Gerard

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709199978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABMRXXG6P4AY4UKAJUV75DXZDZEDANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

calmor15014 commented 1 year ago

Yes, something is definitely broken in the backend configuration of that same file.

I upgraded to the lasted Piwigo stable edition.

Even the stock code was spamming my apache2 error.log file with issues that $_SERVER['HTTP_HOST'] was undefined (old php7.2 though).

The previous change I made did nothing. Setting $is_https = true; also did nothing. I don't know the code well enough to dig through it to find where $_SERVER is set nor how to get it to spit out errors in a usable way for debugging.

I ended up reducing that entire function to:

$url = 'https://hostname.domain.org:443'; $url .= cookie_path(); return $url;

Works in Android Piwigo NG. Error log spamming went away.

Lots of "reverse proxy" pull requests and comments on GitHub also, seems to be an issue with the backend code... I suspect the backend needs fixed first, but again I'm not a dev of either project so I don't want to throw stones.

Jim

On Wed, Sep 6, 2023, 18:56 Bogdan Hlevca @.***> wrote:

Hi Gerard

Your solution would be good, but alternatively, the Android app could be made to behave like the iOS one.

I think that would solve the problem immediately for everyone.

Thanks Bogdan

On Wed, Sep 6, 2023 at 6:18 PM Gegele1 @.***> wrote:

Hi Jim and Bogdan,

According to what I read on other forums, it seems that the Piwigo server responds with the 80 port when sending the pictures through HAProxy, and this seems to be corrected by iPhone Piwigo Client and by the other Play Store application. It appeared when I installed the HAProxy, with no SSL on the Piwigo server in a first step, and the problem remained the same after I implemented https on my Piwigo server. If this is true, the best way to fix this system would probably to make sure that the piwigo server, when behind HAProxy, do not send the frames in the form https://piwigo.piquot.eu:80/...

thanks, Gerard

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709199978>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABMRXXG6P4AY4UKAJUV75DXZDZEDANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709231569, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGX7RUDVXXLPH72V2FZWCA3XZD5TVANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

Gegele1 commented 1 year ago

Hi,

I have found that HAProxy does not seem to be completely clean in this question. As I was not 100% confident in my HAProxy configuration, made according to tutorials from the WEB, I decided to see how I could simplify it. So, I decided to declare the ACLs and Actions in the primary shared frontend (in the “default backend, access control lists and actions” section) and not in a subsidiary one, as was indicated in the tutorial. I removed all unnecessary configuration, restarted my pfsense supporting HAProxy, and … everything is now working: Piwigo NG is working fine and all the thumbnails display in the browser without needing to refresh the pages!

Of course, I cannot explain why this works, but it seems that something wrong was happening when using the subsidiary configuration of the frontend with exactly the same parameters.

If someone wants to investigate this issue, I suppose this information can help find the reason for it.

Thank for your time and recommendations,

Gérard

De : calmor15014 @.> Envoyé : jeudi 7 septembre 2023 03:56 À : Piwigo/Piwigo-Android @.> Cc : Gegele1 @.>; Comment @.> Objet : Re: [Piwigo/Piwigo-Android] No picture displayed (due to http accesses after login with https) (#184)

Yes, something is definitely broken in the backend configuration of that same file.

I upgraded to the lasted Piwigo stable edition.

Even the stock code was spamming my apache2 error.log file with issues that $_SERVER['HTTP_HOST'] was undefined (old php7.2 though).

The previous change I made did nothing. Setting $is_https = true; also did nothing. I don't know the code well enough to dig through it to find where $_SERVER is set nor how to get it to spit out errors in a usable way for debugging.

I ended up reducing that entire function to:

$url = 'https://hostname.domain.org:443'; $url .= cookie_path(); return $url;

Works in Android Piwigo NG. Error log spamming went away.

Lots of "reverse proxy" pull requests and comments on GitHub also, seems to be an issue with the backend code... I suspect the backend needs fixed first, but again I'm not a dev of either project so I don't want to throw stones.

Jim

On Wed, Sep 6, 2023, 18:56 Bogdan Hlevca @. <mailto:@.> > wrote:

Hi Gerard

Your solution would be good, but alternatively, the Android app could be made to behave like the iOS one.

I think that would solve the problem immediately for everyone.

Thanks Bogdan

On Wed, Sep 6, 2023 at 6:18 PM Gegele1 @. <mailto:@.> > wrote:

Hi Jim and Bogdan,

According to what I read on other forums, it seems that the Piwigo server responds with the 80 port when sending the pictures through HAProxy, and this seems to be corrected by iPhone Piwigo Client and by the other Play Store application. It appeared when I installed the HAProxy, with no SSL on the Piwigo server in a first step, and the problem remained the same after I implemented https on my Piwigo server. If this is true, the best way to fix this system would probably to make sure that the piwigo server, when behind HAProxy, do not send the frames in the form https://piwigo.piquot.eu:80/...

thanks, Gerard

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709199978>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABMRXXG6P4AY4UKAJUV75DXZDZEDANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @. <mailto:@.> >

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709231569, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGX7RUDVXXLPH72V2FZWCA3XZD5TVANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @. <mailto:@.> >

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709350202 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWYATYUUKZIJ2ZNXKSF6FXTXZESUXANCNFSM4JHSY6UA . You are receiving this because you commented. https://github.com/notifications/beacon/AWYATYXMSM7OJDNOCGZARIDXZESUXA5CNFSM4JHSY6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOMXRJ2OQ.gif Message ID: @. @.> >

calmor15014 commented 1 year ago

Interesting finding, Gérard. Are you passing X-FORWARDED-PROTOCOL in the frontend or backend?

I am passing that for all hosts in the frontend.

It doesn't explain why HTTP_HOST undefined errors were occurring, but I can try to dig into my HAProxy config. I'm afraid to play with that too much as others rely on the other sites I'm hosting through it so they need to keep working.

Could you send a sample of your HAProxy with server name details removed?

Jim

On Thu, Sep 7, 2023, 13:32 Gegele1 @.***> wrote:

Hi,

I have found that HAProxy does not seem to be completely clean in this question. As I was not 100% confident in my HAProxy configuration, made according to tutorials from the WEB, I decided to see how I could simplify it. So, I decided to declare the ACLs and Actions in the primary shared frontend (in the “default backend, access control lists and actions” section) and not in a subsidiary one, as was indicated in the tutorial. I removed all unnecessary configuration, restarted my pfsense supporting HAProxy, and … everything is now working: Piwigo NG is working fine and all the thumbnails display in the browser without needing to refresh the pages!

Of course, I cannot explain why this works, but it seems that something wrong was happening when using the subsidiary configuration of the frontend with exactly the same parameters.

If someone wants to investigate this issue, I suppose this information can help find the reason for it.

Thank for your time and recommendations,

Gérard

De : calmor15014 @.> Envoyé : jeudi 7 septembre 2023 03:56 À : Piwigo/Piwigo-Android @.> Cc : Gegele1 @.>; Comment @.> Objet : Re: [Piwigo/Piwigo-Android] No picture displayed (due to http accesses after login with https) (#184)

Yes, something is definitely broken in the backend configuration of that same file.

I upgraded to the lasted Piwigo stable edition.

Even the stock code was spamming my apache2 error.log file with issues that $_SERVER['HTTP_HOST'] was undefined (old php7.2 though).

The previous change I made did nothing. Setting $is_https = true; also did nothing. I don't know the code well enough to dig through it to find where $_SERVER is set nor how to get it to spit out errors in a usable way for debugging.

I ended up reducing that entire function to:

$url = 'https://hostname.domain.org:443'; $url .= cookie_path(); return $url;

Works in Android Piwigo NG. Error log spamming went away.

Lots of "reverse proxy" pull requests and comments on GitHub also, seems to be an issue with the backend code... I suspect the backend needs fixed first, but again I'm not a dev of either project so I don't want to throw stones.

Jim

On Wed, Sep 6, 2023, 18:56 Bogdan Hlevca @. <mailto:@.>

wrote:

Hi Gerard

Your solution would be good, but alternatively, the Android app could be made to behave like the iOS one.

I think that would solve the problem immediately for everyone.

Thanks Bogdan

On Wed, Sep 6, 2023 at 6:18 PM Gegele1 @. <mailto:@.> wrote:

Hi Jim and Bogdan,

According to what I read on other forums, it seems that the Piwigo server responds with the 80 port when sending the pictures through HAProxy, and this seems to be corrected by iPhone Piwigo Client and by the other Play Store application. It appeared when I installed the HAProxy, with no SSL on the Piwigo server in a first step, and the problem remained the same after I implemented https on my Piwigo server. If this is true, the best way to fix this system would probably to make sure that the piwigo server, when behind HAProxy, do not send the frames in the form https://piwigo.piquot.eu:80/...

thanks, Gerard

— Reply to this email directly, view it on GitHub <

https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709199978>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABMRXXG6P4AY4UKAJUV75DXZDZEDANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @. <mailto:@.> >

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709231569>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AGX7RUDVXXLPH72V2FZWCA3XZD5TVANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @. <mailto:@.> >

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709350202> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AWYATYUUKZIJ2ZNXKSF6FXTXZESUXANCNFSM4JHSY6UA> . You are receiving this because you commented. < https://github.com/notifications/beacon/AWYATYXMSM7OJDNOCGZARIDXZESUXA5CNFSM4JHSY6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOMXRJ2OQ.gif> Message ID: @. @.> >

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1710535572, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGX7RUEL6CKXMFVZONGYKYDXZIAJHANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

bhlevca commented 1 year ago

Gerard,

Thank you for your investigation, but your reporting would be even more useful if you posted side by side the nonworking configuration and the working one.

Don't assume that everyone has the same problems as you had even though the symptoms may be the same. Also, you mentioned the word browser. I hope that was a slip as the browser always worked on Android, only the NG app had issues.

That being said, I still think that the Android and the iOS apps should behave in the same way! The iOS app works with the current HAProxy settings, while the Android one doesn't.

Your HAProxy config files before and after may help.

Thanks Bogdan

On Thu, Sep 7, 2023 at 1:32 PM Gegele1 @.***> wrote:

Hi,

I have found that HAProxy does not seem to be completely clean in this question. As I was not 100% confident in my HAProxy configuration, made according to tutorials from the WEB, I decided to see how I could simplify it. So, I decided to declare the ACLs and Actions in the primary shared frontend (in the “default backend, access control lists and actions” section) and not in a subsidiary one, as was indicated in the tutorial. I removed all unnecessary configuration, restarted my pfsense supporting HAProxy, and … everything is now working: Piwigo NG is working fine and all the thumbnails display in the browser without needing to refresh the pages!

Of course, I cannot explain why this works, but it seems that something wrong was happening when using the subsidiary configuration of the frontend with exactly the same parameters.

If someone wants to investigate this issue, I suppose this information can help find the reason for it.

Thank for your time and recommendations,

Gérard

De : calmor15014 @.> Envoyé : jeudi 7 septembre 2023 03:56 À : Piwigo/Piwigo-Android @.> Cc : Gegele1 @.>; Comment @.> Objet : Re: [Piwigo/Piwigo-Android] No picture displayed (due to http accesses after login with https) (#184)

Yes, something is definitely broken in the backend configuration of that same file.

I upgraded to the lasted Piwigo stable edition.

Even the stock code was spamming my apache2 error.log file with issues that $_SERVER['HTTP_HOST'] was undefined (old php7.2 though).

The previous change I made did nothing. Setting $is_https = true; also did nothing. I don't know the code well enough to dig through it to find where $_SERVER is set nor how to get it to spit out errors in a usable way for debugging.

I ended up reducing that entire function to:

$url = 'https://hostname.domain.org:443'; $url .= cookie_path(); return $url;

Works in Android Piwigo NG. Error log spamming went away.

Lots of "reverse proxy" pull requests and comments on GitHub also, seems to be an issue with the backend code... I suspect the backend needs fixed first, but again I'm not a dev of either project so I don't want to throw stones.

Jim

On Wed, Sep 6, 2023, 18:56 Bogdan Hlevca @. <mailto:@.>

wrote:

Hi Gerard

Your solution would be good, but alternatively, the Android app could be made to behave like the iOS one.

I think that would solve the problem immediately for everyone.

Thanks Bogdan

On Wed, Sep 6, 2023 at 6:18 PM Gegele1 @. <mailto:@.> wrote:

Hi Jim and Bogdan,

According to what I read on other forums, it seems that the Piwigo server responds with the 80 port when sending the pictures through HAProxy, and this seems to be corrected by iPhone Piwigo Client and by the other Play Store application. It appeared when I installed the HAProxy, with no SSL on the Piwigo server in a first step, and the problem remained the same after I implemented https on my Piwigo server. If this is true, the best way to fix this system would probably to make sure that the piwigo server, when behind HAProxy, do not send the frames in the form https://piwigo.piquot.eu:80/...

thanks, Gerard

— Reply to this email directly, view it on GitHub <

https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709199978>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABMRXXG6P4AY4UKAJUV75DXZDZEDANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @. <mailto:@.> >

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709231569>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AGX7RUDVXXLPH72V2FZWCA3XZD5TVANCNFSM4JHSY6UA>

. You are receiving this because you were mentioned.Message ID: @. <mailto:@.> >

— Reply to this email directly, view it on GitHub < https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1709350202> , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AWYATYUUKZIJ2ZNXKSF6FXTXZESUXANCNFSM4JHSY6UA> . You are receiving this because you commented. < https://github.com/notifications/beacon/AWYATYXMSM7OJDNOCGZARIDXZESUXA5CNFSM4JHSY6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOMXRJ2OQ.gif> Message ID: @. @.> >

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1710535572, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABMRXSN4MY3AYUQRZOUMFTXZIAJDANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>

Gegele1 commented 1 year ago

Jim, Bogdan,

I can send you the working configuration, but I cannot usefully send the non _working, as I am using HAProxy as a pfSense package and even if I restore the configuration recorded before my cleaning operation, it is working fine with it, now. The only thing I did when cleaning was to remove the SQUID proxy and Reverse Proxy packages that I tried to use before I decided to switch to HAProxy. Squid was disabled, and mentions all services are disabled. With restoring the configuration of pfSense (including all SQUID packages) I cannot reproduce the Piwigo NG problem any more, sorry.

here is the latest working configuration (automatically generated by pfSense): 202309071800_working.txt

I also added the following lines to the vhost section of sites-available/bsd.lan-ssl.conf and to httpd.conf (did not know where should be) after installing mod_remoteip :

RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy xxx.yyy.zzz.1/24

Concerning the browser problem that I mentionned, I agree that it worked with Android in the same way as from any other environment: some thumbnails and associated links were unavailable on the first display of the page. To display all of them, I had to refresh the page. This is working fine now

I understand this is not very helpful and apologize,

thanks for your help

Gérard

bhlevca commented 1 year ago

Hi Gerard

Thank you for your effort.

I made some changed based on your config and now I get thumbnails and I can enter the folders, but pictures are not displayed. I am going to stick to my browser based link. I don't want to spend more time on this one. Everything else is working fine on my end on Android except ther Puiwigo NG. :-(

Bogdan ᐧ

On Thu, Sep 7, 2023 at 3:30 PM Gegele1 @.***> wrote:

Jim, Bogdan,

I can send you the working configuration, but I cannot usefully send the non _working, as I am using HAProxy as a pfSense package and even if I restore the configuration recorded before my cleaning operation, it is working fine with it, now. The only thing I did when cleaning was to remove the SQUID proxy and Reverse Proxy packages that I tried to use before I decided to switch to HAProxy. Squid was disabled, and mentions all services are disabled. With restoring the configuration of pfSense (including all SQUID packages) I cannot reproduce the Piwigo NG problem any more, sorry.

here is the latest working configuration (automatically generated by pfSense): 202309071800_working.txt https://github.com/Piwigo/Piwigo-Android/files/12552655/202309071800_working.txt

I also added the following lines to the vhost section of sites-available/bsd.lan-ssl.conf and to httpd.conf (did not know where should be) after installing mod_remoteip :

RemoteIPHeader X-Forwarded-For RemoteIPInternalProxy xxx.yyy.zzz.1/24

Concerning the browser problem that I mentionned, I agree that it worked with Android in the same way as from any other environment: some thumbnails and associated links were unavailable on the first display of the page. To display all of them, I had to refresh the page. This is working fine now

I understand this is not very helpful and apologize,

thanks for your help

Gérard

— Reply to this email directly, view it on GitHub https://github.com/Piwigo/Piwigo-Android/issues/184#issuecomment-1710668524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABMRXSVXQ6OV2SCA4M4HRLXZIOFHANCNFSM4JHSY6UA . You are receiving this because you were mentioned.Message ID: @.***>