Package Details: apachedirectorystudio 2.0.0.v20210717.17-2

Git Clone URL: https://aur.archlinux.org/apachedirectorystudio.git (read-only, click to copy)
Package Base: apachedirectorystudio
Description: Eclipse based LDAP browser and directory client
Upstream URL: https://directory.apache.org/studio/
Keywords: LDAP openldap
Licenses: Apache
Submitter: None
Maintainer: SanskritFritz
Last Packager: SanskritFritz
Votes: 87
Popularity: 0.055343
First Submitted: 2009-02-13 21:06 (UTC)
Last Updated: 2024-01-28 19:15 (UTC)

Dependencies (3)

Required by (0)

Sources (3)

Latest Comments

1 2 3 4 5 6 .. 10 Next › Last »

grawity commented on 2024-03-20 06:26 (UTC)

I've been using DirStudio on GNOME, and I can't say I've noticed any problems with it – xlsclients says that it's running natively on Wayland, but everything behaves as it should. (UI-wise, at least.)

SanskritFritz commented on 2024-03-19 10:49 (UTC)

Hi that looks nice. However I'm not sure I want to change upstream defaults in a package. Having said that I don't use Wayland, so I can't test it either. So, please, if others are for the idea, speak up. I can change my mind.

brolf commented on 2024-03-18 22:08 (UTC)

Eclipse applications break horribly when used with wayland. I suggest to always start apachedirectorystudio with GDK_BACKEND=x11.

I locally adapted the PKGBUILD. I hope it is useful:

# Maintainer: Philipp Tusch <zokker13@posteo.de>
# Contributor: Tom Wizetek <tom@wizetek.com>
# Contributor: koentje
# Contributor: Ian Taylor <ian at lorf dot orgs>
# Contributor: Philipp Tusch <zokker13@posteo.de>
# Contributor: Matt Pallissard <matthew.paul@pallissard.net>

pkgname=apachedirectorystudio
_pkgname=ApacheDirectoryStudio
pkgver=2.0.0.v20210717.17
pkgrel=2
_pkgver="${pkgver%.*}-M${pkgver##*.}"
pkgdesc="Eclipse based LDAP browser and directory client"
arch=('x86_64')
url="https://directory.apache.org/studio/"
license=('Apache')
depends=('java-runtime>=11' 'python' 'libsecret')
source=('apachedirectorystudio.desktop' 'apachedirectorystudio.png')
source_x86_64=("https://dlcdn.apache.org/directory/studio/$_pkgver/$_pkgname-$_pkgver-linux.gtk.${CARCH}.tar.gz")
sha256sums=('d8c2b2b4bc29de8d5dca34b6f9f1ff1a8716f91cf132d76232a9a133a95c6e68'
            '400929c64547773a1bba1c82f7c12f9cd55f2a68b43f5fcebc3c4d07cbe6549b')
sha256sums_x86_64=('24764eff94ad3a257a899d34f9933276af0d201fba9017d6737558b2ffd5eda7')

