[ANN] Apache Sling 10 Released

2018-02-06 Thread Robert Munteanu
On Tue, 2018-02-06 at 16:09 +0200, Robert Munteanu wrote:
> The full release notes are available online at

Correction: the release notes are at

  https://sling.apache.org/news/sling-10-released

Thanks,

Robert


[ANN] Apache Sling 10 Released

2018-02-06 Thread Robert Munteanu
The Apache Sling team is pleased to announce the release of Apache
Sling version 10. The release is available for download at

https://sling.apache.org/downloads.cgi

About Apache Sling
--
Apache Sling™ is a framework for RESTful web-applications based on an
extensible content tree.

In a nutshell, Sling maps HTTP request URLs to content resources based
on the request's path, extension and selectors. Using convention over
configuration, requests are processed by scripts and servlets,
dynamically selected based on the current resource. This fosters
meaningful URLs and resource driven request processing, while the
modular nature of Sling allows for specialized server instances that
include only what is needed.

Sling serves as basis for a variety of applications ranging from
blogging engines all the way to enterprise content management systems.

Release notes
-

The major points of interest for this release are:

* Java 9 and 10 support
* Migrated from tika-bundle to tika-parsers
* Direct access to a DataStore binary when the repository allows it
* Exception stack traces now contain the originating bundle
* Update to Oak 1.6.8
* Service user web console page added
* Service user privilege declaration based on principal names
* Enhancements to the repoinit language
* Support for mounting JSON files in the bundle resource provider

The full release notes are available online at

https://sling.apache.org/news/sling-launchpad-9-released.html

Enjoy!

On behalf of the the Apache Sling PMC,
Robert Munteanu 


Re: Deprecation of SlingRepository.loginAdministrative()

2018-02-06 Thread Bertrand Delacretaz
On Tue, Feb 6, 2018 at 1:02 PM, Jörg Hoh  wrote:
> ...Long story short: Is the loginAdministrative() method planned to be
> removed? If yes, we should clearly give best practices and document how it
> can be replaced even in the non-trivial cases. If it's going to stay, we
> should remove the deprecation warning

I think we need to keep warnings that loginAdmin should be used as
sparingly as possible.

And probably provide some examples where it does make sense to use it.

But deprecation might not be the correct term, as you indicate.

-Bertrand


Re: system users administrative session

2018-02-06 Thread Oliver Lietz
On Sunday 04 February 2018 12:57:10 Andres Bott wrote:
> Hello all,

Hi  Andres,

> I'm currently using this code in my bundle
> http://svn.apache.org/viewvc/sling/trunk/launchpad/test-services/src/main/ja
> va/org/apache/sling/launchpad/testservices/repository/SystemUsersInitializer
> .java?view=markup=1727946 to execute a repoinit file to create
> service users.
> 
> I wanted to know if there is a better/intended way to execute repoinit
> on bundle installation
> 
> and since loginAdministrative is deprecated, how should we run this code
> in the future?

you can provide OSGi configurations with Repoinit statements in your bundle. 
To get an idea have a look at SLING-7177[1], Karaf Configs[2] and how to 
install OSGi configurations from bundles[3].

Regards,
O.

[1] https://issues.apache.org/jira/browse/SLING-7177
[2] 
https://github.com/apache/sling-org-apache-sling-karaf-configs/tree/master/src/main/resources
[3] 
http://sling.apache.org/documentation/bundles/configuration-installer-factory.html

> Regards
> Andres