-
-
Couldn't load subscription status.
- Fork 3.7k
[4.0] plg_system_debug - Add option to select storage method #22188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
why is this a new fieldset? Surely it belongs with logging? |
|
I think we should separate this from logging.
I believe that 'file' is just the first option and others will follow with
additional settings. So the tab will get some more content...
Brian Teeman <[email protected]> schrieb am Sa., 15. Sep. 2018,
03:54:
… why is this a new fieldset? Surely it belongs with logging?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#22188 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACEuuBKhUbLNKbPsEG7LPOWGtKNxcu0ks5ubMBQgaJpZM4WqMqR>
.
|
plugins/system/debug/debug.php
Outdated
| } | ||
|
|
||
| /** | ||
| * Setup the storage method where debug information will be store (or not). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to stored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
Correct.
But I think the sentence is not quite right - the "where" doesn't sound
correct. @brianteeman ?
Quy <[email protected]> schrieb am Sa., 15. Sep. 2018, 22:36:
… ***@***.**** commented on this pull request.
------------------------------
In plugins/system/debug/debug.php
<#22188 (comment)>:
> @@ -600,4 +601,26 @@ private function collectLogs(): self
return $this;
}
+
+ /**
+ * Setup the storage method where debug information will be store (or not).
Change to stored
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#22188 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACEukdee0T712o4gDBYzg8TUIMpMCZrks5ubcdEgaJpZM4WqMqR>
.
|
|
Storage only refers to logging so it should be in the logging tab |
|
It also makes no sense at all what the "storage" is referring to when it is on its own tab. It needs to be on the logging tab AND only shown when logging is actually enabled |
|
Back on my keyboard...
So, in my humble opinion, this deserves two separated tabs. On the other hand, if that doesn't make any sense to you, I would be willing, and able, to perform the required changes to get this merged so I can use my keyboard for writing code instead of comments 😉 |
|
please make the requested changes - if the other stuff is ever written then the decision can always be reviewed at that time |
|
Done . |
|
Partially reverted... |
|
I stick by my original comment |
|
This isn't a logging configuration in the sense of dealing with log files, so IMO it's right that it does not go onto the logging tab. |
|
what is it then? Maybe i have completely misunderstood it but from what I understand its purpose is to decide if log files are created |
|
It's to configure whether the temporary files for a debugged request's data is stored basically, used in conjunction with the debug bar's Open Handler feature. It basically gives you the ability to review data for previous requests. |
|
Well, when this option is fully integrated it wouldn't be "just" whether the data is stored but what backend storage is used (as hinted at earlier in this thread and in another issue). |
|
Then the word storage is definitely misleading to me although now I see exactly what it is I see it is called storage in the code http://phpdebugbar.com/docs/storage.html So if the field was called something like "storing collected data" or "collecting data storage" that would be less confusing perhaps? |
|
"Collected Data Storage" should work. |
|
Thank you very much. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve language strings
|
Mrs Hamilton did a good job |
|
OK since now we all know what we are talking about... I'd like to pollute my own PR with something a little OT.. I just tried to implement the open handler. # /components/com_content/Controller/DisplayController.php
public function xxx()
{
$debugBar = new DebugBar();
$debugBar->setStorage(new FileStorage($this->app->get('tmp_path')));
$handler = new OpenHandler($debugBar);
$handler->handle();
}and # /plugins/system/debug/debug.php:293
$debugBarRenderer
->setOpenHandlerUrl(JUri::root(true) . '/index.php?option=com_content&task=xxx&format=raw');will enable the browsing of previous requests inside the debug bar which, IMHO, is a killer feature since it will enable the average developer for the first time to examine what happens during a redirect without the requirement for a single step debugger. Now as you might have noticed the code is "hacked" into Suggestions? |
|
Add a view to com_admin. |
|
And for the front end?
A simple controller task that returns a JSON response would be enough.
Or do we need some overriding strategy here?
Michael Babker <[email protected]> schrieb am Di., 18. Sep. 2018,
10:32:
… Add a view to com_admin.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#22188 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACEuvWGLdtBcXNrlqPddXMoMKFJlZRNks5ucRIQgaJpZM4WqMqR>
.
|
I tried hard but I could not find a way to display anything from com_admin in frontend :( |
|
Not sure if we want to explore how to disable this great feature or are we good with the security enhancement that will be introduced by #22327 (which also includes the answer to my OT question here)? |
|
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/22188 |
|
Closed as stated above. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22188. |

Pull Request for Issue #22137 .
Summary of Changes
This will add an option to select a storage type for the debug plugin.
Currently only two options are supported:
Testing Instructions
Expected result
Ability to Set the storage type to 'None'
Actual result
Files are always written - this might be a security issue.
Documentation Changes Required
Yes.
Add words to description of #20380 (TBD)
close #22137