Project

General

Profile

Actions

Bug #92094

closed

Pagetree: Non admin user can not see pagetree

Added by Ludger Müller about 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2020-08-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In a new installation of TYPO3 10.4.6 non admin user get an error message: "Page tree error". The corresponding JavaScript error in the Browser is "JSON.parse: unexpected end of data at line 1 column 1 of the JSON data"

The user has doctypes associated.
Same in another 10.4.4 installation.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #92033: "Page tree error: Got unexpected reponse" with filter - allowed memory size exhaustedClosed2020-08-17

Actions
Actions #1

Updated by Oliver Hader about 4 years ago

  • Status changed from New to Needs Feedback

Thx for your report. Do you have a chance to retrieve and post the response content of that failing request (e.g. using the network tab and the corresponding request in browser's dev tools).

I sounds like an exception being thrown here and delivered as HTML. Having the exception message and stack trace would be very interesting. Thx in advance!

Actions #2

Updated by Oliver Hader about 4 years ago

The error message sounds like shown in issue #92033 as well. Waiting for confirmation and additional feedback...

Actions #3

Updated by Oliver Hader about 4 years ago

  • Related to Bug #92033: "Page tree error: Got unexpected reponse" with filter - allowed memory size exhausted added
Actions #4

Updated by Ludger Müller about 4 years ago

Strangely I can not reproduce the error today in the 10.4.6 installation, other than yesterday. Only in a 10.4.5 installation I get the error.

The response tab in the dev-tools is empty. Only the headers tab shows information: The route is: /ajax/page/tree/fetchData Calling JS-Script is d3.js
I can not confirm relation to issue #92033. Sites occurred were practically empty test sites.
Later today I will update the 10.4.5 to 10.4.6, to check if I can reproduce the error again.

Actions #5

Updated by Ludger Müller about 4 years ago

I updated the mentioned installation 10.4.5 to 10.4.6. Page tree error still in place.
Other parameter: Browser tested: latest Firefox and Chrome;

Other 10.4.6 installation no errors. Page tree accessible.

Maybe some kind of configuration error in user rights?

Actions #6

Updated by Jan Loderhose over 3 years ago

I can confirm this issue with a freshly installed TYPO3 10.4.13 running on PHP 7.4. Sudoing or direct login as a non-admin user doesn't make a difference.

I deleted all kinds of caches (TYPO3 and browser) and user settings several times and tried different levels of compression to no avail. In der browsers dev console I can see, that the anwser is empty. Below you find the HAR of the request when the pagetree is requested. There is no answer to the request. The HAR comes from a Firefox console but it's the same with Chrome and Safari. I don't have acces to IE/Edge.

There is a workaround though but that's not feasable in live conditions. The problems is gone as soon as I use non root pages as db mount. There's also no error message when I combine db mounts of non root pages and a root page but the root page won't shop up in the page tree. In my conclusion the problem has to be related to a bug in the handling of root pages. Or maybe not, since disabling "Use as Root Page" in the root pages options doesn't solve the issue either. Editing the page by non-admin users is not restricted.

Unfortunately, my development skills don't seem to be sufficient to contribute a fix as I can't find any errors in the source code but maybe these finding guides the way to a quick fix for a page tree specialist.

I'd be really thankful, if that issue could be taken care of with top priority. I don't see why it is treated as a "Should have". This bug renders TYPO3 useless in many cases because one of TYPO3s greatest strengths is its versatile user rights management which is canceled out if admin rights are required for editing a root page which often is equivalent to a websites home page.

{
"log": {
"version": "1.2",
"creator": {
"name": "Firefox",
"version": "86.0"
},
"browser": {
"name": "Firefox",
"version": "86.0"
},
"pages": [ {
"startedDateTime": "2021-03-15T09:39:35.349+01:00",
"id": "page_1",
"title": "Some Website [TYPO3 CMS 10.4.13]",
"pageTimings": {
"onContentLoad": -18496,
"onLoad": -18457
}
}
],
"entries": [ {
"pageref": "page_1",
"startedDateTime": "2021-03-15T09:39:35.349+01:00",
"request": {
"bodySize": 0,
"method": "GET",
"url": "https://some.domain/typo3/index.php?route=%2Fajax%2Fpage%2Ftree%2FfetchData&token=8cc6e9afd9cf7ea346482ab18536d5c701c9cd02",
"httpVersion": "HTTP/2",
"headers": [ {
"name": "Host",
"value": "some.host"
}, {
"name": "User-Agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:86.0) Gecko/20100101 Firefox/86.0"
}, {
"name": "Accept",
"value": "application/json,*/*"
}, {
"name": "Accept-Language",
"value": "de-DE,de;q=0.8,en-US;q=0.5,en;q=0.3"
}, {
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
}, {
"name": "DNT",
"value": "1"
}, {
"name": "Connection",
"value": "keep-alive"
}, {
"name": "Referer",
"value": "https://some.domain/typo3/index.php?route=%2Fmain&token=d3331488fe34cec7aa3b0bd85c9fea5da47db1ac"
}, {
"name": "Cookie",
"value": "be_typo_user=1e4b93ee271e6c092ad8f8f151bc1bdf"
}, {
"name": "Sec-GPC",
"value": "1"
}, {
"name": "Pragma",
"value": "no-cache"
}, {
"name": "Cache-Control",
"value": "no-cache"
}
],
"cookies": [ {
"name": "be_typo_user",
"value": "1e4b93ee271e6c092ad8f8f151asdadbc1bdf"
}
],
"queryString": [ {
"name": "route",
"value": "/ajax/page/tree/fetchData"
}, {
"name": "token",
"value": "8cc6e9afd9cf7ea346482ab18536d5c701c9cd02"
}
],
"headersSize": 618
},
"response": {
"status": 200,
"statusText": "OK",
"httpVersion": "HTTP/2",
"headers": [ {
"name": "date",
"value": "Mon, 15 Mar 2021 08:39:35 GMT"
}, {
"name": "server",
"value": "Apache"
}, {
"name": "x-frame-options",
"value": "SAMEORIGIN"
}, {
"name": "expires",
"value": "0"
}, {
"name": "cache-control",
"value": "no-cache, must-revalidate"
}, {
"name": "pragma",
"value": "no-cache"
}, {
"name": "content-encoding",
"value": "gzip"
}, {
"name": "vary",
"value": "Accept-Encoding,User-Agent"
}, {
"name": "last-modified",
"value": "Mon, 15 Mar 2021 08:39:35 GMT"
}, {
"name": "x-ua-compatible",
"value": "IE=edge"
}, {
"name": "x-content-type-options",
"value": "nosniff"
}, {
"name": "content-type",
"value": "application/json; charset=utf-8"
}, {
"name": "X-Firefox-Spdy",
"value": "h2"
}
],
"cookies": [],
"content": {
"mimeType": "application/json; charset=utf-8",
"size": 0,
"text": ""
},
"redirectURL": "",
"headersSize": 401,
"bodySize": 421
},
"cache": {},
"timings": {
"blocked": 2,
"dns": 0,
"connect": 35,
"ssl": 27,
"send": 0,
"wait": 90,
"receive": 0
},
"time": 154,
"_securityState": "secure",
"serverIPAddress": "so.m.e.ip",
"connection": "443"
}, {
"pageref": "page_1",
"startedDateTime": "2021-03-15T09:41:02.359+01:00",
"request": {
"bodySize": 0,
"method": "GET",
"url": "https://some.domain/typo3/index.php?route=%2Fajax%2Fpage%2Ftree%2FfetchData&token=8cc6e9afd9cf7ea346482ab18536d5c701c9cd02",
"httpVersion": "HTTP/2",
"headers": [ {
"name": "Host",
"value": "some.hoste"
}, {
"name": "User-Agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:86.0) Gecko/20100101 Firefox/86.0"
}, {
"name": "Accept",
"value": "application/json,*/*"
}, {
"name": "Accept-Language",
"value": "de-DE,de;q=0.8,en-US;q=0.5,en;q=0.3"
}, {
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
}, {
"name": "DNT",
"value": "1"
}, {
"name": "Connection",
"value": "keep-alive"
}, {
"name": "Referer",
"value": "https://some.domain/typo3/index.php?route=%2Fmain&token=d3331488fe34cec7aa3b0bd85c9fea5da47db1ac"
}, {
"name": "Cookie",
"value": "be_typo_user=1e4b93ee271e6c092ad8f8f151bc1bdf"
}, {
"name": "Sec-GPC",
"value": "1"
}, {
"name": "Pragma",
"value": "no-cache"
}, {
"name": "Cache-Control",
"value": "no-cache"
}
],
"cookies": [ {
"name": "be_typo_user",
"value": "1e4b93ee271e6c092ad8f8f151bc1bdf"
}
],
"queryString": [ {
"name": "route",
"value": "/ajax/page/tree/fetchData"
}, {
"name": "token",
"value": "8cc6e9afd9cf7ea346482ab18536d5c701c9cd02"
}
],
"headersSize": 618
},
"response": {
"status": 200,
"statusText": "OK",
"httpVersion": "HTTP/2",
"headers": [ {
"name": "date",
"value": "Mon, 15 Mar 2021 08:41:02 GMT"
}, {
"name": "server",
"value": "Apache"
}, {
"name": "x-frame-options",
"value": "SAMEORIGIN"
}, {
"name": "expires",
"value": "0"
}, {
"name": "cache-control",
"value": "no-cache, must-revalidate"
}, {
"name": "pragma",
"value": "no-cache"
}, {
"name": "content-encoding",
"value": "gzip"
}, {
"name": "vary",
"value": "Accept-Encoding,User-Agent"
}, {
"name": "last-modified",
"value": "Mon, 15 Mar 2021 08:41:02 GMT"
}, {
"name": "x-ua-compatible",
"value": "IE=edge"
}, {
"name": "x-content-type-options",
"value": "nosniff"
}, {
"name": "content-type",
"value": "application/json; charset=utf-8"
}, {
"name": "X-Firefox-Spdy",
"value": "h2"
}
],
"cookies": [],
"content": {
"mimeType": "application/json; charset=utf-8",
"size": 0,
"text": ""
},
"redirectURL": "",
"headersSize": 401,
"bodySize": 421
},
"cache": {},
"timings": {
"blocked": 1,
"dns": 1,
"connect": 25,
"ssl": 28,
"send": 0,
"wait": 102,
"receive": 0
},
"time": 157,
"_securityState": "secure",
"serverIPAddress": "85.13.165.183",
"connection": "443"
}, {
"pageref": "page_1",
"startedDateTime": "2021-03-15T09:44:17.253+01:00",
"request": {
"bodySize": 0,
"method": "GET",
"url": "https://some.domain/typo3/index.php?route=%2Fajax%2Fsystem-information%2Frender&token=8de9418826584b5d85f795baee5d6b1204f68a1a&skipSessionUpdate=1",
"httpVersion": "HTTP/2",
"headers": [ {
"name": "Host",
"value": "some.hoste"
}, {
"name": "User-Agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:86.0) Gecko/20100101 Firefox/86.0"
}, {
"name": "Accept",
"value": "*/*"
}, {
"name": "Accept-Language",
"value": "de-DE,de;q=0.8,en-US;q=0.5,en;q=0.3"
}, {
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
}, {
"name": "Referer",
"value": "some.domain/typo3/index.php?route=%2Fmain&token=d3331488fe34cec7aa3b0bd85c9fea5da47db1ac"
}, {
"name": "DNT",
"value": "1"
}, {
"name": "Connection",
"value": "keep-alive"
}, {
"name": "Cookie",
"value": "be_typo_user=1e4b93ee271e6c092ad8f8f151bc1bdf"
}, {
"name": "Sec-GPC",
"value": "1"
}, {
"name": "Pragma",
"value": "no-cache"
}, {
"name": "Cache-Control",
"value": "no-cache"
}
],
"cookies": [ {
"name": "be_typo_user",
"value": "1e4b93ee271e6c092ad8f8f151bc1bdf"
}
],
"queryString": [ {
"name": "route",
"value": "/ajax/system-information/render"
}, {
"name": "token",
"value": "8de9418826584b5d85f795baee5d6b1204f68a1a"
}, {
"name": "skipSessionUpdate",
"value": "1"
}
],
"headersSize": 625
},
"response": {
"status": 200,
"statusText": "OK",
"httpVersion": "HTTP/2",
"headers": [ {
"name": "date",
"value": "Mon, 15 Mar 2021 08:44:17 GMT"
}, {
"name": "server",
"value": "Apache"
}, {
"name": "x-frame-options",
"value": "SAMEORIGIN"
}, {
"name": "expires",
"value": "0"
}, {
"name": "cache-control",
"value": "no-cache, must-revalidate"
}, {
"name": "pragma",
"value": "no-cache"
}, {
"name": "content-encoding",
"value": "gzip"
}, {
"name": "vary",
"value": "Accept-Encoding,User-Agent"
}, {
"name": "last-modified",
"value": "Mon, 15 Mar 2021 08:44:17 GMT"
}, {
"name": "x-ua-compatible",
"value": "IE=edge"
}, {
"name": "x-content-type-options",
"value": "nosniff"
}, {
"name": "content-type",
"value": "text/html; charset=utf-8"
}, {
"name": "X-Firefox-Spdy",
"value": "h2"
}
],
"cookies": [],
"content": {
"mimeType": "text/html; charset=utf-8",
"size": 0,
"text": ""
},
"redirectURL": "",
"headersSize": 394,
"bodySize": 414
},
"cache": {},
"timings": {
"blocked": 1,
"dns": 1,
"connect": 31,
"ssl": 27,
"send": 0,
"wait": 99,
"receive": 0
},
"time": 159,
"_securityState": "secure",
"serverIPAddress": "s.o.me.ip",
"connection": "443"
}
]
}
}

Actions #7

Updated by Riccardo De Contardi over 3 years ago

I am not able to reproduce it on a fresh composer TYPO3 10.4.14 installation on a MAMP environment with PHP 7.4.12

I tested with the latest versions of Firefox and Chrome (MAC);

I used a non-admin user "editor" with group "editors"; the group has the home page (the only root page) configured as DB mount...

should I test under different conditions?

Actions #8

Updated by Riccardo De Contardi about 2 years ago

  • Status changed from Needs Feedback to Closed

No feedback since a lot of time => closing this issue.

If you think that this is the wrong decision or experience the issue again, please reopen it or open a new issue with a reference to this one.

Thank you and best regards

Actions

Also available in: Atom PDF