("my-user", "".toCharArray()), (String)null);
>
> Maybe this is a security flaw :)? The reason I use it like this is because I
> also found that AEM itself uses this method to modify pages in name of users
> in workflows / jobs...
>
> Greets,
> Roy
>
I had the same question previously. It is not very feasible to configure a
service user as a delegate on each individual human user. Especially when these
human users are constantly added or removed.
This is a question for Oak, I believe.
Cheers,
Alex
> On 07.02.2018, at 14:03, Jörg Hoh
On 03.05.2017, at 10:01, Stefan Seifert wrote:
> coming back to this - it is possible to load i18n json files with JCR content
> loader - but one bug prevented it working with the last two releases [1]
> this bug is fixed in the current snapshot release of JCR content
On 27.04.2017, at 06:12, Correia wrote:
> How do I add my second JSON file to the jcr:data on the first file??
The answer to that question must lie in the sling initial content loader
mechanism, how it can incorporate binary files (i.e. the second en.json
Yet another query api/language?
Cheers,
Alex
On 13.05.2015, at 06:23, Carsten Ziegeler cziege...@apache.org wrote:
I'm currently trying to design a new query API which is not string based
anymore. It would be much easier to use, safer and in no way require you
to write complex SQL or Xpath
On 21.09.2014, at 22:50, Bertrand Delacretaz bdelacre...@apache.org wrote:
What we recommend against is HTTP sessions
...meaning any in-memory data assigned to some session that is kept across
multiple requests (as that's what J2EE HTTP Sessions are). You want every
request to be
On 12.09.2014, at 10:55, Jason E Bailey jason.bai...@24601.org wrote:
I have a hard time understanding how there would be added complexity by
incorporating the nodeType hierarchy into a determination as to whether
a specific resource is of a specific type. Multiple hierarchies are
fairly
Sling resource types have their own super type hierarchy. Using jcr node types
if no sling:resourceType is specified was added as a fallback for cases where
it is impractical to set a sling:resourceType. But it does not take into
account the node type hierarchy, I think because it would simply
On 03.09.2014, at 04:39, Sandro Boehme sandro.boe...@gmx.de wrote:
Both scripts are bound to the html extension and `my_resource_type` is more
detailed in the resource type hierarchy than `sling/servlet/default`.
But as I use the .jcrbrowser selector this gives my script a higher priority
On 24.07.2014, at 19:11, Justin Edelson jus...@justinedelson.com wrote:
If the author didn't want to
do that, they shouldn't use sling:call and instead use sling:include
with replaceSelectors.
Right. sling:call addresses the script and that is simply wrong - it needs to
be a sling:include
I think this is the Osmorc plugin providing the OSGi facet support. I saw
those warnings as well (with Intellij 13.1) and have it disabled. (Same for
Spring OSGi and dmServer Support plugins that pop up when I search for osgi
in Plugins). Then I don't have any OSGi facets nor inspections. This
On 28.02.2014, at 09:35, Thomas Joseph open4tho...@gmail.com wrote:
What were the design consideration for restricting multiple versions of an
OSGi bundle in the sling tooling - while this is an inherent and
celebrated feature natively available in OSGi? There are many use cases
where we
On 13.01.2014, at 13:09, Olaf Otto o...@x100.de wrote:
However, when
calling /content/child1/child2.html, the resource provider is never asked
for a resource.
This seems wrong - when you register the provider under root
/content/child1/child2 it should be asked for the resource as part of
On 08.01.2014, at 08:36, Buzzterrier tje...@blueorigin.com wrote:
We are using :nameHint to create a node. We would like to add some properties
to the this node when it is created. Is there a way to do this?
Just specify the properties normally using the sling post servlet. For
:nameHint, you
On 04.11.2013, at 14:06, Alessandro Bologna alessandro.bolo...@gmail.com
wrote:
Again, I fully understand that this is possibly a better approach with
fewer contents and maybe if there variations on them, but in my use case
(same exact contents, just different rendering) the approach of
Those separate resource trees I mentioned could just point to the original
resources, so they don't need to duplicate them. Maybe the trees and/or the
selection of what gets used might look different than the original, so that can
be the only option.
OTOH if it is really automatic and applies
Hi Alessandro!
On 31.10.2013, at 07:28, Alessandro Bologna alessandro.bolo...@gmail.com
wrote:
For requests that have a specific header, say Host:otherapp, I want
instead to use scripts located at /apps/myotherapp/page.
Short of duplicating the resource, what's the best practice to
I think this is a question for the Jackrabbit mailing list - unless the Sling
launchpad deployment includes a broken configuration wrt to Jackrabbit's
search config (repository.xml or indexing_configuration.xml).
For more info see
http://wiki.apache.org/jackrabbit/Search
Could we have a helper method/service here as well? Not just for JSPs but for
java code as well.
It's a common question that people want to render a request result into a
string (or simply get the stream; internally a bytearrayoutputstream probably),
and the answer yes, you can do that, just
On 28.01.2013, at 11:32, Ulrich Schmidt ulrich-dieter.schm...@gombers.de
wrote:
I see that I have mixed up path resolution and resource resolution
(retrieving rendering script). But what does longest matching resource
mean. To use the cheatsheet-sample: The absolute path /wiki/Sling must
On 25.01.2013, at 18:22, Ulrich Schmidt ulrich-dieter.schm...@gombers.de
wrote:
Being new with Sling, I need to get familiar with it. Until now I understand
that there is no comprehensive reference describing the Sling architecture and
methods in detail. Until now I saw some CQ5-samples
On 27.11.2012, at 22:31, Dan Klco dan.k...@sixdimensions.com wrote:
Thanks, that is exactly what I was looking for. Is there any documentation
on these annotations?
Here is the relevant documentation: http://sling.apache.org/site/servlets.html
This could get some annotation based samples
On 14.11.2012, at 19:06, Dan Klco dan.k...@sixdimensions.com wrote:
create a framework in Sling allow defining resource based servlets via
annotating methods
That would break Sling's RESTful mantra addresses resources, not scripts.
Servlets are scripts and do not define resources - this is
On 14.11.2012, at 03:56, Wayne Lund wxl...@yahoo.com wrote:
Why would you say sling is more elegant?
It's more elegant because:
- addresses resources, not scripts
- no regexp hell
- with JCR, clearly defined resource space
Cheers,
Alex
On 12.11.2012, at 10:55, Felix Meschberger fmesc...@adobe.com 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 the requesting user, This also guarantees
consistent results for
On 07.11.2012, at 10:06, Dirk Rudolph dirk.rudo...@t-systems-mms.com wrote:
When I now introduce an app that should use the component defined in the
lib, they shouldn't use the keys defined in the lib because it's possible
that a translation of one message differs for different apps
This is
The mechanism was mainly designed for a basic search path using /apps and
/libs. What is your use case with a search path like /apps/,/apps/bar,
/apps/foo/ and localization?
If you just want to separate dictionaries:
a) use different translation hints/comments for identical strings that need
On 01.11.2012, at 18:30, Jakob Külzer jakob.kuel...@gmail.com wrote:
What is the recommended way of configuring the resolver? Obviously, having
someone enter the rules manually on the console is not an option, so
something that is stored in the tree and can be packaged and redeployed
would be
On 29.10.2012, at 16:47, Jakob Külzer jakob.kuel...@gmail.com wrote:
Are /app/foo/config* folders not exclusive or? For example, if I have
config and config.dev and the runmodes are foo,dev, would it not load
config.dev only? Or is configuration in config (without any runmodes)
always
On 10.10.2012, at 06:16, Dimitar Dimitrov ddimit...@consult.bg wrote:
I am trying to import new node type definition by CND on a fly.
We develop a Adobe Flex based interface which can build CND by
hierarchical UI and I want to import this new node type into the JCR
repository.
For now when
On 11.09.2012, at 08:24, Sam Lee skyn...@gmail.com wrote:
Which AdapterFactory implements
resourceResolver.adaptTo(javax.jcr.Session.class) ?
I think it's the JcrResourceProvider, with the adaptTo being forwarded from
the jcr resource resolver:
On 16.07.2012, at 17:07, Jeremy Booth wrote:
For our app we do need to
differentiate between provided empty and not provided.
I can imagine that this makes sense sometimes (albeit I haven't come across
this yet).
On 16 July 2012 15:42, Carsten Ziegeler cziege...@apache.org wrote:
the
a different response code - and you might want to
use a forward instead of an include here.
Cheers,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
On 19.12.11 23:35, Alexander Klimetschek aklim...@adobe.com wrote:
Also, you could put it under /content/imgs or /libs/imgs
Ups, I meant /apps/imgs or maybe /etc/imgs (/apps /libs should usually
be closed as much as possible for public instances to avoid any chance of
exposing code
resource provider works on the filesystem, and only maps
those directories from the fs into Sling's virtual resource view. If you
look at the JCR repository, you won't see them. There is currently no tool
that I am aware of which would display the Sling resource tree.
Cheers,
Alex
--
Alexander
:
client.getParams().setAuthenticationPreemptive(true);
http://hc.apache.org/httpclient-3.x/authentication.html
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
..
But I am not sure if that will help for your script resolution (using
sling:include/).
Yes, sling supports sling:resourceSuperType of course and thus all
resolutions for scripts and servlets will check the resource type
hierarchy.
Regards
Felix
--
Alexander Klimetschek
, but not sure why this kind of
thing is happening only when called from JSP running in sling.
Ok, that sounds a bit weird. How does the stack trace (when debugging)
look like if you call session.getAttribute() from a servlet in sling?
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day
me).
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
application server. (Except persisting the sessions on disk is
important)
In any case, this is all happening inside Weblogic, not Sling. The JSP
just calls session.getAttribute() here.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
output encoding.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
not provided by your web application itself as HTML pages.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
by default (for
backwards compatibility reasons).
Sounds good!
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
on selectors or
extensions (see https://issues.apache.org/jira/browse/SLING-864 ) or have
some custom handling based e.g. on paths.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
is that? Am I
missing anything?
Ah, yes, that is one special case, for java servlets. Not sure how if it
depends on the sling.servlet.paths ending with .servlet...
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
to use the JcrResourceResolverFactory at
the moment.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
probably be useful if this would be noted in
the deprecated notice of the JcrResourceResolverFactory class.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
name=sling.servlet.resourceTypes value=test/login
* @scr.property name=sling.servlet.methods value=POST
*/
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
is to store users in the default
workspace (using the UserPerWorkspaceUserManager).
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
, right? Then you should avoid
overwriting the json extension in your script, which you do by the generic
GET.jsp. If you only generate html in your jsp for example (for handling
requests like /something.html), you could use a GET.html.jsp.
Regards,
Alex
--
Alexander Klimetschek
Developer
sling:include resourceType=default-json-servlet (where
default-json-servlet needs to be replaced with the right type, I don't
know it at the moment).
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
a higher property
per node ratio - something like 5-10 properties per node. With 4 nodes per
request however, it should still be fine!
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
effort... but with JCR you get a
well-though out standard.
Just my 2 cents,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
, as noted before, if you do have use cases which fetch a lot of
different nodes (or better say: in all cases) your repository will be much
faster if you use a local persistence manager with no network connection
and no roundtrips.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day
on this?
I think this approach with a protected subnode should be fine - and no
performance issue. ACL checks are done for every node anyway.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
and text, for example.
[1]
http://www.day.com/specs/jcr/2.0/3_Repository_Model.html#PropertyTypeConver
sion
[2] http://www.day.com/specs/jcr/1.0/6.2.6_Property_Type_Conversion.html
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
:
Resource res = slingRequest.getResource();
To get the node, you need to use the adapt mechanism (the currentNode in
JSPs/ESPs is only one of the variables preset in the script engines):
Node node = res.adaptTo(Node.class);
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day
.
But not if these are enforced at the data layer and a (difficult) schema
change is needed to make them optional. You can change node types or
update node type definitions in JCR, but as in any repository/database,
this is not always trivial.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe
to also setup custom node types
and define ACLs? Or how would I do that?
http://wiki.apache.org/jackrabbit/JcrLinks#Open_Source_Tools_and_Libraries
And/or use the JCR API for application-specific administrative tasks.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
code to write and to think
about), but for most applications this is a hurdle for the long term. A
good read regarding this is
http://dev.day.com/content/ddc/blog/2009/01/jcrrdbmsreport.html
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
sessions as soon as possible. Creating a session is cheap.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
you learn in (core)
Sling can be applied to CQ.
Otherwise CQ provides more in many aspects, like providing a component
model, that itself uses the normal sling:resourceType for rendering. And
all the features and UI you need for a proper WCM, of course.
Regards,
Alex
--
Alexander Klimetschek
like (maybe Sling)
overwrites the content type after my JSP is fully rendered. Can this
be the case?
I don't think so...
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
/bar_1
:nameHint will ensure a unique name in case of duplicates. Also using
shorter names like items instead of lineItems has its advantages
(shorter URLs, more easily readable, etc.).
Just my 2 cents...
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
as in a unix filesystem.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
content structure.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
. But this would be very
inefficient, also for the Jackrabbit implementation. And since you
have multi-value properties in JCR, which in XML must be expressed as
elements (if comma-separated attribute values don't do it), you can
handle all cases.
Regards,
Alex
--
Alexander Klimetschek
On Sat, May 22, 2010 at 16:59, Mike - RAC rac.m...@gmail.com wrote:
I created a Servlet Filter that checks whether the user is allowed to access
a node or not.
Have you considered using JCR access control for that?
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
--
Alexander Klimetschek
alexander.klimetsc...@day.com
(); // make the HEAD of the versioned node modifiable
changeValue(); // modify using normal JCR ops
session.save(); // save changes (this could happen multiple times
between checkouts/ins)
currentNode.checkin(); // archive a new version based on the current HEAD
Regards,
Alex
--
Alexander Klimetschek
is
required for a POST to sling for the out-of-the-box http basic auth
handler in Sling, afaik).
See here: http://hc.apache.org/httpclient-3.x/authentication.html
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
/n4redkdzyxaval7r
I think it would be easier if the GAE guys would remove some of the
constraints to allow for infrastructure apps. Maybe you can persuade
them ;-)
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
property (never set?), getError() (overrides
PN_STATUS_CODE?) and a setStatus parameter in send (ignored in
JSONResponse).
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
-servletspost.html#ManipulatingContent-TheSlingPostServlet%2528servlets.post%2529-%257B%257B%253Astatus%257D%257D
The reason for having 200's in some cases is when using ajax/iframe
requests from browsers, where non-200 responses might get lost.
Regards,
Alex
--
Alexander Klimetschek
], the jackrabbit mailing lists or some googling for eg. jcr
xpath.
[1] http://jcp.org/en/jsr/detail?id=170
[2] http://www.day.com/specs/jcr/1.0/
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
code.
[1] http://sling.apache.org/site/url-decomposition.html
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
you mean
http://dev.day.com/microsling/content/blogs/main/theaclisdead.html
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
= info
(string property)
See also Install, modify and remove a configuration on
http://sling.apache.org/site/jcr-installer-jcrjcrinstall-and-osgiinstaller.html
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
79 matches
Mail list logo