Skip to content
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

Added pathStyleAccess flag #47

Open
wants to merge 7,660 commits into
base: trunk
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
7660 commits
Select commit Hold shift + click to select a range
b877872
JCR-3788 - S3DataStore require to set endpoint for thirdparty cloud p…
chetanmeh Jun 10, 2014
d0523f1
fix svn:eol-style
reschke Jun 17, 2014
84134d3
javadoc fix ("* <p/>" -> "* <p>")
reschke Jun 17, 2014
b41d352
JCR-3789 : AccessControlUtils.clear should not retrieve applicable po…
anchela Jun 19, 2014
386047c
JCR-3790 - fix test case handling of System.currentTimeMillis
reschke Jun 19, 2014
fd8e7c5
JCR-3796
anchela Jul 11, 2014
ef4ead9
JCR-3798 prevent NPE when encountering inconsistent hierarchy during …
Jul 24, 2014
a066dce
JCR-3765: JCR Event Info should contain NodeType
mduerig Jul 29, 2014
bace291
Adjust trunk version back to 2.9-SNAPSHOT as discussed in http://mark…
jukka Jul 30, 2014
fcd43c9
JCR-3801: Improve ListenerTracker output
mduerig Aug 5, 2014
edd2a6f
typo in project description
anchela Aug 15, 2014
3817829
JCR-3802 : User Management: API for System Users (add API extensions …
anchela Aug 15, 2014
9628e4a
JCR-3797: Add path exclusion to JackrabbitEventFilter
mduerig Aug 15, 2014
0331bf9
Update release notes for Jackrabbit 2.9.0
mreutegg Aug 21, 2014
46c1843
JCR-3806: TestLocalCache fails occasionally with NPE
mreutegg Aug 21, 2014
998560b
[maven-release-plugin] prepare release jackrabbit-2.9.0
mreutegg Aug 21, 2014
63361c4
[maven-release-plugin] prepare for next development iteration
mreutegg Aug 21, 2014
0f25e1f
JCR-3804 - [jackrabbit-aws] Allow http communication to S3
Sep 1, 2014
6a281e9
JCR-3803 - Local cache contention lead to performance degradation
Sep 2, 2014
aff4f18
JCR-3805 - LocalCache doesn't build up properly in JDK 7
Sep 2, 2014
106e443
JCR-3809 don't swallow SQLException when binary streams can't be rese…
Sep 16, 2014
7711cd6
JCR-3810 try reset other types of InputStreams as well
Sep 16, 2014
b46e894
JCR-3811 Allow retrying of failed journal entry database inserts.
Sep 17, 2014
9e3500e
JCR-3811
Sep 17, 2014
025d5df
JCR-3811 detect marking of input stream to determine if stream can be…
Sep 18, 2014
e9ffb11
JCR-3812 Improvements to the GQL tools
thomasmueller Sep 25, 2014
209eec4
JCR-3814 make sure the ISM is in edit mode when cancel is called
Oct 9, 2014
9765d1f
JCR-3818 Use SimpleFSDirectory by default
Oct 14, 2014
6b5e501
JCR-3821 SecureRandom#generateSeed may take a (very) long time to ret…
Oct 15, 2014
541c66d
JCR-3815: Local Cache Purge Cause Performance Issues
Oct 17, 2014
986a497
JCR-3816: [aws-ext]S3DS not able update lastModified of record > 5GB
Oct 17, 2014
dcba564
JCR-3825: Use RepositoryFactory for first hops
mreutegg Oct 20, 2014
7400f1d
JCR-3274: jackrabbit-standalone-2.4.0.jar Populate does not work
mreutegg Oct 20, 2014
63b8d83
JCR-3825: Use RepositoryFactory for first hops
mreutegg Oct 23, 2014
4fb740c
JCR-3826: AbstractPrincipalProvider cachesize is not configurable
Oct 27, 2014
b4d01c7
JCR-3429 Make query tests (more) independent
thomasmueller Nov 4, 2014
7e85f66
minor improvement: adding @Override annotations, removing unused impo…
anchela Nov 18, 2014
8a488ac
minor improvement: adding @Override, removing unused imports and repl…
anchela Nov 19, 2014
10dc451
JCR-3830 : Allow for privilege discovery in jcr-server
anchela Nov 19, 2014
961bfb7
JCR-2113 : WIP (Contribution by Alfusainey Jallow)
anchela Nov 21, 2014
0679fd1
JCR-2113 : WIP (Contribution by Alfusainey Jallow), fixing issue intr…
anchela Nov 21, 2014
78700c7
JCR-3833 LinkedHashMap#entrySet#iterator#remove no longer calls Linke…
Dec 3, 2014
4240329
JCR-3834 add commented out unit test, skip unit test that fails on ja…
Dec 6, 2014
dd2082d
JCR-3835 add ReplacePropertyWhileOthersReadTest to list of known issues
Dec 6, 2014
eb2b64a
JCR-3833 update to latest surefire plugin in order to be able to use …
Dec 8, 2014
08f0a53
JCR-2113: JSR 283 Access Control Management
mreutegg Dec 8, 2014
f96f68c
JCR-3825: Use RepositoryFactory for first hops
mreutegg Dec 9, 2014
6ac6e6b
JCR-3840 take same-name child type definitions into account when rere…
Dec 10, 2014
5439e4a
JCR-3838: [aws-ext] Proactive & Asynchronous caching of binary when …
amit-jain Dec 11, 2014
0bc2d85
JCR-3839: [aws-ext] Regression to JCR-3734 Slow local cache built-up …
amit-jain Dec 11, 2014
ef17e9a
JCR-3840 limit the number of null child node definitions to match wit…
Dec 11, 2014
ad141a9
JCR-3840 limit the number of null child node definitions to match wit…
Dec 11, 2014
74c7a70
JCR-2113 : JSR 283 Access Control Management (patch provided by alfus…
anchela Dec 18, 2014
79a6248
JCR-3843: [jackrabbit-aws-ext] Support S3 in Franfurt Datacenter
amit-jain Dec 22, 2014
f802188
JCR-3845 : Have AuthorizableQueryManager Support Specifying Sort Igno…
anchela Jan 20, 2015
c5dd92a
JCR-3844 : JcrRemotingServlet does not log full stacktrace
anchela Jan 20, 2015
b1ed2ca
OAK-2412 : test cases
anchela Jan 22, 2015
9812191
OAK-2441 : add test-cases to jackrabbit 2.x
anchela Jan 22, 2015
28592a4
JCR-2113 : JSR 283 Access Control Management (improve privilege disco…
anchela Jan 22, 2015
a081c99
fix indention
anchela Jan 30, 2015
a09358f
JCR-3814 make sure ISM is in edit mode when calling cancel on it
Feb 2, 2015
60f44f7
JCR-2113 : JSR 283 Access Control Management (contribution by Alfusai…
anchela Feb 2, 2015
0939a30
JCR-2113 : JSR 283 Access Control Management (contribution by Alfusai…
anchela Feb 2, 2015
e6ec00b
Apache Jackrabbit 2.9.1 release notes
mreutegg Feb 3, 2015
faf74cb
Place derby.log under target
mreutegg Feb 3, 2015
8d4acae
[maven-release-plugin] prepare release 2.9.1
mreutegg Feb 3, 2015
590c54f
[maven-release-plugin] prepare for next development iteration
mreutegg Feb 3, 2015
ab281f8
JCR-3855: Make TimeSeriesAverage public
mduerig Mar 3, 2015
c254b4b
JCR-3852: [jackrabbit-aws-ext] Refactor code to open S3 service & con…
amit-jain Mar 9, 2015
6466e26
JCR-3842: [jackrabbit-aws-ext] Support encryption in S3Datastore
amit-jain Mar 9, 2015
927e131
JCR-3857: [jackrabbit-aws-ext] Correct typo in S3Constants
amit-jain Mar 11, 2015
25911a6
JCR-3859: Extend EventListenerMBean to report time series for observa…
mduerig Mar 12, 2015
f4bc53d
JCR-3856: [jackrabbit-aws-ext] Random test failures
amit-jain Mar 13, 2015
b2776d6
JCR-3858 NodeIterator.getSize(): compatibility with Jackrabbit 2.5
thomasmueller Mar 17, 2015
0d0777e
JCR-3850: RepositoryStartupServlet constructs FileStore incorrectly
mreutegg Mar 19, 2015
a76e649
JCR-3861: Update Oak dependency in webapp
mreutegg Mar 19, 2015
2e53b74
Update release notes for Jackrabbit 2.10 release
mreutegg Mar 23, 2015
f34330e
JCR-3862: [FileDataStore]: deleteRecord leaves the parent directories…
amit-jain Mar 23, 2015
7b34bbe
Updated release notes for Jackrabbit 2.10 release
amit-jain Mar 23, 2015
0dcb231
[maven-release-plugin] prepare release 2.10.0
mreutegg Mar 23, 2015
18f40c5
[maven-release-plugin] prepare for next development iteration
mreutegg Mar 23, 2015
063d7f0
JCR-3864 CachingDatastore -cache file sizes to save remote call to re…
Apr 3, 2015
a9e0051
JCR-3867 [jackrabbit-aws-ext] Handle 403(forbidden) status in checkin…
Apr 3, 2015
8607044
JCR-3868 Adapt TestCaseBase.java to test for FileDatastore
Apr 4, 2015
d14e36a
JCR-3869 CachingDataStore for SAN or NFS mounted storage
Apr 6, 2015
86d29d1
JCR-3853 : JCR2SPI: Load ac provider resource
anchela Apr 7, 2015
1f8529f
JCR-3836 : Allow to get an Authorizable of a given type
anchela Apr 10, 2015
fd1b527
JCR-3871: POI Vulnerabilities
mreutegg Apr 20, 2015
701cf39
JCR-3872: Config DTD does not declare ProtectedItemImporter elements
mreutegg Apr 21, 2015
0b316df
JCR-3878 Fix test case failure in jackrabbit-data
May 6, 2015
2ad6718
JCR-3873 CachingDataStore not safe against crashes, corrupted uploads…
May 6, 2015
745351f
JCR-3879 Remove contention in AsyncUploadCache to improve performance
May 7, 2015
77150bf
JCR-3876 POM dependency to jackrabbit-data test-jar is not test-scoped
cdamioli May 7, 2015
5c0db2c
JCR-3881 Change CachingFDS configuration properties
May 8, 2015
3903739
JCR-3883: Jackrabbit WebDAV bundle susceptible to XXE/XEE attack
mreutegg May 21, 2015
bf0b757
Prepare release notes for Jackrabbit 2.10.1
mreutegg May 21, 2015
9eef8f2
[maven-release-plugin] prepare release jackrabbit-2.10.1
mreutegg May 21, 2015
ea8e37b
[maven-release-plugin] prepare for next development iteration
mreutegg May 21, 2015
2c6e7a2
fix svn:eol-style
reschke May 21, 2015
b937f30
JCR-3884 Add handler to handle webdav based DELETE requests
tripodsan Jun 18, 2015
6cd4fce
JCR-3888 update the local revision within the batch too
Jun 23, 2015
4bc1dba
verify double check works in for multiple entries errors
Jun 24, 2015
dec8225
JCR-3886 [jackrabbit-aws-ext] Support IAM role to connect to S3 bucket
Jun 27, 2015
f6e398a
JCR-3892 Selective invalidation of MembershipCache
tripodsan Jul 18, 2015
b285afd
JCR-3226 stateCreated deadlock
thomasmueller Jul 28, 2015
c1488d8
JCR-3894 : Add PrincipalSetPolicy interface to Jackrabbit Security API
anchela Jul 28, 2015
2d22b87
JCR-3885 : Extend set of Actions in JackrabbitSession to reflect othe…
anchela Jul 29, 2015
6676660
JCR-3880 : Allow to add/remove group members by ID
anchela Aug 4, 2015
5634997
JCR-3888 - Possible dead lock in SharedItemStateManager in clustered …
davidegiannella Aug 4, 2015
ccff4b4
JCR-3896 - Release Jackrabbit 2.10.2
davidegiannella Aug 4, 2015
361b2de
[maven-release-plugin] prepare release jackrabbit-2.10.2
davidegiannella Aug 4, 2015
7046202
[maven-release-plugin] prepare for next development iteration
davidegiannella Aug 4, 2015
d76d603
JCR-3888 reapply fix: update the local revision within the same updat…
Aug 5, 2015
a88a973
fix svn:eol-style
reschke Aug 7, 2015
def7152
OAK-2231 - Searching authorizables with ' and ] in authorizable id an…
Aug 10, 2015
1c4bbab
[maven-release-plugin] prepare branch 2.10
Aug 10, 2015
ebfef3c
[maven-release-plugin] prepare release 2.10
Aug 10, 2015
c015028
JCR-3874 : XML Configuration for ProtectedItemRemoveHandler implement…
anchela Aug 11, 2015
842d690
JCR-3898 - Release Jackrabbit 2.11.0
davidegiannella Aug 12, 2015
5c14aec
JCR-3898 - Release Jackrabbit 2.11.0
davidegiannella Aug 12, 2015
c80eb5b
JCR-3898 - Release Jackrabbit 2.11.0
davidegiannella Aug 12, 2015
3f4b63c
[maven-release-plugin] prepare release 2.11.0
davidegiannella Aug 12, 2015
6d2a4f1
[maven-release-plugin] prepare for next development iteration
davidegiannella Aug 12, 2015
baffe64
fix svn:eol-style
reschke Aug 17, 2015
e7d1b67
JCR-3900: LockTest.testNodeLocked: incorrect assumption about when th…
reschke Aug 21, 2015
0f295f9
JCR-3902 find the best matching property definitions between the old …
Aug 22, 2015
3f34ac6
OAK-3324 hasPermission does not reflect actual behavior with restrict…
tripodsan Sep 1, 2015
13830f3
JCR-3870 : Export SessionImpl#getItemOrNull in JackrabbitSession
Sep 3, 2015
b386c7e
JCR-3870 : Export SessionImpl#getItemOrNull in JackrabbitSession
Sep 3, 2015
fa07cdb
OAK-3265 Test failures: NodeLocalNameTest (fixed the test case, marke…
thomasmueller Sep 10, 2015
116a635
JCR-3889 [jackrabbit-aws-ext] Can't configure proxy properties to acc…
Sep 15, 2015
0c68906
JCR-3906 Re-uploading local cache files take lot of time
Sep 15, 2015
798a53c
JCR-3907 Cache Misses statistics in LocalCache
Sep 15, 2015
f0788a3
JCR-3913 - Test failures: NodeLocalNameTest
davidegiannella Oct 2, 2015
fe9ac6a
JCR-3860: Properly expose missing values in TimeSeries implementations
mduerig Oct 2, 2015
a34f1a6
JCR-3860: Properly expose missing values in TimeSeries implementations
mduerig Oct 2, 2015
6de7519
JCR-3860: Properly expose missing values in TimeSeries implementations
mduerig Oct 2, 2015
6243e96
JCR-3913 - Test failures: NodeLocalNameTest
davidegiannella Oct 2, 2015
b08a4cd
JCR-3860: Properly expose missing values in TimeSeries implementations
mduerig Oct 2, 2015
e3a4d71
JCR-3910 - Release Jackrabbit 2.11.1
davidegiannella Oct 2, 2015
d4bb683
[maven-release-plugin] prepare release 2.11.1
davidegiannella Oct 2, 2015
7059a32
[maven-release-plugin] prepare for next development iteration
davidegiannella Oct 2, 2015
5841562
fix svn:eol-style
reschke Oct 6, 2015
8393c6d
JCR-3915: undo incorrect change to lock token test
reschke Oct 6, 2015
bdc85c9
JCR-3909: CSRF bug in Jackrabbit-Webdav
Oct 21, 2015
92f9d16
JCR-3918: Increment minor version of org.apache.jackrabbit.api
Oct 23, 2015
ada3c95
OAK-3265 Test failures: NodeLocalNameTest, NodeNameTest
thomasmueller Oct 23, 2015
03aa94a
JCR-3919 -Release Jackrabbit 2.11.2
davidegiannella Oct 26, 2015
97567ec
[maven-release-plugin] prepare release 2.11.2
davidegiannella Oct 26, 2015
4064b00
[maven-release-plugin] prepare for next development iteration
davidegiannella Oct 26, 2015
4a3dadc
JCR-3914 Support default aws region
Oct 28, 2015
6e480f8
JCR-3933 : Extend ValueHelper to check for valid conversion
anchela Nov 23, 2015
f0a04c9
JCR-3924 - Allow release-deploy to skip tests
Dec 2, 2015
160d9ec
JCR-3934 - Error occured while loading protected handler config in Jc…
chetanmeh Dec 2, 2015
6a63019
JCR-3934 - Error occured while loading protected handler config in Jc…
chetanmeh Dec 3, 2015
92034f7
JCR-3935 - Release Jackrabbit 2.11.3
davidegiannella Dec 3, 2015
e337781
[maven-release-plugin] prepare release 2.11.3
davidegiannella Dec 3, 2015
341ba63
[maven-release-plugin] prepare for next development iteration
davidegiannella Dec 3, 2015
139dfba
JCR-3937: jackrabbit-jcr-commons bundle incorrectly has google depend…
mreutegg Dec 15, 2015
f6135de
JCR-3938: Require maven 3.x for build
mreutegg Dec 15, 2015
f8d6749
JCR-2633: Modified externally exception when modifying mixinTypes wit…
Dec 21, 2015
1404d55
fix svn:eol-style
reschke Jan 8, 2016
fc2448a
JCR-3947 - Branch and release 2.12.0
davidegiannella Feb 8, 2016
81888e5
JCR-3948: LostFromCacheIssueTest failure
Feb 9, 2016
8043805
OAK-3949: fix DbClusterTestJCR3162 to restore system property SYSTEM_…
reschke Feb 9, 2016
48934fb
JCR-3948: LostFromCacheIssueTest failure
Feb 9, 2016
0bb3438
JCR-3947 - Branch and release 2.12.0
davidegiannella Feb 9, 2016
e66942f
JCR-3632: Test failed under Java 8
mreutegg Feb 16, 2016
b252e50
JCR-3950: fix XSS vulnerability in DirListingExportHandler
reschke Feb 26, 2016
c8b67bb
JCR-3958 skip entries that cannot be removed
Apr 5, 2016
bfb17f3
JCR-3961: Some tests in GetInfoTest do not save changes
mreutegg Apr 12, 2016
7aeade5
JCR-3962: NodeReorderTest waits for unexpected events
mreutegg Apr 12, 2016
036401e
JCR-3963: Reduce wait timeout for AddEventListenerTest.testNoLocalTrue()
mreutegg Apr 12, 2016
4bf8ee1
JCR-3964: Skip tests marked as known issues
mreutegg Apr 12, 2016
a5e1fae
JCR-3965 do not reset bundle cache size counter each second
Apr 12, 2016
6bc72ac
JCRSITE-49: Update and sync first hops page with examples
mreutegg Apr 19, 2016
13c3188
Ignore build directory, IDE, log files and repository home
mreutegg Apr 20, 2016
9ddda7e
JCR-3971 - Make read-permission cache-size in CompiledPermissionsImpl…
jsedding Apr 25, 2016
9ee718a
JCR-3972 - Make size of ID-cache in CachingHierarchyManager configurable
jsedding Apr 25, 2016
1705dd1
JCR-3982 Implement toString in TransactionContext (XidWrapper)
May 23, 2016
b965bdb
JCR-3983 Possibility to parallelize the Garbage Collection
May 30, 2016
a07fe82
JCR-3987: JcrUtils.getOrCreateByPath fails if session is not allowed …
reschke Jul 4, 2016
44ee649
JCR-3988 - Release Jackrabbit 2.13.0
reschke Jul 6, 2016
105ffdd
[maven-release-plugin] prepare for next development iteration
reschke Jul 6, 2016
e79a261
release attempt for 2.13.0 aborted
reschke Jul 6, 2016
9ebd171
[maven-release-plugin] prepare release jackrabbit-2.13.0
reschke Jul 6, 2016
bfb421e
[maven-release-plugin] prepare for next development iteration
reschke Jul 6, 2016
5676ea4
abort release of 2.13.0 once again
reschke Jul 6, 2016
97e72be
[maven-release-plugin] prepare release jackrabbit-2.13.0
reschke Jul 6, 2016
38609b2
[maven-release-plugin] prepare for next development iteration
reschke Jul 6, 2016
b600b41
JCR-3992: JcrUtils.getOrCreateByPath broken by JCR-3987
reschke Jul 11, 2016
dac9ac4
JCR-3993: release notes for 2.13.1
reschke Jul 11, 2016
e064dc4
[maven-release-plugin] prepare release jackrabbit-2.13.1
reschke Jul 11, 2016
6b3cd76
[maven-release-plugin] prepare for next development iteration
reschke Jul 11, 2016
393958e
JCR-3995: occasional test failure in AccessControlManagerImplTest.tes…
reschke Jul 12, 2016
a8a2cbc
JCR-3996: Incorrect producer time in ListenerTracker
mreutegg Jul 18, 2016
83d08e8
JCR-4000: More event stats in EventListenerMBean
mreutegg Jul 28, 2016
9df3892
JCR-3999 Possibility for a Deadlock in FineGrainedISMLocking in a XA …
Aug 3, 2016
e3d9ab2
JCR-4002 : CSRF in Jackrabbit-Webdav using empty content-type
Aug 12, 2016
53a9770
JCR-4002 : CSRF in Jackrabbit-Webdav using empty content-type
Aug 17, 2016
3ec27de
JCR-4004: Log exception in AbstractDataStore.getReferenceFromIdentifi…
mreutegg Aug 22, 2016
b52518c
JCR-3975: Commons-VFS Datastore implementation
mreutegg Aug 22, 2016
68dd9f8
JCR-4005: TestVFSDataStore.testDeleteRecord() fails occasionally
mreutegg Aug 22, 2016
ed6af8e
JCR-4005: TestVFSDataStore.testDeleteRecord() fails occasionally
mreutegg Aug 23, 2016
458a6c6
Update release notes for 2.13.2
mreutegg Aug 23, 2016
d0ba286
[maven-release-plugin] prepare release jackrabbit-2.13.2
mreutegg Aug 23, 2016
77a37a8
[maven-release-plugin] prepare for next development iteration
mreutegg Aug 23, 2016
e989a75
JCR-4006: TestCachingFDS.testDeleteRecord() fails occasionally
mreutegg Aug 23, 2016
283df6f
JCR-4009: back out changes for JCR-4002
reschke Aug 31, 2016
09393f9
JCR-4009: CSRF in Jackrabbit-Webdav
reschke Aug 31, 2016
f1089bd
JCR-4013: Calculate eventConsumerTimeRatio for entire time series
mreutegg Sep 5, 2016
8b5f4ec
JCR-4012: Include initial cost in stats for observation processing
mreutegg Sep 5, 2016
84b2551
JCR-3882: GlobalPattern's equals() implementation throws NullPointerE…
mreutegg Sep 6, 2016
c29e791
Update release notes for 2.13.3
mreutegg Sep 7, 2016
690db64
[maven-release-plugin] prepare release jackrabbit-2.13.3
mreutegg Sep 7, 2016
412ab80
[maven-release-plugin] prepare for next development iteration
mreutegg Sep 7, 2016
4c78a6d
Update vote e-mail template to match default tag name proposed by maven
mreutegg Sep 7, 2016
d50ade6
JCR-4015: jackrabbit-jcr-commons JcrUtils.getOrCreateByPath fails if …
reschke Sep 7, 2016
5bc7f40
JCR-4015: jackrabbit-jcr-commons JcrUtils.getOrCreateByPath fails if …
reschke Sep 8, 2016
534ef85
JCR-4019: move httpclient dependency out of parent pom
reschke Sep 8, 2016
1d78745
JCR-4008: Restore TestCachingFDS.testDeleteRecord() to fix it with di…
amit-jain Sep 9, 2016
3aaade7
JCR-4018: Consistent Async Upload Executor handling in Backend implem…
amit-jain Sep 15, 2016
96d833b
JCR-4022: populate.jsp (standalone) doesn't work due to google ajax a…
mreutegg Sep 15, 2016
ab42e02
JCR-3893: Multiple issues with standalone 2.10.1
mreutegg Sep 15, 2016
3edac2a
JCR-4025: enable animal sniffer plugin
reschke Sep 21, 2016
8dde23b
JCR-4009: fix whitespace in log messages
reschke Sep 22, 2016
ae158c4
JCR-4030: allow use of Java 7 in Jackrabbit trunk
reschke Sep 27, 2016
b3455bf
JCR-4031: AbstractLocatorFactory: typo in log message
reschke Sep 27, 2016
ebf0311
JCR-4032 : added getToString to EventListenerMBean, which returns the…
stefan-egli Sep 27, 2016
d964b6e
JCR-4032 : upped version of jackrabbit.api.jmx to 2.3.0 from 2.2.0
stefan-egli Sep 27, 2016
cc240e5
fix svn:eol-style
reschke Oct 4, 2016
3d167a9
JCR-4040: Release Jackrabbit 2.13.4 - release notes
reschke Oct 5, 2016
6269197
[maven-release-plugin] prepare release jackrabbit-2.13.4
reschke Oct 5, 2016
3d96d39
[maven-release-plugin] prepare for next development iteration
reschke Oct 5, 2016
b7627bc
tune svn:ignore to include eclipse project files
reschke Oct 5, 2016
27dbe3c
JCR-4027: proper handling of missing content type, proper parsing of …
reschke Oct 6, 2016
facc45d
JCR-4041: spi2davex: bogus content type charset parameter for applica…
reschke Oct 10, 2016
1b6ba62
JCR-4047: NodeTypeRegistryImpl - work around (correct) animal sniffer…
reschke Oct 24, 2016
3aa270e
JCR-4033: Session leak in case of an exception inside the constructor…
reschke Oct 25, 2016
a3f662e
JCR-4052: RFC4918DestinationHeaderTest fails with internal server error
reschke Nov 6, 2016
c34d8a8
JCR-4042: Adding Escape Character in GQL
catholicon Nov 8, 2016
de98417
JCR-4007: CachingDataStore - touching every time on getRecord() was u…
amit-jain Nov 15, 2016
6ca79e8
JCR-4059: avoid use of HttpClient3 URI class
reschke Nov 24, 2016
57a7ac4
JCR-4063: Minor improvements in GetSupportedQueryLanguagesTest
reschke Nov 25, 2016
17db96b
JCR-4068: jcr-commons: get rid of test dependency to json.org JSON pa…
reschke Nov 28, 2016
76cc16e
JCR-3995: disable test case
reschke Nov 28, 2016
4d12a1c
JCR-4064: Refactor WebDAV related code out of HttpClient3-specific cl…
reschke Nov 29, 2016
a145935
JCR-4064: Refactor WebDAV related code out of HttpClient3-specific cl…
reschke Nov 30, 2016
75a96e2
JCR-4064: Refactor WebDAV related code out of HttpClient3-specific cl…
reschke Nov 30, 2016
3598a93
Added pathStyleAccess flag
Dec 1, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
JCR-3812 Improvements to the GQL tools
git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1627529 13f79535-47bb-0310-9956-ffa450edef68
thomasmueller committed Sep 25, 2014
commit e9ffb119c5de8f7be726dcc8d923afd9388d9ce8
Original file line number Diff line number Diff line change
@@ -197,6 +197,11 @@ public final class GQL {
* specific).
*/
private static final String REP_EXCERPT = "rep:excerpt";

/**
* A pseudo-property for native xpath conditions.
*/
private static final String NATIVE_XPATH = "jcr:nativeXPath";

/**
* The GQL query statement.
@@ -321,6 +326,40 @@ public static RowIterator execute(String statement,
GQL query = new GQL(statement, session, commonPathPrefix, filter);
return query.execute();
}

/**
* Executes the GQL query and returns the result as a row iterator.
*
* @param jcrQuery the native JCR query.
* @param jcrQueryLanguage the JCR query language
* @param session the session that will execute the query.
* @param commonPathPrefix a common path prefix for the GQL query.
* @param filter an optional filter that may include/exclude result rows.
* @return the result.
*/
public static RowIterator executeXPath(String jcrQuery,
String jcrQueryLanguage,
Session session,
String commonPathPrefix,
Filter filter) {
GQL query = new GQL("", session, commonPathPrefix, filter);
return query.executeJcrQuery(jcrQuery, jcrQueryLanguage);
}

/**
* Translate the GQL query to XPath.
*
* @param statement the GQL query.
* @param session the session that will execute the query.
* @param commonPathPrefix a common path prefix for the GQL query.
* @return the xpath statement.
*/
public static String translateToXPath(String statement,
Session session,
String commonPathPrefix) throws RepositoryException {
GQL query = new GQL(statement, session, commonPathPrefix, null);
return query.translateStatement();
}

/**
* Parses the given <code>statement</code> and generates callbacks for each
@@ -385,10 +424,20 @@ public void term(String property, String value, boolean optional)
* @return the result.
*/
private RowIterator execute() {
String xpath;
try {
xpath = translateStatement();
} catch (RepositoryException e) {
// in case of error return empty result
return RowIteratorAdapter.EMPTY;
}
return executeJcrQuery(xpath, Query.XPATH);
}

private RowIterator executeJcrQuery(String jcrQuery, String jcrQueryLanguage) {
try {
String stmt = translateStatement();
QueryManager qm = session.getWorkspace().getQueryManager();
RowIterator nodes = qm.createQuery(stmt, Query.XPATH).execute().getRows();
RowIterator nodes = qm.createQuery(jcrQuery, jcrQueryLanguage).execute().getRows();
if (filter != null) {
nodes = new FilteredRowIterator(nodes);
}
@@ -410,7 +459,7 @@ private RowIterator execute() {
} catch (RepositoryException e) {
// in case of error return empty result
return RowIteratorAdapter.EMPTY;
}
}
}

/**
@@ -572,20 +621,22 @@ private String resolvePropertyName(String name)
}
if (propertyNames == null) {
propertyNames = new HashMap<String, String>();
NodeTypeManager ntMgr = session.getWorkspace().getNodeTypeManager();
NodeTypeIterator it = ntMgr.getAllNodeTypes();
while (it.hasNext()) {
NodeType nt = it.nextNodeType();
PropertyDefinition[] defs = nt.getDeclaredPropertyDefinitions();
for (PropertyDefinition def : defs) {
String pn = def.getName();
if (!pn.equals("*")) {
String localName = pn;
int idx = pn.indexOf(':');
if (idx != -1) {
localName = pn.substring(idx + 1);
if (session != null) {
NodeTypeManager ntMgr = session.getWorkspace().getNodeTypeManager();
NodeTypeIterator it = ntMgr.getAllNodeTypes();
while (it.hasNext()) {
NodeType nt = it.nextNodeType();
PropertyDefinition[] defs = nt.getDeclaredPropertyDefinitions();
for (PropertyDefinition def : defs) {
String pn = def.getName();
if (!pn.equals("*")) {
String localName = pn;
int idx = pn.indexOf(':');
if (idx != -1) {
localName = pn.substring(idx + 1);
}
propertyNames.put(localName, pn);
}
propertyNames.put(localName, pn);
}
}
}
@@ -923,6 +974,10 @@ private final class ContainsExpression extends PropertyExpression {

public void toString(StringBuffer buffer)
throws RepositoryException {
if (property.equals(NATIVE_XPATH)) {
buffer.append(value);
return;
}
if (prohibited) {
buffer.append("not(");
}
@@ -1046,12 +1101,18 @@ private class OrderByExpression implements Expression {

public void toString(StringBuffer buffer)
throws RepositoryException {
int start = buffer.length();
buffer.append("order by ");
List<String> names = new ArrayList<String>(Arrays.asList(Text.explode(value, ',')));
int length = buffer.length();
String comma = "";
for (String name : names) {
boolean asc;
if (name.equals("-")) {
// no order by at all
buffer.delete(start, buffer.length());
return;
}
if (name.startsWith("-")) {
name = name.substring(1);
asc = false;
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jackrabbit.commons.query;

import javax.jcr.RepositoryException;

import junit.framework.TestCase;

public class GQLTest extends TestCase {

public void testGQL() throws RepositoryException {
assertEquals(
"//*[jcr:like(fn:lower-case(fn:name()), 'test')] ",
GQL.translateToXPath(
"order:- " +
"name:test", null, "assets"));
assertEquals(
"//*[1=1] order by @jcr:score descending",
GQL.translateToXPath(
"\"jcr:nativeXPath\":\"1=1\"", null, "assets"));
assertEquals(
"//*[(jcr:contains(assets/@a, '1') and 1=1)] ",
GQL.translateToXPath(
"order:- " +
"a: 1 " +
"\"jcr:nativeXPath\":\"1=1\"", null, "assets"));

}

}