Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54419 - ldapbrowser-282_beta2-r1 cannot add entries
Summary: ldapbrowser-282_beta2-r1 cannot add entries
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-19 07:05 UTC by Georgi Georgiev
Modified: 2006-02-05 10:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2004-06-19 07:05:43 UTC
When I try to create a new entry on an LDAP server using ldapbrowser, nothing happens, because there are no menu itmes under Edit -> Add Entry. However, it works fine when using the online demo applet at http://www-unix.mcs.anl.gov/~gawor/ldap/demo.html

I also tried downloading the files that the applet uses and running those locally, but the behavior was the same -- nothing under Edit > Add Entry.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-21 01:37:21 UTC
seemant: you originally blocked the package for license reasons, what's the story behind this?

# <seemant@gentoo.org> (25 Jul 2002)
# masked while licensing is sorted out
app-misc/ldapbrowser

Georgi: i can't reproduce this, what JDK are you using?
Comment 2 Georgi Georgiev 2004-06-21 03:27:22 UTC
Since I am not at home, I reproduced the problem on my machine at school. 
I am using sun-jdk-1.5 beta1, and now upgraded to beta2 and the problem is the same. I also tried it under sun-jdk-1.4.2.04, but no luck.

I would think it is the weird schemas I have on my ldap server, but the java applet did work as expected (at least it gave me a choice of a few items to add).

An unrelated side-note, but java-1.5 was complaining that lbe.jar is corrupt. Unzipping the file and recreating it using "jar" fixed the problem (I thought it may have something to do with it, but no).

I was trying to download the jar files from the website and running them locally, but as far as I remember, the error was the same (not sure if I did everything properly). The files did have differing modification times, though.
Comment 3 Georgi Georgiev 2004-07-08 04:28:15 UTC
Some more insight on the problem.

If I do select an entry, right-click it, and then select "Edit -> Create Template" (and if I "mkdir ~/.ldapbrowser/templates" in advance), I can create a template from the entry, which then appears in Edit -> Add Entry. This seems to be the proper way to do things, so this bug should probably be marked as INVALID.

I guess it was my problem that I didn't know how to use the program, though there is no documentation. Furthermore, the demo applet does have several templates that I can select by default, which made me think that there is a problem with my installation.

Fact is, however, that Create Template, does not work if the "templates" directory does not exist, which is a problem related to this bug.

I would suggest to modify th lbe.sh script to do a mkdir -p ${HOME}/.ldapbrowser/templates. Now that I think about it, the proper fix seems to be:

mkdir -p ${HOME}/.ldapbrowser || exit 1
cd ${HOME}/.ldapbrowser || exit 1
test -d templates || cp -a /opt/ldapbrowser-282_beta2/templates ./
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-02-05 10:10:13 UTC
This package has been removed from portage.