Skip to content

Instantly share code, notes, and snippets.

View jbq's full-sized avatar

Jean-Baptiste Quenot jbq

View GitHub Profile
@jbq
jbq / gist:a460db9b0759b791def2
Created May 13, 2015 13:50
error_log debug output for http_auth_ldap, with GOOD bind dn password
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: Username is "myself"
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: Authentication loop (phase=0, iteration=0)
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: request_timeout=10000
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: Using cached outcome -1
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: Authentication loop (phase=1, iteration=0)
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: Wants a free connection to "ldap_mycompany"
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: Search filter is "(&(&(objectClass=person)(!(objectClass=computer)))(sAMAccountName=myself))"
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: ldap_search_ext() -> msgid=2
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: Waking authentication request "GET / HTTP/1.1"
2015/05/13 15:36:51 [debug] 6613#0: *5 http_auth_ldap: Authentication loop (phase=1, iteration=1)
@jbq
jbq / gist:30cc9b6727d74dcc9c75
Created May 13, 2015 13:49
error_log debug output for http_auth_ldap, with BAD bind dn password
2015/05/13 15:35:30 [debug] 6551#0: *5 http_auth_ldap: Username is "myself"
2015/05/13 15:35:30 [debug] 6551#0: *5 http_auth_ldap: Authentication loop (phase=0, iteration=0)
2015/05/13 15:35:30 [debug] 6551#0: *5 http_auth_ldap: request_timeout=10000
2015/05/13 15:35:30 [debug] 6551#0: *5 http_auth_ldap: Using cached outcome -1
2015/05/13 15:35:30 [debug] 6551#0: *5 http_auth_ldap: Authentication loop (phase=1, iteration=0)
2015/05/13 15:35:30 [debug] 6551#0: *5 http_auth_ldap: Wants a free connection to "ldap_mycompany"
2015/05/13 15:35:30 [debug] 6551#0: *5 http_auth_ldap: No connection available at the moment, waiting...
2015/05/13 15:35:40 [error] 6551#0: *5 http_auth_ldap: Authentication timed out, client: 1.2.3.4, server: server.mycompany.fr, request: "GET / HTTP/1.1", host: "server.mycompany.net"
mysql> select * from custom_layouts order by id;
+----+---------+---------+-------------+--------------+------------------+-----------+------------------+
| id | classId | name | description | creationDate | modificationDate | userOwner | userModification |
+----+---------+---------+-------------+--------------+------------------+-----------+------------------+
| 1 | 65 | filtres | NULL | 1421840635 | 1422015822 | 6 | 0 |
| 2 | 50 | tri | | 1421938237 | 1422007644 | 6 | 0 |
| 5 | 49 | tri | | 1422001210 | 1422015795 | 13 | 0 |
| 6 | 65 | tri | | 1422015827 | 1422015843 | 13 | 0 |
| 7 | 41 | tri | | 1422015862 | 1422015873 | 13 | 0 |
| 8 | 66 | tri | | 1422015890 | 1422015897 | 13 | 0 |
@jbq
jbq / gist:f24c096bd04daf3b6662
Last active August 29, 2015 14:11
Bad response (tcpdump)
GET /admin/asset/get-image-thumbnail/id/12704/treepreview/true_dc=1418114770601 HTTP/1.1
Host: pimcore.cmlid.fr
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
Cookie: pimcore_admin_sid=qsn...
Connection: close
HTTP/1.1 200 OK
@jbq
jbq / gist:eeec3778d41d8d659a9b
Last active August 29, 2015 14:11
Working response (tcpdump)
GET /admin/asset/get-image-thumbnail/id/12704/treepreview/true_dc=1418114770601 HTTP/1.1
Host: pimcore.cmlid.fr
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
Cookie: pimcore_admin_sid=afp...
Connection: close
@jbq
jbq / gist:28f647858b9cc59acb5a
Last active August 29, 2015 14:11
Bad response
$ curl -i -b pimcore_admin_sid=qsn... http://localhost/admin/asset/get-image-thumbnail/id/12704/treepreview/true_dc=1418114770601
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Tue, 09 Dec 2014 09:17:50 GMT
Content-Type: image/pjpeg
Content-Length: 2
Connection: keep-alive
Cache-Control: public, max-age=300
Expires: Tue, 09 Dec 2014 10:22:50 +0100
Pragma:
@jbq
jbq / gist:784c2734cdadcbe71917
Last active August 29, 2015 14:11
Working response
$ curl -i -b pimcore_admin_sid=afp... http://localhost/admin/asset/get-image-thumbnail/id/12704/treepreview/true_dc=1418114770601
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Tue, 09 Dec 2014 09:16:16 GMT
Content-Type: image/pjpeg
Content-Length: 2
Connection: keep-alive
Cache-Control: public, max-age=300
Expires: Tue, 09 Dec 2014 10:21:16 +0100
Pragma:
server {
listen 80;
server_name my.server.name;
root /srv/pimcore/data;
# no limit on upload size
client_max_body_size 0;
# allow access to plugin-data and core assets ( done by excluding .*/static and static)
{
"uwsgi": {
"socket": "127.0.0.1:3030",
"php-allowed-ext": [".php"],
"plugins": ["php"],
"uid": "www-data",
"gid": "www-data"
}
}
<br />
<b>Warning</b>: usort() expects parameter 1 to be array, null given in <b>/srv/pimcore/data/pimcore/models/Object/Class/Data/ObjectsMetadata.php</b> on line <b>560</b><br />
<br />
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/srv/pimcore/data/pimcore/models/Object/Class/Data/ObjectsMetadata.php</b> on line <b>564</b><br />
<br />
<b>Warning</b>: usort() expects parameter 1 to be array, null given in <b>/srv/pimcore/data/pimcore/models/Object/Class/Data/ObjectsMetadata.php</b> on line <b>560</b><br />
<br />
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/srv/pimcore/data/pimcore/models/Object/Class/Data/ObjectsMetadata.php</b> on line <b>564</b><br />
<br />
<b>Warning</b>: usort() expects parameter 1 to be array, null given in <b>/srv/pimcore/data/pimcore/models/Object/Class/Data/ObjectsMetadata.php</b> on line <b>560</b><br />