contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
85 stars 33 forks source link

200 / unerwarteter API-Status #630

Closed kikmedia closed 3 years ago

kikmedia commented 3 years ago

Mit 1.4.0 bekomme ich leider:

`}

return $ret;
}

/**
* Sets the Vary header.
*
* @param string|array $headers
* @param bool $replace Whether to replace the actual value or not (true by default)
*
* @return $this
*
* @final
*/
public function setVary($headers, bool $replace = true)
{
$this->headers->set('Vary', $headers, $replace);

return $this;
}

/**
* Determines if the Response validators (ETag, Last-Modified) match
* a conditional value specified in the Request.
*
* If the Response is not modified, it sets the status code to 304 and
* removes the actual content by calling the setNotModified() method.
*
* @return bool true if the Response validators match the Request, false otherwise
*
* @final
*/
public function isNotModified(Request $request): bool
{
if (!$request->isMethodCacheable()) {
return false;
}

$notModified = false;
$lastModified = $this->headers->get('Last-Modified');
$modifiedSince = $request->headers->get('If-Modified-Since');

if ($etags = $request->getETags()) {
$notModified = \in_array($this->getEtag(), $etags) || \in_array('*', $etags);
}

if ($modifiedSince && $lastModified) {
$notModified = strtotime($modifiedSince) >= strtotime($lastModified) && (!$etags || $notModified);
}

if ($notModified) {
$this->setNotModified();
}

return $notModified;
}

/**
* Is response invalid?
*
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
*
* @final
*/
public function isInvalid(): bool
{
return $this->statusCode < 100 || $this->statusCode >= 600;
}

/**
* Is response informative?
*
* @final
*/
public function isInformational(): bool
{
return $this->statusCode >= 100 && $this->statusCode < 200;
}

/**
* Is response successful?
*
* @final
*/
public function isSuccessful(): bool
{
return $this->statusCode >= 200 && $this->statusCode < 300;
}

/**
* Is the response a redirect?
*
* @final
*/
public function isRedirection(): bool
{
return $this->statusCode >= 300 && $this->statusCode < 400;
}

/**
* Is there a client error?
*
* @final
*/
public function isClientError(): bool
{
return $this->statusCode >= 400 && $this->statusCode < 500;
}

/**
* Was the`

... und davor noch ein paar Zeilen Binärcode, die hier nicht darstellbar sind.

Umgebung: Hosteurope, Virtual Server Managed, PHP 7.4

Any clues?

aschempp commented 3 years ago

passiert das beim Update, einer Neuinstallation, im Betrieb an welcher Stelle, …?

kikmedia commented 3 years ago

Aufruf des Managers, direkt nach dem Login.

aschempp commented 3 years ago

was passiert wenn du den Manager neu herunterlädst und installierst?

aschempp commented 3 years ago

und: ist das auf mehreren Hostings reproduzierbar?

kikmedia commented 3 years ago

a) Das passiert auf dem Hosting auch mit einem manuell upgedateten Manager 1.4 Hier die PHP Info: [xxxxxxxxxxxx] b) Auf einem HE-Webserver Basic tritt es nicht auf, selbe PHP-Version.

Im Log des Managers steht nix, vermutlich weil er vorher abstürzt. Im Serverlog habe ich ein paar Einträge AH01630: client denied by server configuration; <path>/users.json

kikmedia commented 3 years ago

Nachtrag: Runter auf PHP 7.3, selbe Maschine -> läuft durch.

Ist ein älteres Hostingprodukt, ich kann es auf den neueren nicht reproduzieren -> Produktupgrade auf HE WebServer -> läuft.

Ich schliesse das jetzt mal, denke, das es ein Einzelfall ist..