[ome-users] Issues with NewUserGroupBean implementation

Josh Moore josh at glencoesoftware.com
Mon Mar 26 15:25:33 BST 2012


On Mar 26, 2012, at 3:58 PM, Harri Jäälinoja wrote:

> On 23/03/12 19:08, Harri Jäälinoja wrote:
>>> Hyldap is not in the main repository, but you can definitely fork the
>>> gist I sent you (https://gist.github.com/2158254).
>>> 
>> 
>> How do I "fork the gist" :) ?
>> 
> 
> 
> Hi Josh,

Hi Harri,

> here's what I've done to put my modified version of the hyldap component on github. First I noticed the "fork" button on the github page, and clicked that.
> 
> # some configs, also showing my fork and your original as upstream
> hajaalin at biotek973:~/openmicroscopy/components/hyldap$ git config --list
> github.user=hajaalin
> core.repositoryformatversion=0
> core.filemode=true
> core.bare=false
> core.logallrefupdates=true
> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
> remote.origin.url=git://gist.github.com/2172934.git
> branch.master.remote=origin
> branch.master.merge=refs/heads/master
> remote.upstream.url=git://gist.github.com/2158254.git
> remote.upstream.fetch=+refs/heads/*:refs/remotes/upstream/*
> 
> 
> # add new file
> hajaalin at biotek973:~/openmicroscopy/components/hyldap$ git add src/hyldap/HyHcNewUserGroupBean.java
> hajaalin at biotek973:~/openmicroscopy/components/hyldap$ git commit
> 
> # add changes
> hajaalin at biotek973:~/openmicroscopy/components/hyldap$ git add resources/ome/services/service-hyldap.xml
> hajaalin at biotek973:~/openmicroscopy/components/hyldap$ git commit
> 
> # status now
> hajaalin at biotek973:~/openmicroscopy/components/hyldap$ git status
> # On branch master
> # Your branch is ahead of 'origin/master' by 2 commits.
> #
> 
> 
> hajaalin at biotek973:~/openmicroscopy/components/hyldap$ git push origin master
> fatal: remote error:
>  You can't push to git://github.com/2172934.git
>  Use git at github.com:2172934.git
> 
> 
> hajaalin at biotek973:~/openmicroscopy/components/hyldap$ git remote set-url origin git at gist.github.com:2172934.git
> hajaalin at biotek973:~/openmicroscopy/components/hyldap$ git push origin master
> Counting objects: 18, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (7/7), done.
> Writing objects: 100% (11/11), 1.95 KiB, done.
> Total 11 (delta 3), reused 0 (delta 0)
> To git at gist.github.com:2172934.git
>   920cde7..02f0719  master -> master
> 
> 
> Can you now access the fork I've made?

Yup, looks fine.

> There was this in the logs:
> 2012-03-23 17:36:37,644 INFO  [        ome.services.util.ServiceHandler] (l.Server-5)  Excp:    ome.conditions.ApiUsageException: Can't find default group for hajaalin
> 
> So it seemed that the group was correctly created by the bean, but that was not enough, it should also be made default. How can I do that?

Most likely, this says that the user was not placed into any groups, other than perhaps the "user" group. Did any of your DEBUG logging get printed? Could you perhaps send us all of Blitz-0.log? Also, did the user get created and placed in at least the "user" group?

Cheers,
~Josh.




More information about the ome-users mailing list