Hi Amit
Thanks for taking a stab at multi-tenancy support. I have looked at
your patch and I re-read Felix' draft spec on the wiki[0].
The code and the spec leave me with some thoughts. Sorry for the
lengthy reply, the thoughts are still pretty fresh in my mind.
The spec states that multi-tenanc
Hi Felix
On Mon, Nov 12, 2012 at 10:55 AM, Felix Meschberger wrote:
> Hi Julian
>
> Am 12.11.2012 um 10:33 schrieb Julian Sedding:
>
>> Hi Amit
>>
>> Thanks for taking a stab at multi-tenancy support. I have looked at
>> your patch and I re-read Felix'
Hi Alex
On Mon, Nov 12, 2012 at 1:07 PM, Alexander Klimetschek
wrote:
> On 12.11.2012, at 10:55, Felix Meschberger wrote:
>>> Considering that most requests to websites are "anonymous", I suggest
>>> that multi-tenancy support should only care about the resource being
>>> requested, not about th
Hello Ulrich
Just a small thing I spotted:
If you request the URI /content/mywebsite/en/products/navimage.png,
the script at /apps/mywebsite/components/contentpage/navimage.png.java
will not help you. It might help you, if you were requesting
/content/mywebsite/en/products.navimage.png (note that
Hi Ulrich
Looking at the "Recent Requests" trace you provided, I would suspect
that your topnav.jsp has an include on itself. This results in endless
recursion, which is evident by the error you get. I would expect the
error message to be a RecursionTooDeepException, indicating that the
nesting of
AM, Ulrich Schmidt
wrote:
> Oh sh.. - I should have thought of this myself. Thank you, that was it.
>
> But there is still the question left about behaviour of the ResourceResolver.
> I
> think I should understand who is implementing this interface - Sling? CQ5?
>
> brgds,
> Ul
Hi Lukas
While the Jobs are automatically queued, these queues are persistent.
As I understand you are looking into batching several small writes
into one big write. Thus I don't think a job queue will help you, as
jobs are persisted, I assume using rather small writes.
Depending on what your aud
Hi Alessandro
Take a look at SLING-1778 for how an approach using ResourceProviders
could look like.
Regards
Julian
https://issues.apache.org/jira/browse/SLING-1778
On Sat, Nov 2, 2013 at 4:38 PM, Alessandro Bologna
wrote:
> Thanks Alex for the suggestion. No, creating a custom resource provid
The approach mentioned by Carsten has two drawbacks:
* it changes the selectors seen by any scripts included further down
the include stack (IIRC this was the reason why was
introduced in the first place)
* resourceResolution has to be done again, even though we know we want
to render the same res
Yes, I would be in favour of deprecating . It never felt
very "slingish". If we can also get rid of , I believe we
could even simplify the ServletResolver and remove the methods that
were presumably added to support these tags.
One option could be to extend the tag in the following fashion:
* dep
- so if I see
> it correctly the only problem is that it changes the set of visible
> selectors. So if we allow a way to deal with that with the include tag, we
> have a single tag and people have not to wonder which tag to use when.
>
> Carsten
>
>
> 2014-08-22 12:51 GMT+02
Hi Jason
You should be able to create a "txt.jsp" file and call your resource
with the "txt" extension. I.e. /content/foo.txt. This is assuming that
your resource is "/content/foo" and not "/content/foo.html".
Implementing a servlet is (largely) equivalent to implementing a JSP.
So choose whichev
Hi Bruce
You could try authenticating your WebDAV connection with the admin
credentials. If that works, it's likely to be an issue with the setup of
your JCR permissions. You may well be connecting as anonymous currently and
therefore be denied writes (I'm not familiar with the vanilla Sling
permi
gentlib:jdwp=transport=dt_socket,address=30303,server=y,suspend=n -jar
> /opt/sling/sling/org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar -c
> /var/lib/sling -p 8090 -a 0.0.0.0
>
> -Bruce
>
> From: Julian Sedding mailto:jsedd...@gmail.com>>
> Reply-To: "users
The class org.apache.sling.installer.provider.jcr.impl.JcrInstaller is
by default configured to only take folders into account that are
called "install". In CQ/AEM folders may be called "install" or
"config".
Regards
Julian
On Mon, Feb 2, 2015 at 1:54 PM, Bertrand Delacretaz
wrote:
> Hi,
>
> On
Hi Robert
You could always do the following:
Regards
Julian
On Wed, Feb 4, 2015 at 12:47 PM, Robert Munteanu wrote:
> Hi,
>
> I have a ResourceResolver.getResource call which I would like to replace
> with a .
>
> What I currently have
>
> Resource configResource =
> resolve
Hi Duy
You may want to implement a ResourceProvider. It allows you to hook an
arbitrary resource subtree into Sling's resource tree backed by your
won logic. For the read-only case that's not even very complicated.
Bertrand created a PlanetResourceProvider example some time ago[0].
That may be he
Documentation for JSON import via the SLing POST Servlet is available
here:
http://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html#importing-content-structures
Regards
Julian
On Thu, Jul 23, 2015 at 2:35 PM, Jason Bailey wrote:
> The occasiona
Hi Nate
You can look in the webconsole at /system/console/status-Services and
use your browser search to find the string "pipeline.type". That will
point you to all kind of implementations. To fully understand what
each does, you may need to dive into the source.
Regards
Julian
On Tue, Jul 28, 2
Maybe this is abit far fetched. I get the impression that we are (need to
be) moving from a "per artifact" towards a "deployment" paradigm.
Approaches pioneered by crankstart and the provisioning model may become
desirable (as an option) for the installer.
By specifying the desired deployment st
other contains the client's customizations.
So yes, the challenge is to define an intuitive way of letting the old
and new worlds coexist in harmony.
Regards
Julian
On Tue, Sep 22, 2015 at 8:51 AM, Bertrand Delacretaz
wrote:
> On Tue, Sep 22, 2015 at 8:36 AM, Julian Sedding wrote:
ood
> plans on what / how to do it. We just need to implement them :)
:)
Regards
Julian
On Tue, Sep 22, 2015 at 9:36 AM, Carsten Ziegeler wrote:
> Am 22.09.15 um 08:36 schrieb Julian Sedding:
>> Maybe this is abit far fetched. I get the impression that we are (need to
>> b
Have you inspected your HTTP traffic, specifically the POST request
that your client sends? Your client might be sending the image/x-png
as a Content-Type header. Not 100% sure that the SlingPostServlet
takes that into account, but I think it does.
Regards
Julian
On Fri, Oct 9, 2015 at 9:38 PM, R
Hi Roy
This relates more to Jackrabbit Oak then to Sling, so you might get
better assistance there.
The Lucene-Index implementation in Oak copies the index data from the
repository to the local file system as an I/O optimization. Therefore
the files on the file system are redundant.
You can try
dexing the
> error messages disappear.
>
> Shall I put this on the mailing list for Jackrabbit oak?
>
> Thanks!
> Roy
>
>> On 06 Jan 2016, at 12:47, Julian Sedding wrote:
>>
>> Hi Roy
>>
>> This relates more to Jackrabbit Oak then to Sling, so yo
I missed the last two messages. The issue mentioned is fixed in 1.0.23
(you are running 10.0.22). Since Chetan fixed it he may know much
better than I do if you may be observing the same issue ;)
Regards
Julian
On Wed, Jan 6, 2016 at 1:15 PM, Julian Sedding wrote:
> Hi Roy
>
> The
Hello Guillaume
Maybe you cannot render the resource, because the "anonymous" user
does not have read permissions? If you want to have a resource based
login page, you need to allow "anonymous" read access.
Hope this help!
Regards
Julian
On Wed, Jan 13, 2016 at 4:15 PM, Guillaume Lucazeau wrot
Hello Roy
XPath queries allow ordering by a property:
/jcr:root/A//element(*, nt:unstructured) [
jcr:contains(property, ‘value’)
] order by @otherProperty descending
If you want the child order, you should iterate over the child node
using the API:
NodeIterator children = session.getNode
Hi Ben
In such cases it is advisable to pass in the ResourceResolver from the
place where you need the Resource objects (or objects backed by live
Resources). Otherwise you cannot close the ResourceResolver OR your
objects are dead.
> Is it a good pattern to have a method in each service that I c
Hi Roy
>From you question ("hard to put an index to it") I assume that you are
running on an Oak repository. If that is incorrect, my answer does not
apply.
Oak will always consider traversal as an alternative to existing
indexes. For most queries the cost of traversal is so high that an
index is
mance
> to choose either for manually traverse myself or doing a query when looking
> to see if a specific property name exists on the page,
> because behind the scene it will most likely traverse itself then anyway,
> right?
>
> Thanks!
> Roy
>> On 20 Jun 2016,
It's a SHA-256 hash since the changes for FELIX-4299 were committed[0].
Regards
Julian
[0]
https://github.com/apache/felix/commit/22e313eadf4dc323a1ed364f20f3fb4dfc1f6791
On Tue, Oct 4, 2016 at 5:54 PM, Rob Ryan wrote:
> Does the webconsole authentication store the password hashed or plaintext
Not sure why this worked in JR2 (and whether that was a bug or a feature).
IMO you need to test for /jcr:root//*[fn:name() = 'test'] (or if there
are no other conditions simply /jcr:root//test).
Regards
Julian
On Mon, Oct 10, 2016 at 1:14 PM, Roy Teeuwen wrote:
> Hey all,
>
> I’m not really g
they gave me a workable solution in the oak-dev channel, although it
> should still work in the old way according to xpath :)
>
> The solution they provided: something like
> /jcr:root/content/site//element(*,cq:PageContent)[parsys/some-component/@jcr:primaryType]
>
> Greetings,
>
ontent (that
> contains a parsys with some-component on)
>
> Greets,
> Roy
>> On 11 Oct 2016, at 14:54, Julian Sedding wrote:
>>
>> Hi Roy
>>
>> I see, thanks for the pointer. I didn't know that was allowed in XPath.
>>
>> Glad you got a solution.
Hi Mike
> I can load the /system/console, but not the .explorer.html app. If I
> set customBlobStore=B"false" it works correctly again.
Are you referring to
(a) configuration being changed in a running system?
(b) configuration changed in previously initialised system and a
subsequent restart?
The "Superimposing Resource Provider"[0] was created for this (or a
similar) use-case. YMMV.
Regards
Julian
[0] https://github.com/apache/sling/tree/trunk/contrib/extensions/superimposing
On Thu, Oct 20, 2016 at 2:59 PM, Bertrand Delacretaz
wrote:
> Hi,
>
> On Thu, Oct 20, 2016 at 2:28 PM, Cars
Hi John
I think you might have more luck with this question on the jackrabbit
users list. Sling uses Jackrabbit Oak under the hood, but the real
expertise is over there.
Regards
Julian
On Tue, Nov 8, 2016 at 8:08 PM, John Logan wrote:
> Hi,
>
> Is there anyone who can provide guidance on a cold
Why are you running the war file on Tomcat? It's not wrong of course.
However, I believe that most users use the standalone jar and
therefore help may be more readily available for that setup.
Regards
Julian
On Wed, Jan 11, 2017 at 4:19 AM, lancedolan wrote:
> I cannot change run mode using the
Hi Guillaume
AFAIK Jackrabbit FileVault uses a similar approach. I'm not super
familiar with the code, but you may find interesting details if you
look at the classes JackrabbitACLImporter[0] and/or
JcrACLManagement[1].
The order of ACEs is significant. IIRC later entries "override"
earlier ones
Congratulations Robert!
Regards
Julian
On Thu, Nov 16, 2017 at 5:29 PM, Roy Teeuwen wrote:
> Congratulations Robert!
>
> Greets,
> Roy
>
>> On 16 Nov 2017, at 15:25, Carsten Ziegeler wrote:
>>
>> Hi,
>>
>> it's my pleasure to announce that Robert took up the role as our new PMC
>> chair.
>>
>>
Hi Jörg
I would argue that a new ResourceResolver for each "onEvent" call
would be advisable. Not only to avoid the problem you observe, but
also to avoid the risk of the session being used concurrently from
multiple threads. Not sure if JCR event hanlders may be called
concurrently though.
The a
Hi Nicolas
I'm working on an AEM project where we used CACs for various features.
Given our experience, I assume we used them incorrectly. We will
refactor the code and migrate existing content in the near future.
Points to consider (mostly AEM specific):
- CACs can be problematic with MSM
- CACs
Hi Stepan
This question is better suited for the Jackrabbit Oak list.
But here's my take anyways:
I am pretty sure that option 2 is not possible, because Segment Tar
assumes that the files are private to a single VM instance.
If I understand you correctly, in option 3 you are considering to use
Hi Christian
I can see two options. However, both require deploying a custom bundle.
1. The JCR Content Loader has support for installing *.cnd files[0].
I.e. a (very slim) bundle could be installed to register a namespace
declared in a cnd file.
2. Deploy a custom bundle with a servlet that allo
Hi Marc
>From your log, I suspect that the "sling" and "slingevent" Namespaces
are (not yet?) registered when the repository is being initialized.
During repository initialization all installed OSGi bundles are
inspected in order to see whether they contribute namespaces or
node-type definitions (
Hi Roy
Do your Site objects reference a resource resolver instance, e.g. via
a resource? If they do then it's likely the warning comes from this RR
being used concurrently.
Other than that (bar closing the RRs in the thread), I can't see
anything obviously wrong with your last code snippet.
Rega
Hi Liam
Based on the fact that the @Self injection should provide a Resource
object, I assume your model is adaptable from a Resource (it would
help to provide the class including its @Model annotation).
The way this feature is implemented, I assume that it does not work
for adapting Resource ob
Hi Roy
Like others said before, ISO9075 is what you need. You only need to
encode the first digit. The encoding is simple enough to remember (if
used regularly ;) ):
0: _x0030_
1: _x0031_
2: _x0032_
...
Your query would thus become:
/jcr:root/content/launches/_x0032_019/_x0030_8/_x0032_9/my-laun
Hi John
XML namespace names are usually URIs, supposedly to avoid collisions.
However, they are not required to be a URI nor are they required to
point to an actual document. The Wikipedia article on XML namespaces
has more detail:
https://en.wikipedia.org/wiki/XML_namespace#Namespace_names
The l
Hi Andy
I have not done this before, I'm just trying to extrapolate from
looking at the code.
In your above config, I think the following config
"org.apache.jackrabbit.oak.segment.SegmentNodeStoreService~global"
should be "org.apache.jackrabbit.oak.segment.SegmentNodeStoreFactory~global".
Looking
Hi
I noticed that you set jcr:primaryType=mix:language. It should be
jcr:mixinTypes.
Also no need to set the jcr:primaryType=nt:file, it should be set
automatically. Setting it again explicitly might actually cause issues.
So just try posting
./jcr:mixinTypes=mix:language
./jcr:language=en
If
uests like
>
>
> GET http://localhost:8123/libs/languages HTTP/1.1// Also tried
> http://localhost:8123/libs/languages/* and a few others
> Content-Type: text/json // Tried some other content types there
> Host: localhost:8123
> Con
Hey Roy
No this is not possible. The SlingHttpServletRequest is only available
once you're "inside" the SlingMainServlet, i.e. in filters or servlets
registered within Sling. The HTTP Whiteboard is pure OSGi and filters
registered that way are executed before the SlingMainServlet.
The order of ex
Hello Juerg
Have you read the documentation at
https://sling.apache.org/documentation/bundles/datasource-providers.html#driver-loading?
I could imagine that you are struggling with one of the issues
described there.
Basically, IIUC, the Sling DataSource Provider bundle tries to create
a DataSourc
Hi Sam
Regarding SLING-1778: it's not feasible to leverage the SLING-1778 features
for all aspects within CQ5, as some of the CQ5 features directly access the
JCR API and thus the ResourceProvider magic happening in Sling is not
effective. This is especially true for page nodes.
If the nodes you'
Hello Markus
You can register servlet filters in Sling, but you can also register
servlet filters in the OSGi HttpService using the whiteboard[0]. As
the SlingMainServlet runs within the OSGi HttpService, you may have
more success registering a filter there. I don't know where in the
stack Paramet
Hi Markus
You might get what you want by delegating your requests to the
ResourceResolver. I.e. you look up your node by UUID (or using search)
via the JCR API. Then you retrieve Node's path and call
resolver.getResource() using this path. Here you have a
JcrNodeResource, which you can return dire
Hi Sam
I think the RequestDispatcherOptions[0] might be what you're looking
for. It allows you to control certain aspects of re-dispatching
("forwarding" and "including") a request, including forcing a
different resource type. You could use this API in a servlet
registered for the "edit" selector,
Hi Sam
Why would you want to do this? If it's for performance reasons, did
you measure if there is actually a problem?
If you request the static resource from Sling (and it is backed by a
JCR Node), it is just spooled out to the client. In case of binaries,
they would typically be served out of J
.
>
> Static files will be served from CDN eventually. So, I'm not concerned with
> performance.
>
>
>
> On Thu, May 12, 2011 at 6:30 AM, Julian Sedding wrote:
>
>> Hi Sam
>>
>> Why would you want to do this? If it's for performance reasons, did
Hi Phil
Check out the integration tests, as Bertrand suggested. In the class
AbstractAuthenticatedTest[0] there is pretty much the same code you're
trying to write. I think that should get you going.
Regards
Julian
[0]
http://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/src/
Hi Phil
Typically when working with Sling you don't access it via HTTP a lot.
Rather you work "within" Sling. I.e. you write scripts that run within
an authenticated request (which typically originates from a browser).
I believe that getting "inside" Sling can be a little tricky at the
beginning a
Hi Phil
You can simply do if you want the
current resource rendered as json or in your case (optionally with resourceType
attribute).
Note: the default json rendering servlet sets the Content-Type header
to application/json. This can cause your HTML to be returned with the
incorrect content typ
Hi Craig
Your newly created user is probably doesn't have any permissions and
is not in a group from which it could inherit permissions. Did you see
the documentation about managing permissions[0] in Sling?
Regards
Julian
[0]
http://sling.apache.org/site/managing-permissions-jackrabbitaccessman
em to be a member of anything. Is there a group that has full write access
> by default that I could add the users to?
>
> On Jul 27, 2011, at 12:39 PM, Julian Sedding wrote:
>
>> Hi Craig
>>
>> Your newly created user is probably doesn't have any permissions and
>
Hi Carsten
Regarding documentation:
A simple idea on how to mark the quality of single documentation pages
could be to include the date when the page was last updated (or
checked, if no updates were necessary) in a prominent place (e.g.
below the title) on the page. This information allows to get
Hi Markus
I believe that Sling has no knowledge of standard JSP includes, and thus
fails to invalidate the including scripts.
The easiest workaround is to delete the compiled classes below
/var/classes/org/apache/jsp (this is off the top of my head, may be
slightly different). This way you don't
Hi David
This is an interesting question and I consider the concerns you
mention absolutely valid. I have been thinking about this problem
before, but never got around to implementing/prototyping my ideas. In
a SlingPostProcessor, the changes should not yet be persisted, so it
should be possible t
Hi Günther
On Mac, I copy files in the Terminal in order to avoid the ._*
metadata files. That worked fine for me with WebDAV and
Jackrabbit/Sling so far.
Regarding your question: whether documents are indexed or not depends
on your configuration, namely the "textFilterClasses" option of your
sea
oking at
nodetype definitions, specifically the "on-parent-version" attribute.
I guess that's the point where you will "study the JCR2.0 spec" ;)
Regards
Julian
On Fri, May 11, 2012 at 12:00 PM, Julian Sedding wrote:
> Hi Günther
>
> On Mac, I copy file
71 matches
Mail list logo