Problem after iOS 12.4 update - web / app default login failed with redirect

Hello,

after updating my ipad to iOS 12.4 login via browser or normal registering the app doesn’t work any more. The QR code and “old login” ways for the app are working fine. There are no problems with older iOS devices on 12.3.1. My test environment is a default installation on docker. Any ideas?

Many Thanks!

“[solved]” … not really, but it currently works again :wink:

error

  • login loop with https on ios devices 12.4 and mac os with safari browser 12.1.2 (14607.3.9)

config to reproduce the error

  • default nc docker config
  • jwilder/nginx reverse proxy with https
  • mac os / ios current version of safari browser

“solution”
edit /lib/private/AppFramework/Http/Request.php

public function passesStrictCookieCheck(): bool {
return true;
}

public function passesLaxCookieCheck(): bool {
return true;
}

may be there is something wrong/change with cookies “coming” from current safari browser

hoping this helps!

This has helped me, too. Thanks!

Evening @MaxM2019 @ssebech .

I’m coming across login issues “A server with the specified Host name cannot be found” after updating my ios devices to 12.4.1 too.

In looking at your solution I’d appreciate a bit more clarity on what the edit looks like.

After navigating to the /lib/private/AppFramework/Http/Request.php i see the below code:

public function passesStrictCookieCheck(): bool {
	 	if(!$this->cookieCheckRequired()) {
			return true;
		}

		$cookieName = $this->getProtectedCookieName('nc_sameSiteCookiestrict');
		if($this->getCookie($cookieName) === 'true'
			&& $this->passesLaxCookieCheck()) {
			return true;
		}
		return false;
	}

…are you saying to convert my above to simply be the following:

public function passesStrictCookieCheck(): bool {
return true;
}

Then the same question for the passesLaxCookieCheck. Do i convert this:

public function passesLaxCookieCheck(): bool {
		if(!$this->cookieCheckRequired()) {
			return true;
		}

		$cookieName = $this->getProtectedCookieName('nc_sameSiteCookielax');
		if($this->getCookie($cookieName) === 'true') {
			return true;
		}
		return false;
	}

…to simply be this:

public function passesLaxCookieCheck(): bool {
return true;
}

Appreciate your time.

@dirtygoats
Yes, it is meant so.
But your issue seems different, apparently, you do not even get to the login page. Looks like problem with connection or name resolving.

you are right @ssebech what i just realized, by accident, is when i run into this issue when i’m connected to my wifi at home. if i’m just on my cell network, i connect just fine.

might you have any ideas to why my home wifi would be causing this? and what i could look into troubleshooting?

@ssebech i think i figured it out. through some additional searching i went down the oc_bruteforce_attempts table which was blocking my IP address. upon clearing that table i appear to be back to normal.

appreciate your time.