on the request object make sense, I think.
See https://issues.apache.org/jira/browse/SLING-1629 for a patch.
WDYT?
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
On Fri, Aug 6, 2010 at 10:24, Carsten Ziegeler cziege...@apache.org wrote:
Alexander Klimetschek wrote
On Fri, Aug 6, 2010 at 08:10, Carsten Ziegeler cziege...@apache.org wrote:
What about a helper class (static methods) or a jsp taglib?
I was preferring them on the request, as you
On Fri, Aug 6, 2010 at 12:07, Carsten Ziegeler cziege...@apache.org wrote:
Alexander Klimetschek wrote
Another reason for the prominent place is that it teaches people to do
the right thing more easily. I have seen many cases that create links
without considering context path or sling's
(or decide via a flag) for generating relative URLs
(what ResourceResolver.map(request, path) is doing).
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
-jackrabbit repository, neither through RMI
nor transiently. I guess due to the lack of a standard connection mechanism
in JCR 1.0?
No, there has always been RMI. But a 1.0 client won't work with a 2.0 server.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
) is the way to go.
I probably could also have a SlingPostOperation myself, instead of the
servlet, but that one couldn't make use of all the built-in logic of
the existing operations.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
On Thu, Aug 26, 2010 at 15:34, Alexander Klimetschek aklim...@day.com wrote:
Then making all of them services (2) is the way to go.
No, I meant (1), of course.
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
On Thu, Aug 26, 2010 at 16:52, Felix Meschberger fmesc...@gmail.com wrote:
On 26.08.2010 15:34, Alexander Klimetschek wrote:
On Thu, Aug 26, 2010 at 14:47, Felix Meschberger fmesc...@gmail.com wrote:
Then the servlet looses a lot of control:
- response handling
Would it be helpful to be able
On Thu, Aug 26, 2010 at 18:38, Alexander Klimetschek aklim...@day.com wrote:
On Thu, Aug 26, 2010 at 16:52, Felix Meschberger fmesc...@gmail.com wrote:
You might also want to consider providing a SlingPostProcessor.
No, I want to use the ModifyOperation in my context, not the other way
around
or MediaRangeList
and co, I'd suggest to move them to public locations in
commons-style-libraries, such as jackrabbit-jcr-commons or
(I-don't-know-yet), to make them publicly available.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
for implementing strict RESTful servlets, that should
operate on the Accepts header, something which isn't very much
supported in Sling so far. But this is quite OT now.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
breakage (or none at all), and since it is
probably rather seldom, that people have their custom operation, I
think one could make such an API change.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
are designed to return URIs (absolute or relative),
hence the externalization, namespace mangling and URL encoding. To parse
it back into its pieces, one has to act like in request processing and use
e.g. the java URI class for that.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day
represent the operations you want to have
executed on the set.
WDYT? I would provide a Patch-patch ;-).
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
val in v) {
if (val == value2) {
v.remove(val);
}
)
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
On 27.01.11 15:59, Alexander Klimetschek aklim...@adobe.com wrote:
The add operation would be implemented as (pseudo code):
Values[] v = prop.getValues();
if (v contains value1) {
v += value1;
)
Ah, this should of course be
if (not (v contains value1)) {
v += value1;
)
Also, if we
Hi again,
could I assume silent agreement to this feature? ;-)
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
required to know the set
at all!
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
?
interface PreProcessor {
void process(SlingHttpServletRequest, ListChange);
}
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
On 01.02.11 04:10, Justin Edelson justinedel...@gmail.com wrote:
On Jan 31, 2011, at 12:27 PM, Alexander Klimetschek aklim...@adobe.com
wrote:
The latter is not really possible... one must be able to remove certain
parameters from the request or from the RequestProperty list to do so.
Maybe
(java.net.ConnectException) caught when processing request:
Connection refused
43314 [main] INFO org.apache.commons.httpclient.HttpMethodDirector -
Retrying request
... and all tests fail.
Any idea?
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
On 15.02.11 21:02, Alexander Klimetschek aklim...@adobe.com wrote:
the integration tests fail for me. In the trunk I do
cd launchpad/integration-tests
mvn test -Dtest=PostServlet*
I got it running in the meantime (thanks to Bertrand). The above is not
enough, you need to do:
(1) start
On 27.01.11 15:11, Alexander Klimetschek aklim...@adobe.com wrote:
I'd like to propose an extension to the Sling POST servlet.
I created http://issues.apache.org/jira/browse/SLING-1983 for this, and
attached a patch, which - as a side-effect - simplifies the rather
complex set property logic
in this regard. But I agree
that not having a templating mechanism such as JSP makes it hard to work
on it.
Just my 2 cents,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
/no cache decision.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
On 05.04.11 12:27, Felix Meschberger fmesc...@adobe.com wrote:
At the same time, I think we might want to move it from
contrib/extensions to bundles/extensions and add it to the
launchpad/builder project.
+1 - it is enough mature to be not just contrib :-)
Regards,
Alex
--
Alexander
/sling/trunk/check_staged_release.sh
Usage:
sh check_staged_release.sh 067 /tmp/sling-staging
Please vote to approve this release:
[ ] +1 Approve the release
[ ] 0 Don't care
[ ] -1 Don't release, because ...
This vote will be open for 72 hours.
Regards
Felix
--
Alexander Klimetschek
of a single
character.
What about using :order?
And the selector would be order as well (e.g. foo.order.infinity.json).
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
to the Sling POST servlet), why not? Inventing new names adds complexity
and potential for confusion...
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
for the child node's names must be.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
On 07.04.11 20:46, Alexander Klimetschek aklim...@adobe.com wrote:
On 07.04.11 19:38, Eric Norman eric.d.nor...@gmail.com wrote:
why not just render the ordered child nodes as a json array?
This would be much more incompatible with the existing way of using a JSON
object, and then you need
are discussing: how to integrate it as simple as possible
without breaking things ;-)
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
On 08.04.11 08:01, Carsten Ziegeler cziege...@apache.org wrote:
maps rarely have an order regardless of the language.
A linked map is not an unusual data structure. As Tobi noted, WCM/CMS is a
prominent use case.
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
://groups.google.com/group/day-communique?hl=en.
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
On 11.04.11 05:50, Felix Meschberger fmesc...@adobe.com wrote:
Am Freitag, den 08.04.2011, 12:04 +0100 schrieb Alexander Klimetschek:
On 08.04.11 08:01, Carsten Ziegeler cziege...@apache.org wrote:
maps rarely have an order regardless of the language.
A linked map is not an unusual data
pleaseincludeme.jsp, with c:import or some custom tags
from 3rd party lib)
In this case you need to get the request dispatcher from the other webapp
(b.war) to include the paths/jsps it covers (such as pleaseincludeme.jsp).
Regards,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin
the existing mechanism).
The default would be j_.* to ignore any parameters starting with j_
generally used for authentication
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--
Alexander Klimetschek
Developer
request processing) but the request is
POST to .../j_security_check, then the request should actually fail with
a 403.
+1
But I'd suggest making this a configurable list of paths, defaulting
to /j_security_check
+1
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
.
Cheers,
Alex
--
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel
is ignored in this case, but is there any way to
do this?
AFAIK you have to recreate the whole multivalue property, ie. post
the full property again as an array of values but with the value
missing that you want to delete.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
this (still open) bug with a patch to add selector support:
https://issues.apache.org/jira/browse/SLING-864
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
On Mon, Jul 6, 2009 at 3:29 PM, Bertrand
Delacretazbdelacre...@apache.org wrote:
On Mon, Jul 6, 2009 at 2:13 PM, Ian Bostoni...@tfd.co.uk wrote:
On 6 Jul 2009, at 11:01, Alexander Klimetschek wrote:
...See this (still open) bug with a patch to add selector support:
https://issues.apache.org
is distinctively marked: through the
sling:nonexistent resource type (and all the other differences that
come up when a resource does not exist yet). Therefore a special
handling is IMHO ok.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
/checkout? (I'd rather get by without writing a servlet.)
Of course, just use the JCR API in the esp. The post you mention
already does it.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
session) {
ResourceResolver resolver =
jcrResourceResolverFactory.getResourceResolver(session);
Resource res = resolver.getResource(/some/path);
}
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
implementation you could implement adaptTo to elegantly get
to the underlying JDBC connection or whatever the raw database access
it and use that in your Database query servlet.
[1]
http://cwiki.apache.org/SLING/add-resourceresolverfactory-service-interface.html
Regards,
Alex
--
Alexander
)ValueMap pays off when you have generic
servlets or scripts that should be able to handle both JCR and
Database-based resources.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
additional
server-side handling of the post [3].
[1] https://issues.apache.org/jira/browse/SLING-1023
[2] http://markmail.org/message/52m32zh36ewo4xl2
[3]
http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html
Regards,
Alex
--
Alexander Klimetschek
are not enough?
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
but not so good for
/content/new/a/file/that/was/hinted
where the name is a path, perhaps derived from the post.
Yes, this use case must be handled on the client side (eg. Javascript
in browsers), to set the path before the post.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc
for all methods.
[1] https://issues.apache.org/jira/browse/SLING-892
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
classes loaded from the repository. But this use case is still not
supported, IIUC?
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
-
namics ag - ein Unternehmen der PubliGroupe
Teufenerstrasse 19
CH-9000 St. Gallen
http://www.namics.com
http://blog.namics.com
mailto: matthias.werm...@namics.com
--
Alexander Klimetschek
alexander.klimetsc...@day.com
--
Alexander Klimetschek
alexander.klimetsc...@day.com
in certain cases (which would rather explain an
undefined var error). Nevertheless, I think you should debug that
further, because I think it needs more information to pin-point the
real issue.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
On Thu, Aug 27, 2009 at 8:33 AM, Peter Chiochettip...@myzel.net wrote:
Am 2009-08-25 14:54, schrieb Alexander Klimetschek:
So setting :name should force the post servlet to do 1. only. If it
behaves differently, it's a bug.
Well, then I have found a bug. Sorry, I cannot provide a patch
On Thu, Aug 27, 2009 at 12:28 PM, Peter Chiochettip...@myzel.net wrote:
I created https://issues.apache.org/jira/browse/SLING-1091
Thanks!
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
--
Alexander Klimetschek
alexander.klimetsc...@day.com
to pass in the credentials while avoiding the (ugly) browser
login dialog will fail there.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
in the default json
output of Sling. For nodes, one can rely on the order in the JSON.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
. If the community feels this should be a core service, I will make
an attempt at writing a more generic solution and provide a patch back to
sling.
--
Alexander Klimetschek
alexander.klimetsc...@day.com
HTTP basic auth... if that does not work it
can be considered a real browser bug.
If yes, I'd suggest documenting this as a simple way of managing
authentication for Sling, without requiring any extensions.
Good idea.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
it publicly
available.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
type might be changed, but this is what this patch is
all about - make them simpler and more capable.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
will serialize a JCR Date object (java.util.Calendar) as String
in the (standard) Javascript/ECMA Date format, so that it can be
easily parsed on the client side:
new SimpleDateFormat(EEE MMM dd HH:mm:ss 'GMT'Z, Locale.US)
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
at the virtual
resource path, or any other part of the rest the full URI.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
On Wed, Sep 23, 2009 at 13:08, Vidar Ramdal vi...@idium.no wrote:
On Wed, Sep 23, 2009 at 12:32 PM, Alexander Klimetschek
aklim...@day.com wrote:
For c2) this means there cannot be a resource at the virtual
resource path, or any other part of the rest the full URI.
Just to check if I
the NonExistingResource class clean.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
--
Alexander Klimetschek
alexander.klimetsc...@day.com
on the node name,
but not for wildcards.
I think the new JQOM in JCR 2.0 supports that better, but I don't know
how the query would like exactly.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
On Wed, Oct 7, 2009 at 16:48, Ian Boston i...@tfd.co.uk wrote:
On 7 Oct 2009, at 14:50, Alexander Klimetschek (JIRA) wrote:
I would refrain from building in an automatic mechanism that creates
hash-based paths because they are bad ;-)
Could you elaborate on why they are bad in the JCR
a new URL space is created by some application. Or teach the
UI developers about content modeling and provide them with simple APIs
to avoid flat or hash-based hierarchies.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
On Mon, Oct 26, 2009 at 10:04, Ian Boston i...@tfd.co.uk wrote:
We (Sakai) has implemented a versioning bundle [1].
I think the link got lost.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
/site/apache-felix-maven-bundle-plugin-bnd.html
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
that as a bundle. You
can use the Felix web management console (/system/console/bundles).
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
exactly.
Probably api, jcr.api or jcr.resource, which are used by slingtest,
use commons/testing themselves.
If moving out of commons would solve this somehow, +1 for merging them back.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
to other bundles. For non-bundleized jars this means some
up-front manual work.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
we make it harder for users, not easier as
Felix's goal righteously is.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
, but it's more natural for people
new to osgi).
+1 for testing it with the sling api bundle.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
bundles? In that case we definitely have a circular dependency and
must keep both split. Otherwise we can merge them and move them out.
The SlingTestHelper itself should never grow to have more dependencies
than just that of the (few) core bundles.
Regards,
Alex
--
Alexander Klimetschek
example on the Sling website on how to do (smaller) integration tests
with sling and pax exam in addition to full Sling integration tests
(as done by Bertrand, with http interface testing).
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
be
input type=hidden name=./jcr:primaryType value=my:file
because once you use ./ in any parameter, the Sling post servlet
will ignore all parameters that don't start with ./. This is dirty
little trick to automatically ignore foreign and unwanted parameters.
Regards,
Alex
--
Alexander
Compiler 1.0.0
First release
JCR Compiler 1.0.0
First release
JCR Prefs 1.0.0
First release
Scripting Java 1.0.0
First release
+1
(Note: non committer vote not tested, but in favor of getting releases out!)
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
config.runmode1 = mapping.location = /etc/map/runmode1
config.runmode2 = mapping.location = /etc/map/runmode2
etc.
that cry for automation ;-)
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
).
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
On Thu, Dec 10, 2009 at 12:27, Felix Meschberger fmesc...@gmail.com wrote:
Alexander Klimetschek schrieb:
I also think that the merging for my proposed case isn't that
difficult: you just walk the tree below /etc/map as it is done now and
apply things for the runmode they are in (defined
On Thu, Dec 10, 2009 at 14:47, Felix Meschberger fmesc...@gmail.com wrote:
Ehrm, this is exactly, what I am proposing as Option 2 ... (more or less).
Yes, as I pointed out, the only difference are the empty folders, at
the top level, right below /etc/map.
Regards,
Alex
--
Alexander
outside by jcr install
- Configs - config admin does not know about run modes - again jcr install
And we should continue this route.
You are right, adding such a new dependency creates probably more
issues than having to explicitly configure that for various runmodes.
Regards,
Alex
--
Alexander
value used
easily, for example via a console plugin and/or INFO log messages.
There already exists such a web console plugin at
/system/console/jcrresolver which would just have to display this
path.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
IMO work well for your and many other
scenarios.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
handling this across multiple threads?
There is a good reason why the JCR spec decided to state a.equals(b)
and internal state represented as equal, but not a == b.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
client would need to handle it manually anyway to get
all the json he wants, if there is a limit. For example, requesting
/.infinity.json or /.4.json where the limit is at /.2.json requires
him to fetch the content level-by-level anyway...
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc
the json get servlet to allow for round trips. The sling json
content loader mechanism (used upon bundle installation) might be used
for that. Although that is a somewhat separate discussion for
https://issues.apache.org/jira/browse/SLING-1172
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc
by default.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
. Whoever does that in
his custom app, and provides an implementation of TRACE, should handle
that himself.
IIUC, that bypasses all the normal Jetty config which is why TRACE gets
through in the first instance.
Isn't Jetty calling the OSGi http service?
Regards,
Alex
--
Alexander Klimetschek
.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
be changed on the
content or the blog sample must support some kind of login.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
for Firefox and IE) was replaced AFAIK with a
form-based cookie mechanism. Maybe this doesn't work yet together with
the blog sample.
See http://sling.apache.org/site/authentication.html for the
up-to-date docs (afaik).
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetsc...@day.com
1 - 100 of 791 matches
Mail list logo