DOCS Plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

DOCS Plugin

Post by Lalbee99 »

I have installed the docs plugin and I am able to create and edit files. I have noticed when viewing the doc that anything more than a sigle space between words in the doc creates the following characters :

Run the following script: \; \; \;/usr/local/scripts/Grow_Lv_Fs.ksh

Is there a fix for this? It makes reading a doc very difficult.
Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

Post by Lalbee99 »

<BUMP!>

Do any of the developers ever look at these forums anymore?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

No. ;) I'm not sure anyone uses Docs. Jimmy wrote it a while ago, but It's more like a reference plugin. If you can find what's going on with it, please let us know. Otherwise, open a bug at http://bugs.cacti.net

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

Re: DOCS Plugin

Post by Lalbee99 »

I figured out the answer to this problem a couple of months ago. The problem was if a user added more than a single space the php sql_sanitize function would add a corresponding "\;" . which would be visible when viewing the doc.
This function appears to be used to prevent sql injection attacks. The author of this plugin did not take this "quoting mechanism" into account when retrieving and displaying previousley inserted data.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: DOCS Plugin

Post by TheWitness »

How about posting a modified plugin that corrects this?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: DOCS Plugin

Post by TheWitness »

Docs 0.4 has been released.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

Re: DOCS Plugin

Post by Lalbee99 »

To the author of the new docs update: you have fixed the problem of multiple spaces being quoted with backslashes in your base code. You do however, still have a problem where double quotes or single ticks will be quoted by a backslah when saved to the database. :( not tested enough.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: DOCS Plugin

Post by TheWitness »

It's a little tighter now.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

Re: DOCS Plugin

Post by Lalbee99 »

The version of docs I tested was 0.41 and the tar ball is still the same( in repository) as when I tested. You still have a problem. :)
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: DOCS Plugin

Post by TheWitness »

It is only in svn right now...
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

Re: DOCS Plugin

Post by Lalbee99 »

Thanks for the info, I will give it a try. :)
Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

Re: DOCS Plugin

Post by Lalbee99 »

I just pulled down the entire svn for cacti and couldn't find the docs plugin. The command I used was: svn checkout svn://svn.cacti.net/cacti
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: DOCS Plugin

Post by TheWitness »

True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

Re: DOCS Plugin

Post by Lalbee99 »

Thank you sir
Lalbee99
Cacti User
Posts: 135
Joined: Mon Mar 03, 2008 2:07 pm

Re: DOCS Plugin

Post by Lalbee99 »

It's probably me but ... When I hit that URL it only allows me to download 1 file at a time. Is there a way to do it with svn checkout to get the whole thing?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests