47116: ALF-17965: Meta-data from bulk-import not correct
The list of folder's contents is now sorted before processing to
find "*.metadata.properties.xml" after the file itself and add the metadata correctly.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@47155 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- Changed behavior of AbstractMappingMetadataExtracter.init to allow for specified mapping property entries to override the default entries rather than be merged with them
- Added Javadoc notes to setInheritDefaultMapping and setInheritDefaultEmbedMapping indicating on the behavior
- Changed MappingMetadataExtracterTest.testPropertyMappingMerge to reflect the new expected result
- Added MappingMetadataExtracterTest.testPropertyMappingDisable to test disabling a mapping
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@47010 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- Changed AbstractMappingMetadataExtracter to implement ApplicationContextAware
- Added AbstractMappingMetadataExtracter.getRelevantGlobalProperties responsible for fetching the global properties relevant to the bean and component ('extract' or 'embed')
- Separated AbstractMappingMetadataExtracter readMappingProperties and readEmbedMappingProperties into separate methods with arguments for entry set or Properties
- Added AbstractMappingMetadataExtracter readGlobalExtractMappingProperties and readGlobalEmbedMappingProperties which get the relevant property entries from getRelevantGlobalProperties
- Changed AbstractMappingMetadataExtracter init to call readGlobalExtractMappingProperties and readGlobalEmbedMappingProperties
- Added testPropertyMappingGlobalOverride to MappingMetadataExtracterTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@47008 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- Added TransformerConfigSupported isMimetype and isMimetypeSubtypeWildcard methods which check a given string
- Added TransformerConfigSupported getMatchingMimetypes which gets all matching mime types from the mimetypeService if wildcards are present, otherwise passes the given mimetype on
- Modified TransformerConfigSupported setSupported to check for mimetypes and call getMatchingMimetypes in addition to existing support for extensions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46807 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
Add priorities to transformers
- Addition of a separate Transformers subsystem (holds configuration to allow JMX to be used to reset it on the fly)
- Moved supported, unsupported and explicit transformation configuration from spring into transformers.properties in the subsystem
- Moved all transformer limits configuration from spring and into transformers.properties with the exception of some added for thumbnails
and the rendering service - not done as this code is known to be changing.
- Added priority, errorTimes and thresholdCount to enable selection of transformers by priority.
- Removed the concept of 'Explicit' transformation and replaced with priority and unsupported.
- Added logging to aid in the creation of global properties and removal of spring configuration.
- Implementation of spring pluggable transformation selector that uses priority.
- Merging current state of code changes to allow other work in this area to take place.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46719 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- some of it build specific - possibly due to test inter-dependencies ?
- comment-out broken unit tests for now and re-open CLOUD-1348 to ensure that these get revisited and fixed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46623 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- Added TemporalSourceOptions.validateTimeString which checks the value against a regular expression validator
- Added a call to validateTimeString in the setters for offset and duration
- Added TemporalSourceOptionsTest which tests validation success and failures
- Added TemporalSourceOptionsTest to ContentMinimalContextTestSuite
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46601 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
46383: ALF-17893: CLONE - Mappings for Metadata Extractors Should be Defined in Config
- Added support for new alfresco/metadata location will preserving backwards compatibility with the old location
- Added tests for support of properties in the new location, the old location, and that on missing properties the error thrown indicates the new location
- Updated JavaDoc for new alfresco/metadata location
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46392 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
45144: Fix for ALF-16790 - upload ignores additional aspects for updateNodes
45174: Merged V4.1-BUG-FIX-2012_11_22 to V4.1-BUG-FIX
43940: ALF-15209: Add Dashlet to User or Site Dashboard not working when IE8 is operating in Compatibility Mode.
Fix check p_el.attributes["id"] to avoid errors for "IE8 compatibility mode
45175: Fix for ALF-17260 - Tags list not updated after moving/copying an high number of nodes with taggable aspect but no tags
45188: ALF-16254 ("Leave Site" behaviour for group based site membership)
45204: Fix for ALF-17335 - OnCreateNodePolicy not fired when custom type is used in the Share flash upload
45218: ALF-17248 BaseAssociationEditor.java does not return any results when the query filter consists of "firstname + lastname"
45221: Merged V4.1.3 (4.1.3) to V4.1-BUG-FIX (4.1.4) RECORD ONLY
45220: Merged: V4.1-BUG-FIX (4.1.4) to V4.1.3 (4.1.3)
44054: Fix for ALF-16337. Datalist assignee not searchable by full name.
45218: ALF-17248 BaseAssociationEditor.java does not return any results when the query filter consists of "firstname + lastname"
45245: ALF-17089 (Displaying Url Name instead of site Name in Select form)
45257: ALF-17318 Unnecessary Canned Query in .getPeople(String,...) on startup.
- Just one extra query on each run of the FeedNotifier was being made at the end.
The sequence of queries are necessary.
45336: Merged DEV to V4.1-BUG-FIX (4.1.4)
45318: ALF-14086: CLONE - Sort order of folders including hyphens ( - ) are different in folder-tree and view on folders (in Share)
Sort groups and users on the Java server side using collators.
- Deprecated a few methods not deprecated in DEV and removed one which had just been added to 4.1.4
45362: Merged V3.4-BUG-FIX (3.4.13) to V4.1-BUG-FIX <<RECORD ONLY>>
45361: Merged V3.4 (3.4.12) to V3.4-BUG-FIX (3.4.13)
45360: ALF-17431: Merged V4.1 (4.1.2) to V3.4 (3.4.12)
43622: ALF-16757: Sharepoint doesn't work correct with SSO
- Fix by Pavel
45385: Merged V4.1.3 (4.1.3) to V4.1-BUG-FIX (4.1.4)
45384: ALF-17097 60k Site Performance: Admin Console | Groups | Browse Groups (include sys groups): Results isn't appeared.
- Error in authorities comparator causing test failure of ALF 14086 in 4.1.4 only.
4.1.3 was okay as ALF 14086 now uses the change made for ALF-17097 but only in 4.1.4
45452: Corrected config check for ALF-16413 - Share asks for Basic-Auth while not needed trying to access RSS feeds (thus breaking SSO).
45467: Fix for ALF-17509 - patches the FreeMarker built-in ?js_string to correctly encode the "/" character.
45468: ALF-17492 - WebScript errors must contain useful information
- SpringSurf libs 1217 provide additional INFO log information on the HTTP method, URL+params that caused the exception.
45475: Fix for ALF-17510 - Upgrade of htmlparser from 1.6 to 2.1
45566: Fixed ALF-17530
- Refactored "successCallback" & "successScope" parameters for multipart uploads to be simply "success" (same for failure)
45574: Fixed ALF-17528
- Asserting that request is made using application/json
45662: Merged HEAD to BRANCHES/DEV/V4.1-BUG-FIX:
45660: Fixes: ALF-17539 - The server was failing to parse the date. It shouldn't have been trying to parse it at all.
45849: Merged HEAD to BRANCHES/DEV/V4.1-BUG-FIX:
45824: Fixes: ALF-13676: Event edit times are now presented using the date-format.shortTime setting & may be entered in either 24h or 12hr formats.
45876: ALF-17642: Fix broken HtmlParserContentTransformerTest after upgrade of htmlparser to 2.1
- Since the upgrade slightly changed the behaviour of the transformer, I added some explanatory comments to the test and to the transformer class.
45927: Fix for ALF-17302 DocLib sort is determined by server locale rather than browser locale
- GetChildrenCannedQuery was not using locale based collation
46014: Fix for ALF-17732 - SWF files are considered insecure content and should not be displayed directly in the browser.
46160: Fix for ALF-17759 - HTML files are stripped from metadata and style information after they are uploaded.
46186: Fix for ALF-17786 - Site dashboard page issues too many requests (Site Members dashlet issues avatar requests when it doesn't need too)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46287 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- Moved code in ImageCropOptions to CropSourceOptions
- Moved crop rendition parameters to CropSourceOptionsSerializer
- Removed notion of crop options from ImageRenderingEnding as its now handled by the source options processing of AbstractTransformationRenderingEngine and CropSourceOptionsSerializer
- Removed notion of crop options from ImageTransformationOptions as its now handled by the source options in TransformationOptions
- Changed ImageMagickContentTransformerWorker to get crop options from the TransformationOptions source options
- Added CropSourceOptions to imageRenderingEngine's sourceOptionsSerializers in rendition-services-context.xml
- Deprecated ImageCropOptions
- Removed unused imports and log declaration in TransformationOptions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46218 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
45449: ALF-13254: TransformationOptions Should Have Separate Source and Target Options
- Added SerializedTransformationOptionsAccessor interface which defines the methods used in the protected AbstractRenderingEngine.RenderContext class in a public manner
- Changed AbstractRenderingEngine.RenderContext to implement SerializedTransformationOptionsAccessor
- Added TransformationSourceOptions interface which also contains TransformationSourceOptionsSerializer interface which uses SerializedTransformationOptionsAccessor for deserialization
- Added base AbstractTransformationSourceOptions class
- Added PagedSourceOptions class which extends TransformationSourceOptions for start and end page options
- Added TemporalSourceOptions class which extends TransformationSourceOptions for time-based offset and duration options
- Changed TransformationOptions to contain TransformationSourceOptions held as a map with class as key
- Changed ImageTransformationOptions to extend copyFrom
- Changed ImageMagickContentTransformerWorker.getSourcePageRange to check for paged source options in the TransformationOptions passed in
- Added ImageMagickContentTransformerTest.testPageSourceOptions to test null, default, page 2, and invalid options
- Changed ThumbnailRenditionConvertor to iterate the transformationOptions.sourceOptionsList and use each serializer to add to the parameters
- Changed AbstractTransformationRenderingEngine to iterate a list of TransformationSourceOptionsSerializers and use each to deserialize the RenderContext parameters and construct a TransformationSourceOptions object
- Changed rendition-services-context.xml to set imageRenderingEngine's list of known sourceOptionsSerializers
- Changed ThumbnailServiceImplParameterTest to test paged and temporal options
- Added ThumbanailServiceImplTest.testCreateRenditionThumbnailFromPdfPage2 which tests grabbing the second page of a PDF
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@46062 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
45168: CLOUD-1140: Activities PostLookup : "Skipping activity post 1234567"and occasionally "Exception during update of posts" (due to InvalidNodeRefException) - see also ALF-16739
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@45974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
- Removed catch of exception and closing of output stream in TikaPoweredMetadataExtracter to allow AbstractMappingMetadataExtracter to better handle the error
- Added catch of ContentIOException during construction of error details in AbstractMappingMetadataExtracter
- Added ContentMetadataEmbedderTest to test a failing embedder
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@45949 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
45342: ALF-17215: Convert multi page PDF Document to image fails with convert.exe: Improper image header
- Changed MIMETYPE_APPLICATION_PHOTOSHOP constant in MimetypeMap to newer image/vnd.adobe.photoshop
- Added source and target mimetype parameters to AbstractImageMagickContentTransformerWorker.transformInternal and ImageMagickContentTransformerWorker.transformInternal methods
- Added ImageMagickContentTransformerWorker.isSourcePageRangeRequired method which checks source and target mimetypes
- Moved determination of source page range in ImageMagickContentTransformerWorker to its own getSourcePageRange method
- Added checks for length of resulting file as it should always exist
- Changed ImageMagickContentTransformerTest to use transformer.ImageMagick bean from Spring rather than hard coded imconvert.exe
- Added MockMimetypeService to ImageMagickContentTransformerTest which will iterate through a limited set of mimetypes during testAllConversions
- Added a second page to quick.pdf
45343: ALF-17215: Convert multi page PDF Document to image fails with convert.exe: Improper image header
- Added check for TIFF source as well which can be multi-paged
45345: ALF-17215: Convert multi page PDF Document to image fails with convert.exe: Improper image header
- Added multi-page quick.tiff file
- Added check for target type of EPS or Photoshop in isSourcePageRangeRequired
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@45364 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
44796: Fix for ALF-16413 - Share asks for Basic-Auth while not needed trying to access RSS feeds (thus breaking SSO).
- Share Feed Controller which correctly deals with SSO config for the "alfresco-feed" endpoint
Configure the "alfresco-feed" endpoint to use SSO in the same way the "alfresco" endpoint is configured for it. Share will then detect this when serving feeds and ensure the SSO auth is used ahead of Basic HTTP auth.
44820: Merged V3.4-BUG-FIX (3.4.12) to V4.1-BUG-FIX (4.1.3)
- A few extra 4.x changes were required
44818: ALF-17256 (3.4.12) Update Copyright notice to 2013
44831: ALF-17224 (All wiki pages are enumerated/built to display a single wiki page)
44841: ALF-17206 CIFS loses metadata when metadata edited from Windows 7 Explorer
44844: Incremented version revision to 4.1.4
44848: Fix for ALF-17178 SolrLuceneAnalyser.findAnalyser generating InavlidQNameExceptions wher they are easily protected.
44849: Fix for ALF-17162 Queries for content properties with a long search string causes huge amount of memory usage
44851: ALF-17224: Improvements for the wiki dashlet
44866: Merged PATCHES/V4.1.1 to V4.1-BUG-FIX
44663: ALF-17281 / MNT-231: Unable to cancel editing on certain docs in 4.1.1.10
- It's now impossible for WebDAV or anything else execpt CheckOutCheckInService to unlock a checked out node
- It's also now possible to un check out / check in broken unlocked nodes, such as those on ts.alfresco.com!
- Unit tests by Viachaslau Tikhanovich
44664: ALF-17281 / MNT-231: Unable to cancel editing on certain docs in 4.1.1.10
- File missed in previous checkin
44867: ALF-17285: Merged PATCHES/V4.0.1 to V4.1-BUG-FIX
44766: MNT-241: Severe performance issues with WebDAV / filesystem / IMAP rename operations
- FileFolderServiceImpl.rename calls moveNode to do its renaming work
- Unfortunately AbstractNodeDAOImpl.moveNode() was not optimized for the rename case and attempted to cascade-recompute ACLs on a simple folder rename
- On a large hierarchy this could result in hanging transactions and delays of several minutes whilst all the node ACLs were repointed and all the node caches were invalidate
44787: MNT-241: Fixed merge issue.
44823: MNT-241: Severe performance issues with WebDAV / filesystem / IMAP rename operations
- The last optimization revealed a caching problem
- The childByName cache was retaining stale values because node renaming wasn't incrementing the node version key
- We were previously relying on the unnecessary ACL re-evaluation on a move to 'bump' the version key and invalidate the childByName cache as a side effect
- Now we explicitly invalidate childByNameCache when necessary and also update parent association rows individually rather than in bulk, hopefully avoiding unnecessary database lock contention
44830: MNT-241: Subtlety: On rename we only update and invalidate those associations for which name uniqueness checking is enforced. Such associations have a positive CRC
44868: Merged PATCHES/V4.1.3 to V4.1-BUG-FIX (RECORD ONLY)
44845: Incremented version revision to 4.1.3
44847: Merged PATCHES/V4.1.1 to PATCHES/V4.1.3
44863: ALF-17285: Merged PATCHES/V4.0.1 to PATCHES/V4.1.3
44864: ALF-15935: Merge V4.1-BUG-FIX to V4.1.3
44029 : MNT-180 - Clone for Hotfix: Word document on Windows via CIFS becomes locked (Read Only) when network drops temporarily
44865: Merged V4.1-BUG-FIX to PATCHES/V4.1.3
44872: Merged PATCHES/V4.1.3 to V4.1-BUG-FIX
44871: Fixed merge issue
44875: Merged V4.1-BUG-FIX (4.1.2) to V3.4-BUG-FIX (3.4.12) RECORD ONLY
44815: Merged V4.1-BUG-FIX to V3.4-BUG-FIX
44776: ALF-17164: Fix failing build in case build is not run in continuous mode - move generation of version.properties out of continuous mode
44874: ALF-17283: Merged V4.1-BUG-FIX (4.1.2) to V3.4-BUG-FIX (3.4.12)
41411: Fix possible FTP data session leak if client mixes PORT and PASV commands. ALF-15126
44876: Merged DEV to V4.1-BUG-FIX
44838: ALF-14468: Unable to authorize to Facebook
Add 'www' to 'alfresco.com' urls.
44878: ALF-17208 - category.ftl does not allow to find multiple tags in Share advanced Search
44879: Fix for ALF-17150 - Edit Online action missing in Share for some mime types
44880: Fix to merge fail (rev 44866/44872)
44881: Fix for ALF-17186 - JBOSS specific: Google Docs v2 are not working
44904: Fix build
- Merry Christmas!
44906: Merged V3.4-BUG-FIX to V4.1-BUG-FIX
44882: Fix for ALF-13805 - Authenticating Share RSS feed using cookies rather than basic auth
44884: Incremented version revision to 3.4.13
44903: Merged V3.4 to V3.4-BUG-FIX
44885: Fix unit test to cope with ALF-14421 version label behaviour (major unless specified).
44905: Merged V3.4 to V3.4-BUG-FIX (RECORD ONLY)
44883: Merged V3.4-BUG-FIX to V3.4 (3.4.12)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@44910 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
44765: ALF-17164: Fix failing build in case build is not run in continuous mode
44769: ALF-17097 60k Site Performance: Admin Console | Groups | Browse Groups (include sys groups): Results isn't appeared.
- Group page now supports search and browse of large volumes of groups. Tested up to 300,000 sites (60k sites).
Previously this would not return.
- In order to support large volumes of groups it is not practical to search for all root groups.
A functional change has taken place to fix this issue.
[Browse] (which initially displayed only root groups) now uses the search value entered by the user and the same
query as [Search]. It could be argued that the browse functionality was not very practical anyway if there were
a large number of root groups as the user would have to page through all the pages one at a time to get to the
required group in order to add a new sub group. As a result of this change it is now possible to get to the
required group much faster. As the 'browse' function uses the search value and Include System Groups checkbox
(it already used the checkbox value) it made little sense to revert to the Search results when either of these
is changed. As this was taking place, this has now been changed too. The [Search] and [Browse] options both now
use the authority canned query which has been enhanced to use the sortBy field supplied by the UI.
- Uses the authority canned query for [Search] and [Browse] searches on the Groups page.
- Canned query may sort on "shortName", "displayName" or "authorityName"
- Filter on displayName uses regular expressions to support ? and * wildcards
- Canned query returns fewer (unused) columns to speed up fetch time.
- Canned query no longer joins to alf_store as none of the values were used.
44772: CIFS Gedit support - rename open files.
44776: ALF-17164: Fix failing build in case build is not run in continuous mode - move generation of version.properties out of continuous mode
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@44790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
44740: BDE-91 - added ability to enable and disable some RMI services through config.
44744: Incorrect service url used for Links RSS feed. Code tidy up.
44754: Fix performance degradation when using SSO header based authentication config:
- The SlingshotAlfrescoConnector used when configuring header based SSO for Share was not extending the RequestCachingConnector class - means it was missing out on the free caching of identical GET requests per page render
- This makes a huge difference to the number of small requests required to build pages in Share 4.0+, particularly dashboards and document details pages.
44759: ALF-17245: Merged PATCHES/V3.4.10 to V4.1-BUG-FIX
44104: Merged DEV to PATCHES/V3.4.10
43953: MNT-214 : Modification date is lost when Excel 2003 is closed
The modification date is now updated during rename operation.
44711: Merged DEV to PATCHES/V3.4.10
44699: MNT-214 : Modification date is lost when Excel 2003 is closed
A fix to save modification date in shuffle rename operation.
44760: ALF-17246: Merged V3.4-BUG-FIX to V4.1-BUG-FIX
44757: ALF-17073: Advanced search - Lucene query construction - Change between 3.4.9 and 3.4.10
- In the fix to ALF-12666 followed by ALF-14699 we somehow lost the ability to distinguish ANDs from ORs. The 'additional attributes' should be part of an OR, but we still need to AND together multiple ORs if the AND operator is specified.
44761: Merged V3.4-BUG-FIX to V4.1-BUG-FIX (RECORD ONLY)
44748: Merged PATCHES/V3.4.10 to V3.4-BUG-FIX
42311: ALF-17235: Merged PATCHES/V4.0.2 to PATCHES/V3.4.10
39939: ALF-15001: Gracefully handle stale NodeRefs in query results in DMDiscoveryServicePort
- SOLR makes this more likely to occur
44104: ALF-17236: Merged DEV to PATCHES/V3.4.10
43953: MNT-214 : Modification date is lost when Excel 2003 is closed
The modification date is now updated during rename operation.
44415: ALF-17237: Merged DEV to PATCHES/V3.4.10
MNT-211 : versionable aspect lost from .csv files edited over CIFS using Office 2003
44711: ALF-17236: Merged DEV to PATCHES/V3.4.10
44699: MNT-214 : Modification date is lost when Excel 2003 is closed
A fix to save modification date in shuffle rename operation.
44762: Merged V4.1 to V4.1-BUG-FIX
44743: ALF-17117: Created article or publication cant be viewed on WQS site
- Further corrections to locking to avoid deadlocks
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@44763 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261