cancel
Showing results for 
Search instead for 
Did you mean: 

Metadata inheritance does not work

rochy
Champ in-the-making
Champ in-the-making

Hi all, 

I am rather puzzled by a problem I am having with metadata inheritance when using content modeling. I had set-up the Smart Folder Tutorial three times and the inheritance of aspects worked perfect (i.e., documents I copied into folders inherited the apsects of the folder). 

Yesterday I wanted to start testing my own models but - changing nothing on the properties / conf on the server (at least  not as much as I remember) - metadata inheritance fails now. Even when freshly setting up the claims example documents copied to the folder do not inherit any metadata from their parent folder.

Interestingly enough that is happening on my test as well as on my development environment which I did not touch at all) - any idea.. ?

5 REPLIES 5

kaynezhang
World-Class Innovator
World-Class Innovator

Metadata model inheritance means features(property, association..) of the parent type are inherited, not means parent folder's features are inherited.
If you want to inheritance properties from parent folder, you can try to use action and rule.

douglascrp
World-Class Innovator
World-Class Innovator

kayne zhang‌ The metadata inheritance is talking about is related with the Smart Folders feature.

Check this out Metadata inheritance | Alfresco Documentation 

I haven't tested the inheritance function myself, but I saw it working once in a presentation.

It seems to be interesting.

kaynezhang
World-Class Innovator
World-Class Innovator

I'm sorry my mistake .I didn't read carefully

rochy
Champ in-the-making
Champ in-the-making

Douglas C. R. Paes‌, yes that is exactly what I mean; and I am suspecting now that a package upgrade/dist-upgrade on my Ubuntu 16.04 Server LTS broke the feature somehow - that is the only thing I have done to both servers. 

I am running Alfresco on Ubuntu 16.04 LTS Server, using the latest Loftuxab installer script, catalina.out doesn't show any issues and this server set-up:

Server version: Apache Tomcat/8.0.38
Server built: Oct 6 2016 20:51:55 UTC
Server number: 8.0.38.0
OS Name: Linux
OS Version: 4.4.0-53-generic
Architecture: amd64
Java Home: /usr/lib/jvm/java-8-oracle/jre
JVM Version: 1.8.0_111-b14
JVM Vendor: Oracle Corporation
CATALINA_BASE: /opt/alfresco/tomcat
CATALINA_HOME: /opt/alfresco/tomcat
Command line argument: -Djava.util.logging.config.file=/opt/alfresco/tomcat/conf/logging.properties
Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Command line argument: -Xms1G
Command line argument: -Xmx2G
Command line argument: -Xss1024k
Command line argument: -XX:+UseConcMarkSweepGC
Command line argument: -XX:+UseParNewGC
Command line argument: -Duser.country=US
Command line argument: -Duser.region=US
Command line argument: -Duser.language=en
Command line argument: -Duser.timezone=Europe/Stockholm
Command line argument: -Djava.security.egd=file:/dev/./urandom
Command line argument: -Djava.io.tmpdir=/opt/alfresco/tomcat/temp
Command line argument: -Dfile.encoding=UTF-8
Command line argument: -Dsun.jnu.encoding=UTF-8
Command line argument: -Dalfresco.home=/opt/alfresco
Command line argument: -Dcom.sun.management.jmxremote=true
Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
Command line argument: -Djava.endorsed.dirs=/opt/alfresco/tomcat/endorsed
Command line argument: -Dcatalina.base=/opt/alfresco/tomcat
Command line argument: -Dcatalina.home=/opt/alfresco/tomcat
Command line argument: -Djava.io.tmpdir=/opt/alfresco/tomcat/temp

The last apt-log file entry shows a few package upgrades (I suspect it is not the dist-upgrade which breaks the functionality, as my development server is running on a sliglty different kernel version): 

Start-Date: 2016-12-22 04:50:13
Commandline: /usr/bin/unattended-upgrade
Install: linux-image-4.4.0-57-generic:amd64 (4.4.0-57.78, automatic), linux-image-extra-4.4.0-57-generic:amd64 (4.4.0-57.78, automatic), linux-headers-4.4.0-57-generic:amd64 (4.4.0-57.78, automatic), linux-headers-4.4.0-57:amd64 (4.4.0-57.7$
Upgrade: linux-headers-generic:amd64 (4.4.0.53.56, 4.4.0.57.60), python-samba:amd64 (2:4.3.11+dfsg-0ubuntu0.16.04.1, 2:4.3.11+dfsg-0ubuntu0.16.04.3), linux-libc-dev:amd64 (4.4.0-53.74, 4.4.0-57.78), libwbclient0:amd64 (2:4.3.11+dfsg-0ubuntu$
End-Date: 2016-12-22 04:52:37

Start-Date: 2016-12-22 04:59:52
Commandline: apt-get upgrade
Requested-By: ubuntu (1000)
Upgrade: ifupdown:amd64 (0.8.10ubuntu1.1, 0.8.10ubuntu1.2), cloud-initramfs-dyn-netconf:amd64 (0.27ubuntu1.2, 0.27ubuntu1.3), open-iscsi:amd64 (2.0.873+git0.3b4b4500-14ubuntu3.2, 2.0.873+git0.3b4b4500-14ubuntu3.3), isc-dhcp-common:amd64 (4.$
End-Date: 2016-12-22 05:00:46

Would be great if somebody could point me at least to the packages which would influence alfresco.. 

Just for completeness the result of a uname -a on both development and test servers: 

Development: 

Linux v49478.1blu.de 4.4.0-042stab120.6 #1 SMP Thu Oct 27 16:59:03 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux

Test: 

Linux alf-test 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

douglascrp
World-Class Innovator
World-Class Innovator

I doubt the problem has been caused by the OS upgrade.

If that was a problem, then all Alfresco would stop working, and not only a function.