sivaprasad9394
Occasional Collector

What is the difference between release and release By Server?

Jump to solution

Hello,

What is the difference between Relase and Release by server in FS5.1?

Thank you.

ReleaseDifference.jpg

0 Kudos
11 Replies

Dear Peter,

Thanks for your mail.

I have attached the image state for your kind reference.Do you need some more information regarding this issue?

iMAGEsTATUS1.png

IMAGESsTATUS2.png

Sample FS-Server Log:

Below is the sample log for Another folder(same like above secnarios) and image with the Comment as "Released".

Folder Name:testing ID:5909814

Childeren:ecuador_9 ID:5909815

DEBUG 15.01.2015 15:38:56.932 (de.espirit.or.impl.LocalSessionHandler): 119429,

DEBUG 15.01.2015 15:39:26.573 (de.espirit.firstspirit.storage.XmlHandler): xml created (initial) (p=5744277, file=de.espirit.storage.backend.FileImpl@4a6dee{type=MEDIA_STORE_NODE_XML, id=590

9814, revision=1065133}) - new =MEDIANODE{id=5909814, editor=1, name=testing}'

DEBUG 15.01.2015 15:39:26.574 (de.espirit.firstspirit.storage.ChildrenHandler): children changed (p=5744277, file=de.espirit.storage.backend.FileImpl@47f1b4{type=MEDIA_STORE_NODE_CHILDS, id=

5747055, revision=1065133}) - new children size=44, oldChidren size=43

DEBUG 15.01.2015 15:39:26.574 (de.espirit.firstspirit.server.storemanagement.StoreImpl): insertElement project='5744277' id=5909814, parent=5747055, type=MEDIANODE, revision=1065133

DEBUG 15.01.2015 15:39:26.574 (de.espirit.firstspirit.store.access.DefaultStoreElement): refresh 5747055, local revision 1065127, dto revision 1065133

DEBUG 15.01.2015 15:39:26.575 (de.espirit.firstspirit.store.access.DefaultStoreElement): refresh 5909814, local revision 1065133, dto revision 1065133

DEBUG 15.01.2015 15:39:26.623 (de.espirit.firstspirit.storage.XmlHandler): xml created (initial) (p=5744277, file=de.espirit.storage.backend.FileImpl@4a6dec{type=MEDIA_STORE_NODE_XML, id=590

9815, revision=1065134}) - new =MEDIUM{id=5909815, editor=1, filename=ecuador, type=pic, uniquedescription=ecuador_9}'

DEBUG 15.01.2015 15:39:26.623 (de.espirit.firstspirit.storage.ChildrenHandler): children changed (p=5744277, file=de.espirit.storage.backend.FileImpl@4a6dee{type=MEDIA_STORE_NODE_CHILDS, id=

5909814, revision=1065134}) - new children size=1, oldChidren size=0

DEBUG 15.01.2015 15:39:26.624 (de.espirit.firstspirit.server.storemanagement.StoreImpl): insertElement project='5744277' id=5909815, parent=5909814, type=MEDIUM, revision=1065134

DEBUG 15.01.2015 15:39:26.624 (de.espirit.firstspirit.store.access.DefaultStoreElement): refresh 5909814, local revision 1065133, dto revision 1065134

DEBUG 15.01.2015 15:39:26.624 (de.espirit.firstspirit.store.access.DefaultStoreElement): refresh 5909815, local revision 1065134, dto revision 1065134

DEBUG 15.01.2015 15:39:26.715 (de.espirit.firstspirit.server.mediamanagement.ProjectMediaCache): create preview image for id 5909815...

DEBUG 15.01.2015 15:39:26.761 (de.espirit.firstspirit.storage.DataXmlHandler): checking xml changes for (p=5744277, file=de.espirit.storage.backend.FileImpl@4a6df7{type=META_XML, id=5909815,

revision=1065136})

DEBUG 15.01.2015 15:39:26.762 (de.espirit.firstspirit.storage.DataXmlHandler): xml created (initial) (p=5744277, file=de.espirit.storage.backend.FileImpl@4a6df7{type=META_XML, id=5909815, re

vision=1065136}) - new xml=<TEMPLATEC'

DEBUG 15.01.2015 15:39:26.777 (de.espirit.firstspirit.server.mediamanagement.ProjectMediaCache): create preview image for id 5909815: done.

DEBUG 15.01.2015 15:39:26.793 (de.espirit.firstspirit.storage.XmlHandler): xml changed (p=5744277, file=de.espirit.storage.backend.FileImpl@4a6df2{type=MEDIA_STORE_NODE_XML, id=5909815, revi

sion=1065136}) - new =MEDIUM{id=5909815, editor=1, filename=ecuador, type=pic, uniquedescription=ecuador_9}'

DEBUG 15.01.2015 15:39:26.794 (de.espirit.firstspirit.store.access.DefaultStoreElement): refresh 5909815, local revision 1065134, dto revision 1065136

DEBUG 15.01.2015 15:39:26.798 (de.espirit.firstspirit.server.storemanagement.StoreImpl): releasing [project=5744277, element=5909815, revision=1065137]