package() {
  cd "$pkgdir"

  install -dm0755 opt/$_pkgname usr/bin usr/share/applications/
  cp -a "$srcdir"/$_pkgname/* opt/$_pkgname/

  # Make sure ApacheDirectoryStudio is always started as x11 application
  # because wayland is not supported by eclipse
  cd "${pkgdir}/usr/bin"
  echo "GDK_BACKEND=x11 /opt/${_pkgname}/${_pkgname}" > "${_pkgname}"
  chmod +x "${_pkgname}"
  ln -sf ${_pkgname} ${pkgname}
  cd "$pkgdir"

  # Add some config so the users home directory is not cluttered
  # Configurations will be saved under ~/.config/
  echo "###" >> opt/${_pkgname}/${_pkgname}.ini
  echo "# Don't clutter users home folder" >> opt/${_pkgname}/${_pkgname}.ini
  echo "-Dosgi.configuration.area=@user.home/.config/eclipse" >> opt/${_pkgname}/${_pkgname}.ini
  echo "-Dosgi.instance.area.default=@user.home/.config/${_pkgname}" >> opt/${_pkgname}/${_pkgname}.ini

  install -Dm644 "$srcdir"/apachedirectorystudio.desktop "$pkgdir"/usr/share/applications/apachedirectorystudio.desktop
  install -Dm644 "$srcdir"/apachedirectorystudio.png "$pkgdir"/usr/share/pixmaps/apachedirectorystudio.png
}

SanskritFritz commented on 2024-01-28 19:17 (UTC)

Adopted and changed the download location to https://dlcdn.apache.org/directory/studio/2.0.0.v20210717-M17/ApacheDirectoryStudio-2.0.0.v20210717-M17-linux.gtk.x86_64.tar.gz

ravenstar commented on 2024-01-08 16:48 (UTC) (edited on 2024-01-08 16:50 (UTC) by ravenstar)

Have an error:

==> ERROR: One or more files did not pass the validity check!

As Siguenos noticed - the download link is broken. Changed in PKGBUILD:

source_x86_64=("https://downloads.apache.org/directory/studio/$_pkgver/$_pkgname-$_pkgver-linux.gtk.${CARCH}.tar.gz")

And in .SRCINFO:

source_x86_64 = https://downloads.apache.org/directory/studio/2.0.0.v20210717-M17/ApacheDirectoryStudio-2.0.0.v20210717-M17-linux.gtk.x86_64.tar.gz

Siguenos commented on 2024-01-05 07:41 (UTC)

Hi, the download link is broken

http://www.apache.org/dist/directory/studio/2.0.0.v20210717-M17/ApacheDirectoryStudio-2.0.0.v20210717-M17-linux.gtk.x86_64.tar.gz

replaced by

https://downloads.apache.org/directory/studio/2.0.0.v20210717-M17/ApacheDirectoryStudio-2.0.0.v20210717-M17-linux.gtk.x86_64.tar.gz

blackeeper commented on 2023-11-25 07:29 (UTC) (edited on 2023-11-25 07:30 (UTC) by blackeeper)

I tried export GDK_BACKEND=x11, it's work!

too commented on 2023-09-01 08:33 (UTC) (edited on 2023-09-01 08:36 (UTC) by too)

I confirm exact error reported by cbueche. Core dump backtrace shows the following (looks like symbols for apache ds are not available):

#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007fcf17a8e8a3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007fcf17a3e668 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007fcf17a264b8 in __GI_abort () at abort.c:79
#4  0x00007fcf16851054 in os::die() () at /usr/lib/jvm/java-17-openjdk/lib/server/libjvm.so
#5  0x00007fcf17537d0d in VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long) () at /usr/lib/jvm/java-17-openjdk/lib/server/libjvm.so
#6  0x00007fcf1753871f in VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*, char const*, ...) () at /usr/lib/jvm/java-17-openjdk/lib/server/libjvm.so
#7  0x00007fcf17538752 in VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*) () at /usr/lib/jvm/java-17-openjdk/lib/server/libjvm.so
#8  0x00007fcf173d15d9 in JVM_handle_linux_signal () at /usr/lib/jvm/java-17-openjdk/lib/server/libjvm.so
#9  0x00007fcd166fc024 in  () at /usr/lib/libjavascriptcoregtk-4.0.so.18
#10 0x00007fcf17a3e710 in <signal handler called> () at /usr/lib/libc.so.6
#11 0x00007fcd82c36f48 in Java_org_eclipse_swt_internal_C_strlen () at /home/too/.eclipse/1591715926_linux_gtk_x86_64/configuration/org.eclipse.osgi/392/0/.cp/libswt-gtk-4940r23.so
#12 0x00007fcf010d21e4 in  ()
#13 0x00007fcf165fa788 in  ()
#14 0x00007fcf00630bdd in  ()
#15 0x00007fcf0061fb10 in  ()
#16 0x0000000000000000 in  ()

Stack trace suggests WebKitGTK might be at fault but it is just a guess:

       Message: Process 617987 (java) of user 1000 dumped core.

                Stack trace of thread 617988:
                #0  0x00007fcf17a8e83c n/a (libc.so.6 + 0x8e83c)
                #1  0x00007fcf17a3e668 raise (libc.so.6 + 0x3e668)
                #2  0x00007fcf17a264b8 abort (libc.so.6 + 0x264b8)
                #3  0x00007fcf16851054 n/a (libjvm.so + 0x251054)
                #4  0x00007fcf17537d0d n/a (libjvm.so + 0xf37d0d)
                #5  0x00007fcf1753871f n/a (libjvm.so + 0xf3871f)
                #6  0x00007fcf17538752 n/a (libjvm.so + 0xf38752)
                #7  0x00007fcf173d15d9 JVM_handle_linux_signal (libjvm.so + 0xdd15d9)
                #8  0x00007fcd166fc024 n/a (libjavascriptcoregtk-4.0.so.18 + 0x10fc024)
                #9  0x00007fcf17a3e710 n/a (libc.so.6 + 0x3e710)
                #10 0x00007fcd82c36f48 Java_org_eclipse_swt_internal_C_strlen (/home/too/.eclipse/1591715926_linux_gtk_x86_64/configuration/org.eclipse.osgi/392/0/.cp/libswt-gtk-4940r23.so + 0x36f48)
                #11 0x00007fcf010d21e4 n/a (n/a + 0x0)
                #12 0x00007fcf00620352 n/a (n/a + 0x0)
                #13 0x00007fcf00620397 n/a (n/a + 0x0)
                #14 0x00007fcf00617cc9 n/a (n/a + 0x0)
                #15 0x00007fcf16e47942 n/a (libjvm.so + 0x847942)
                #16 0x00007fcf16ee5044 n/a (libjvm.so + 0x8e5044)
                #17 0x00007fcf16ee7875 n/a (libjvm.so + 0x8e7875)
                #18 0x00007fcd82c37665 callback (/home/too/.eclipse/1591715926_linux_gtk_x86_64/configuration/org.eclipse.osgi/392/0/.cp/libswt-gtk-4940r23.so + 0x37665)
                #19 0x00007fcd82c3b059 fn53_2 (/home/too/.eclipse/1591715926_linux_gtk_x86_64/configuration/org.eclipse.osgi/392/0/.cp/libswt-gtk-4940r23.so + 0x3b059)
                #20 0x00007fcecd95c6c0 g_closure_invoke (libgobject-2.0.so.0 + 0x146c0)
                #21 0x00007fcecd98a938 n/a (libgobject-2.0.so.0 + 0x42938)
                #22 0x00007fcecd97baa7 g_signal_emit_valist (libgobject-2.0.so.0 + 0x33aa7)
                #23 0x00007fcecd97bd34 g_signal_emit (libgobject-2.0.so.0 + 0x33d34)
                #24 0x00007fcd1780508a n/a (libwebkit2gtk-4.0.so.37 + 0xa0508a)
                #25 0x00007fcd177ef1d3 n/a (libwebkit2gtk-4.0.so.37 + 0x9ef1d3)
                #26 0x00007fcd177f0bb3 n/a (libwebkit2gtk-4.0.so.37 + 0x9f0bb3)
                #27 0x00007fcd177f10c7 n/a (libwebkit2gtk-4.0.so.37 + 0x9f10c7)
                #28 0x00007fcd177a1fb4 n/a (libwebkit2gtk-4.0.so.37 + 0x9a1fb4)
                #29 0x00007fcd17879051 n/a (libwebkit2gtk-4.0.so.37 + 0xa79051)
                #30 0x00007fcd17879545 n/a (libwebkit2gtk-4.0.so.37 + 0xa79545)
                #31 0x00007fcd17879a93 webkit_web_view_run_javascript (libwebkit2gtk-4.0.so.37 + 0xa79a93)
                #32 0x00007fcd81a068bd Java_org_eclipse_swt_internal_webkit_WebKitGTK_webkit_1web_1view_1run_1javascript (/home/too/.eclipse/1591715926_linux_gtk_x86_64/configuration/org.eclipse.osgi/392/0/.cp/libswt-webkit-gtk-4940r23.so + 0x68bd)
                #33 0x00007fcf0062453a n/a (n/a + 0x0)
                #34 0x00007fcf0062023e n/a (n/a + 0x0)
                #35 0x00007fcf00620397 n/a (n/a + 0x0)
                #36 0x00007fcf00620352 n/a (n/a + 0x0)
                #37 0x00007fcf0062023e n/a (n/a + 0x0)
                #38 0x00007fcf00620352 n/a (n/a + 0x0)
                #39 0x00007fcf0062023e n/a (n/a + 0x0)
                #40 0x00007fcf0062023e n/a (n/a + 0x0)
                #41 0x00007fcf012396a8 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

Can it be that OpenJDK/apacheds was built against an older WebKitGTK?

cbueche commented on 2023-04-24 09:30 (UTC) (edited on 2023-04-24 09:31 (UTC) by cbueche)

Hi, I cannot start ADS, it crashes on me, I tried several Java versions. Error is

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f9838a36f48, pid=16986, tid=16987
#
# JRE version: OpenJDK Runtime Environment (11.0.19+7) (build 11.0.19+7)
# Java VM: OpenJDK 64-Bit Server VM (11.0.19+7, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libswt-gtk-4940r23.so+0x36f48]  Java_org_eclipse_swt_internal_C_strlen+0xf

I tried export GDK_BACKEND=x11, same issue. I can provide (huge) log files if that helps.

Hints welcome; thx, Charles

dronotte commented on 2022-11-01 12:24 (UTC) (edited on 2022-11-01 12:24 (UTC) by dronotte)

After updating system ran into a problem with truststore while connecting to ldap server

Error while opening connection
 - problem accessing trust store
java.lang.RuntimeException: problem accessing trust store
    at org.apache.directory.ldap.client.api.LdapConnectionConfig.setDefaultTrustManager(LdapConnectionConfig.java:143)
    at org.apache.directory.ldap.client.api.LdapConnectionConfig.<init>(LdapConnectionConfig.java:121)
    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doConnect(DirectoryApiConnectionWrapper.java:158)
    at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.connect(DirectoryApiConnectionWrapper.java:144)
    at org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable.run(OpenConnectionsRunnable.java:111)
    at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:109)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.security.KeyStoreException: problem accessing trust store
    at java.base/sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:73)
    at java.base/javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:278)
    at org.apache.directory.ldap.client.api.LdapConnectionConfig.setDefaultTrustManager(LdapConnectionConfig.java:137)
    ... 6 more
Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.
    at java.base/sun.security.util.DerInputStream.getLength(DerInputStream.java:602)
    at java.base/sun.security.util.DerValue.init(DerValue.java:411)
    at java.base/sun.security.util.DerValue.<init>(DerValue.java:352)
    at java.base/sun.security.util.DerValue.<init>(DerValue.java:365)
    at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1973)
    at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222)
    at java.base/java.security.KeyStore.load(KeyStore.java:1479)
    at java.base/sun.security.ssl.TrustStoreManager$TrustAnchorManager.loadKeyStore(TrustStoreManager.java:365)
    at java.base/sun.security.ssl.TrustStoreManager$TrustAnchorManager.getTrustedCerts(TrustStoreManager.java:313)
    at java.base/sun.security.ssl.TrustStoreManager.getTrustedCerts(TrustStoreManager.java:55)
    at java.base/sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:49)
    ... 8 more

problem accessing trust store