Ignoring javascript urls rather than reporting them as broken.
Consider:
<a href="javascript: document.getElementById('platformGenreForm').submit();">Not a broken link!</a>
Links like this will still be counted, but now no attempt will be made to
verify their validity (just like mailto, ftp, etc.). Trying to validate
links like this would mean forcing the validator to embed a javascript
engine & execute arbitrary javascript code. That's not a good idea,
so the lesser evil is to punt.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6791 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
6636: Temporary hack to fix build.
6637: Better handling of binary string bufs, disable link validation when poll interval is <= 0
6638: Forgotten files for TXT to PDF transformer.
6639: Fix for AWC-1541
6641: Fix for WCM-792.
6642: A little extra PropertyValue support for createNode, too.
6643: Fix for WCM-791
6644: Closure of AR-1528: Check concurrency handling of DuplicateChildNodeNameException
6647: Fix WCM-794
6648: WCM-656
6650: Applied user supplied patch to fix AWC-1546 - Cannot mount AVM using CIFS on new alfresco installation.
6651: Index tidy ups
6654: Various minor updates for passthru authentication debugging and error handling.
6657: Fix for WCM-799 (Some items selected for submission were not present)
6659: Updated installers.
6660: Partial fix to AWC-1524
6661: Fix WCM-803
6664: Including hibernate-3.2.1.jar in $VIRTUAL_TOMCAT_HOME/server/lib/
6665: adding an automated unit test for output path patterns.
6668: Fixed to add shale-test-1.0.4.jar to Eclipse classpath (PHH oked)
6681: Fixes WCM-811 - Lookup.getIndirectionPath() had a bit of a howler in it.
6684: UncategorizedSQLException with the word 'deadlock' in the message is now cause for retrying a transaction.
6691: Fix for WCM-813 (lock not removed when expiration date set and no workflow on web project)
6696: Imporved SSO filters for SiteMinder etc + test filter
6697: Support for scheduled import
6699: Fix for the compliation target: compile-benchmarkframework
6701: Fix for 1.6 JVMs (1.5 gets by with lucky ordering)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6749 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
These are configurable in linkvalidation-service-context.xml
Also ensured the list of links per file is sorted & unique.
Here's a list of known protocols:
http://www.iana.org/assignments/uri-schemes.html
aaa aaas acap afs cap cid crid data dav dict dns dtn fax file
ftp go gopher h323 http https iax2 icap im imap info ipp iris
iris.beep iris.lwz iris.xpc iris.xpcs ldap mailserver mailto
mid modem msrp msrps mtqp mupdate news nfs nntp opaquelocktoken
pop pres prospero rtsp service shttp sip sips snmp soap.beep
soap.beeps tag tel telnet tftp thismessage tip tn3270 tv urn
vemmi wais xmlrpc.beep xmlrpc.beeps xmpp z39.50r z39.50s
For now, all these URI schemes get a free pass except http & https.
Any URI not qualified by one of these protocol/scheme designators
is presumed to be broken. It would be nice to validate ftp links
for real, but that won't happen for a while.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6189 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
(bad/untrusted certs look like broken links), pretend ftp links
aren't broken, detect old href schemas, and added low-level
feature to drop href info on startup in case we ever need a
sledgehammer. Maybe one day I'll really validate ftp links,
but not now. Also fixed startup logic that got broken earlier
(the config file wasn't getting copied in).
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6183 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
this allows an internal cache to be maintained that permits most calls to
the heavyweight getLatestSnapshotID(String store) AVM API to be skipped.
This addresses a performance problem noticed when the number of stores
is large.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6182 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
Mostly working with the webapp, but the webapp needs
to check for an null pointer to ensure that some
result is ready. Other more minor wrinkles exist,
such as capturing the number of files checked and
displaying the version validated; this may be different
from the latest snapshot if the validation gets behind
the checkins for a while.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6136 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
Added APIs to allow broken links due to deletions & new/modified files in a
workflow to be detected via sync service (differencing). Not configured
as transactions yet, nor has much testing been done, but things are starting
to shape up. Now also detecting broken IMG tags (as well as A tags).
Also, the linkvalidation service now has its own file extension excluder bean.
Eventually the old APIs will go away, but I'm leaving them in there for
now to make life simple.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5992 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
Prep for delivering LinkValidationServcice API;
Ignore the API for now (it will evolve rapidly
over the next few days). The main thing going
on here is that now the Spring wiring is basically
right for presenting things as services & controlling
transaction boundaries. It's also possible to run
this outside of the Alfresco webapp, which makes
incremental compilation/testing much easier.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5758 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261