Link Validator Plugin

This plugin checks links to see if they are valid.

Name Link Validator Plugin
Vendor CustomWare Asia Pacific (Website)
Authors David Peterson, Jason Hinch
Homepage http://www.customware.net/repository/display/AtlassianPlugins/Link+Validator+Plugin
Issue Management n/a
Categories Admin Macros
Version 1.0.0
Availability Confluence v2.3 to v2.10-m1
State Stable
Support Unsupported Plugins
License Freeware / Open Source (BSD)
Price Free
Release Docs http://www.customware.net/repository/display/AtlassianPlugins/Link+Validator+Plugin
Java API Docs n/a
Download Source http://svn.atlassian.com/svn/public/contrib/confluence/link-validator-plugin/tags/1.0.0/
Download JAR link-validator-plugin-1.0.0.jar
This plugin can be installed and updated via the Confluence Repository Client.

Description/Features

Allows testing of links to see if they are valid locations.

Usage

Basic use is quite simple:

{link-validator:url=http://www.google.com/}

You can also put the URL as the body of the macro. This is useful if the URL you want to check is being generated by a macro:

{link-validator}{url-generating-macro}{link-validator}

Examples

An example of combining the Reporting Plugin with the link validator to create a table displaying all external links for a space is here.

Version History

Version Date State License Price
Show description 1.0.0 (#2) 26 Aug 2008 Stable Freeware / Open Source (BSD) Free

Release Notes

  • Initial Release

Contributors

  • David Peterson — Developer
  • Jason Hinch — Developer

Show description 1.0-b1a (#1) 30 Apr 2007 Beta Freeware / Open Source (BSD) Free

Release Notes

  • Initial Release

Contributors

  • David Peterson — Developer

Screenshots

Labels

confluence23 confluence23 Delete
repository_current repository_current Delete
macro macro Delete
plugin plugin Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Apr 30, 2007

    Shannon Krebs says:

    If the page info tab was a plugin point this would be a great report to include ...

    If the page info tab was a plugin point this would be a great report to include on the info screen of each page.

    1. Apr 30, 2007

      David Peterson [CustomWare] says:

      Yeah, I had that thought also. I do want to add a page to do a space summary of ...

      Yeah, I had that thought also. I do want to add a page to do a space summary of external links, available from the Browse Space > Advanced page...

  2. May 01, 2007

    James Mortimer says:

    great idea. I can't get it to work on 2.3.3. 1) In preview, I get this error re...

    great idea. I can't get it to work on 2.3.3.

    1) In preview, I get this error regardless of the url I try (local or external)

    • Error formatting macro: link-validator: java.lang.NullPointerException

    2) In regular page view, I get a icon for every link, and a javascript error. (IE6)

    Line: 27
    Char: 3
    Error: Expected identifier, string or number
    Code: 0
    URL: http://site/display/test/link-validator
    

    and

    Line: 320
    Char: 1
    Error: 'LinkValidator' is undefined
    Code: 0
    URL: http://site/display/test/link-validator
    

    (where site is our site)

    other javascript and/or ajax stuff works in our browser.

  3. Jul 03, 2007

    Andy Brook says:

    I notice that each url checked is done in sequence on a page (I was using this)....

    I notice that each url checked is done in sequence on a page (I was using this).  Would it be possible to somehow link all urls for testing on the page to be pushed into a Threaded executor  so that say 10 or 20 links are verified simultaneously....

    It would also be useful to be able to optionally display the HTTP return code.... 

    1. Jul 03, 2007

      David Peterson [CustomWare] says:

      Actually, the checks are all done asynchronously, so the sequential nature of ho...

      Actually, the checks are all done asynchronously, so the sequential nature of how they are checked now is completely deliberate. Doing all of the links at once would be rather crazy (not to mention breaking HTTP protocol, which I believe dictates that a client only makes a maxiumum of 4 requests at any given time). Hypothetically, you could do it, but the code isn't there right now. Feel free to mess around with it though - it is open source

      With regards to the return code, it is actually accessible by hovering the mouse over the icon. I think I shied away from actually outputting it for purely aesthetic reasons - it would cause the output to change width unpredictably. Again, it would be fairly easy to have it displayed on the page itself.

      1. Jul 03, 2007

        Andy Brook says:

        Well, if you take that example and just watch the icons start painting one by on...

        Well, if you take that example and just watch the icons start painting one by one. ZZZzz one by one.  I'd settle for 4 'live' at a time, that would  speed it up by, well, 4!  Download accelerators tend to do this don't they? 

         Hover? works for me - mostly.  I would say that another ico could be used for 403 auth URL's though (padlock?) - as the url is valid, its just not accessible, the at first glance means SYSTEM DOWN , which it isn't of course.

        1. Jul 03, 2007

          David Peterson [CustomWare] says:

          Well, don't let me stop you. This plugin is fairly low on the priority list, so ...

          Well, don't let me stop you. This plugin is fairly low on the priority list, so if you'd like to see new features, it will probably be fastest if you can find someone to implement them directly...