DEBUG 15.01.2015 15:39:26.798 (de.espirit.firstspirit.storage.ChildrenHandler): children changed (p=5744277, file=de.espirit.storage.backend.FileImpl@4a6d4f{type=MEDIA_STORE_NODE_RELEASE_CHI

LDS, id=5909814, revision=1065137}) - new children size=1, oldChidren size=0

DEBUG 15.01.2015 15:39:26.799 (de.espirit.firstspirit.storage.XmlHandler): xml changed (p=5744277, file=de.espirit.storage.backend.FileImpl@4a6df3{type=MEDIA_STORE_NODE_XML, id=5909815, revi

sion=1065137}) - new =MEDIUM{id=5909815, editor=1, releasedby=1, filename=ecuador, releaseRevision=1065137, type=pic, uniquedescription=ecuador_9}'

DEBUG 15.01.2015 15:39:26.799 (de.espirit.firstspirit.server.storemanagement.StoreImpl): releaseElement project='5744277' id=5909815, revision=1065137

DEBUG 15.01.2015 15:39:26.799 (de.espirit.firstspirit.store.access.DefaultStoreElement): refresh 5909815, local revision 1065136, dto revision 1065137

DEBUG 15.01.2015 15:39:26.800 (de.espirit.firstspirit.server.reference.ReferenceManagerImpl): element not found: prj=5744277, store=MEDIASTORE/R, id=5909815, rev=1065137

DEBUG 15.01.2015 15:39:26.808 (de.espirit.firstspirit.storage.XmlHandler): xml changed (p=5744277, file=de.espirit.storage.backend.FileImpl@4a6df0{type=MEDIA_STORE_NODE_XML, id=5909815, revi

sion=1065138}) - new =MEDIUM{id=5909815, editor=1, filename=ecuador, releaseRevision=1065137, type=pic, uniquedescription=ecuador_9}'

DEBUG 15.01.2015 15:39:26.808 (de.espirit.firstspirit.store.access.DefaultStoreElement): refresh 5909815, local revision 1065137, dto revision 1065138

INFO  15.01.2015 15:39:48.206 (de.espirit.firstspirit.registry.RegistryManagerImpl): Registry open: /opt/wcms/fs/data/projects/project_5744277/registry

DEBUG 15.01.2015 15:39:48.432 (de.espirit.storage.backend.BerkeleyCleaner): Starting bdb cleaner for /project_5744277/registry

Will the system do the Server Release if i use AccessAPI instead of just release or save.???

As per the Below code if the folder is not released then only it has to release the folder and the image.

private void releaseMedia(Media media) {

        try {

        Logging.logDebug("postProcess for Media executed.", LOGGER);

       // media.save("Media saved");

        //media.release();

        //Modified due to ContentCreator Media upload and folder release once(First time) in the store.

       // AccessUtil.release((IDProvider)media ,false ,true , false ,IDProvider.DependentReleaseType.NO_DEPENDENT_RELEASE);        

        //sii1cob added below code   

        //get Parent MediaNode from Media uploaded       

        IDProvider  elementParent = (IDProvider)media.getParent();   

        //get the release status of the parent node

        int releaseStatus = elementParent.getReleaseStatus();       

        Logging.logInfo("MediaFolderName" + elementParent.getUid() , LOGGER);

        Logging.logInfo("releaseStatusMedia" + releaseStatus , LOGGER);

        Logging.logInfo("IDProvider.NEVER_RELEASED" + IDProvider.NEVER_RELEASED , LOGGER);

        Logging.logInfo("IDProvider.RELEASED" + IDProvider.RELEASED , LOGGER);

            if (releaseStatus == IDProvider.NEVER_RELEASED) {

                Logging.logInfo("elementParent \"" + elementParent.getUid()

                        + "\" has not been released yet, so not released now!", LOGGER);               

                AccessUtil.release(elementParent, false, true, false, IDProvider.DependentReleaseType.NO_DEPENDENT_RELEASE);

               AccessUtil.release((IDProvider)media ,false ,true , false ,IDProvider.DependentReleaseType.NO_DEPENDENT_RELEASE); 

            }

        } catch(Exception e) {

            Logging.logError("An unexpected Exception occurred", e, LOGGER);

        }

    }

Case 1:

I have tested the build in the Release version of Server version: 5.1.313.65382

When i set up the local debug in my eclipse after deploying the fsm module  and restarted all the services.Here loop is keep on jumping here and there not to the exact starting point of the debug point.Looks like even after restarting the Tomcat server and fsm module deployment and restart of all the services in the Configuration also nothing helps.

Case 2:

I have tested the build in the Release version of Server version: 5.1.214.66047

After deploying the fam module ,using Content Creator i have created new folder with adding image and clicked Apply button.After that when i am checking inside the Site Architect there is not comment for the folder like "Release by server" in the Version History.

FolderCreation.jpg

AfterAddingimage.jpg

I am not mentioning that Core API Release method is changed.Some thing like Module deployement.If we use Accessutil class for release means it is Server side release of the component.

Is it FirstSpirit bug?For me looks like that...

Thank you.

0 Kudos

Dear Peter,

Thanks for your mail.

We have created a e-spirit ticket for the problem and closing the community ticket.

Regards,

Siva