You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Alex Karasulu <ak...@apache.org> on 2010/09/17 05:01:38 UTC
[Studio] Auto reloading schema (WAS: Re: [ApacheDS] Cannot enable
custom schema such as mozilla schema)
On Thu, Sep 16, 2010 at 9:50 AM, Kiran Ayyagari <ka...@apache.org>wrote:
> On Thu, Sep 16, 2010 at 12:14 PM, <mc...@gmail.com> wrote:
> > Aha! That worked when I copied the connection object in Studio. But the
> > original one still doesn't work. Is this some sort of client-side caching
> > problem in Eclipse?
> yes, that is why I said 'can you try reloading the schema' , well I
> wasn't explicit there
> assuming that you already know studio well.
> here it is how to do
> goto the connection's properties then exapnd the 'connection' node
> present in the left hand
> side pane then select 'schema' and finally click on 'Reload Schema' button
>
> alternatively you can also reload schema by clicking the 'refresh
> icon' present next to the
> objectClass selector in the create new entry wizard
>
>
Just a random thought I had while reading this thread in the background. It
might be nice to have Studio check the timestamp on the ou=schema entry to
see if it was modified since the last load.
If a schema entity changes the container above it has it's modifiedTimestamp
altered to reflect the time of the change and this bubbles up. This is how I
had implemented it in the past. Don't know if this still holds but it would
be easy to check. Also somewhere we store the timestamp in a special entry
when the last schema change occurred.
If you wanted to get fancy we can load just the changes that occurred or
even PSearch the schema area and react to the change.
None of this is critical do or die stuff but I wanted to brain dump the idea
out there.
--
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org
To set up a meeting with me: http://tungle.me/AlexKarasulu
Re: [Studio] Auto reloading schema (WAS: Re: [ApacheDS] Cannot enable
custom schema such as mozilla schema)
Posted by Kiran Ayyagari <ka...@apache.org>.
On Fri, Sep 17, 2010 at 8:31 AM, Alex Karasulu <ak...@apache.org> wrote:
> On Thu, Sep 16, 2010 at 9:50 AM, Kiran Ayyagari <ka...@apache.org>wrote:
>
>> On Thu, Sep 16, 2010 at 12:14 PM, <mc...@gmail.com> wrote:
>> > Aha! That worked when I copied the connection object in Studio. But the
>> > original one still doesn't work. Is this some sort of client-side caching
>> > problem in Eclipse?
>> yes, that is why I said 'can you try reloading the schema' , well I
>> wasn't explicit there
>> assuming that you already know studio well.
>> here it is how to do
>> goto the connection's properties then exapnd the 'connection' node
>> present in the left hand
>> side pane then select 'schema' and finally click on 'Reload Schema' button
>>
>> alternatively you can also reload schema by clicking the 'refresh
>> icon' present next to the
>> objectClass selector in the create new entry wizard
>>
>>
> Just a random thought I had while reading this thread in the background. It
> might be nice to have Studio check the timestamp on the ou=schema entry to
> see if it was modified since the last load.
>
> If a schema entity changes the container above it has it's modifiedTimestamp
> altered to reflect the time of the change and this bubbles up. This is how I
> had implemented it in the past. Don't know if this still holds but it would
> be easy to check. Also somewhere we store the timestamp in a special entry
> when the last schema change occurred.
ok, I saw this entry and wondered why this exists, now I understand.
There is an issue with this entry being present under the ou=schema cause it
gets in our way while reading by a schema loader (e.x NetworkSchemaLoader)
which assumes that all the elements under ou=schema at ONE level scope are
schema containers, so I would second the idea of having a last modified time
in ou=schema entry.
Having said this note that studio is a generic tool, the above said
works only when you
connected to ApacheDS
>
> If you wanted to get fancy we can load just the changes that occurred or
> even PSearch the schema area and react to the change.
this could be set as an option in studio but is again, I think,
specific to ApacheDS
>
> None of this is critical do or die stuff but I wanted to brain dump the idea
> out there.
>
> --
> Alex Karasulu
> My Blog :: http://www.jroller.com/akarasulu/
> Apache Directory Server :: http://directory.apache.org
> Apache MINA :: http://mina.apache.org
> To set up a meeting with me: http://tungle.me/AlexKarasulu
>
--
Kiran Ayyagari
Re: [Studio] Auto reloading schema (WAS: Re: [ApacheDS] Cannot enable
custom schema such as mozilla schema)
Posted by mc...@gmail.com.
Personally I think that is a very logical idea. And would save people
(like me) being bitten on the bum by this!
> Just a random thought I had while reading this thread in the background. It
> might be nice to have Studio check the timestamp on the ou=schema entry to
> see if it was modified since the last load.
>
> If a schema entity changes the container above it has it's modifiedTimestamp
> altered to reflect the time of the change and this bubbles up. This is how I
> had implemented it in the past. Don't know if this still holds but it would
> be easy to check. Also somewhere we store the timestamp in a special entry
> when the last schema change occurred.
>
> If you wanted to get fancy we can load just the changes that occurred or
> even PSearch the schema area and react to the change.
>
> None of this is critical do or die stuff but I wanted to brain dump the idea
> out there.
>
Re: [Studio] Auto reloading schema (WAS: Re: [ApacheDS] Cannot enable
custom schema such as mozilla schema)
Posted by Emmanuel Lecharny <el...@apache.org>.
On Fri, Sep 17, 2010 at 8:31 AM, Stefan Seelmann <se...@apache.org>wrote:
> On Fri, Sep 17, 2010 at 5:01 AM, Alex Karasulu <ak...@apache.org>
> wrote:
> > Just a random thought I had while reading this thread in the background.
> It
> > might be nice to have Studio check the timestamp on the ou=schema entry
> to
> > see if it was modified since the last load.
>
> Studio checks the modifyTimestamp of the subschemaSubentry whenever
> the connection is opened, in case of ApacheDS that is cn=schema. I
> just tested with ApacheDS 1.5.7 and Studio 1.5.3, but unfortunately
> the modifyTimestamp isn't updated.
That's clearly a bug, then. That ean the change is not propagated to the top
level entry when any schema element is modified. This has to be checked, and
a test added (or as Stefan mentionned, if the test existed before, to be
checked too).
At this point, for this issue, a JIRA can help.
> Also the schemamodifytimestamp of
> cn=schemaModifications,ou=schema isn't updated. We had that issue
> before and I'm sure I wrote an integration test for ApacheDS in the
> past, to be checked...
>
> > If a schema entity changes the container above it has it's
> modifiedTimestamp
> > altered to reflect the time of the change and this bubbles up. This is
> how I
> > had implemented it in the past. Don't know if this still holds but it
> would
> > be easy to check. Also somewhere we store the timestamp in a special
> entry
> > when the last schema change occurred.
> >
> > If you wanted to get fancy we can load just the changes that occurred or
> > even PSearch the schema area and react to the change.
>
> Yes, using PSearch is also an option. However I'd prefer to monitor
> the subschemaSubentry, because that would be a generic way and should
> work with all directory servers.
>
+1. Bur we can have both options. It would be very cool if we can have the
browser being updated everytime the schema is modified, of course as an
option (so that we still have the generic solution working for servers that
does not support PSerarch)
>
> > None of this is critical do or die stuff but I wanted to brain dump the
> idea
> > out there.
>
> Thanks Alex for your thoughts.
>
Valuable brain dump, indeed !
I'm afraid that we are a bit too knees deep into refactoring to take care of
those small issues that affect our users... Not a critic, just a fact :/
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: [Studio] Auto reloading schema (WAS: Re: [ApacheDS] Cannot enable
custom schema such as mozilla schema)
Posted by Stefan Seelmann <se...@apache.org>.
On Fri, Sep 17, 2010 at 5:01 AM, Alex Karasulu <ak...@apache.org> wrote:
> Just a random thought I had while reading this thread in the background. It
> might be nice to have Studio check the timestamp on the ou=schema entry to
> see if it was modified since the last load.
Studio checks the modifyTimestamp of the subschemaSubentry whenever
the connection is opened, in case of ApacheDS that is cn=schema. I
just tested with ApacheDS 1.5.7 and Studio 1.5.3, but unfortunately
the modifyTimestamp isn't updated. Also the schemamodifytimestamp of
cn=schemaModifications,ou=schema isn't updated. We had that issue
before and I'm sure I wrote an integration test for ApacheDS in the
past, to be checked...
> If a schema entity changes the container above it has it's modifiedTimestamp
> altered to reflect the time of the change and this bubbles up. This is how I
> had implemented it in the past. Don't know if this still holds but it would
> be easy to check. Also somewhere we store the timestamp in a special entry
> when the last schema change occurred.
>
> If you wanted to get fancy we can load just the changes that occurred or
> even PSearch the schema area and react to the change.
Yes, using PSearch is also an option. However I'd prefer to monitor
the subschemaSubentry, because that would be a generic way and should
work with all directory servers.
> None of this is critical do or die stuff but I wanted to brain dump the idea
> out there.
Thanks Alex for your thoughts.
Kind Regards,
Stefan