Alfresco discussion and collaboration. Stick around a few hours after asking a question.
Official support for Enterprise subscribers: support.alfresco.com.
Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.
More information about the channel is in the wiki.
More help is available in this list of resources.
2017-04-10 07:04:01 GMT <yreg> Good morning !
2017-04-10 07:07:44 GMT <digcat> morning yreg
2017-04-10 08:52:50 GMT <Modestas> Hello Guys
2017-04-10 08:52:56 GMT <Modestas> AFaust: are you herE?
2017-04-10 08:53:18 GMT <AFaust> I just connected, so yes, I am herE...
2017-04-10 08:53:52 GMT <Modestas> AFaust: I have a client which has a posgresql db in size of 1TB
2017-04-10 08:54:57 GMT <Modestas> is there a way to reduce posgresql space
2017-04-10 08:55:31 GMT <Modestas> talking about alfresco
2017-04-10 08:55:32 GMT <AFaust> It depends - is there any data in the DB that is not really used anymore? E.g. what about unused audit data in the alf_prop_* tables?
2017-04-10 08:55:45 GMT <AFaust> Or nodes in the archive workspace?
2017-04-10 08:55:53 GMT <AFaust> Or too many versions in the version workspace?
2017-04-10 08:56:52 GMT <AFaust> I mean, if you have a lot of nodes + properties, you inevitable will have a large DB and can only do significant data reductions to decrease its size...
2017-04-10 08:56:56 GMT <Modestas> please give more detailed information about what about unused audit data in the alf_prop_* tables?
2017-04-10 08:57:30 GMT <Modestas> please give more detailed information about "what about unused audit data in the alf_prop_* tables?"
2017-04-10 08:57:30 GMT <AFaust> Before that, please give me/us some information about how large your tables are...
2017-04-10 08:57:52 GMT <Modestas> how can I check this?
2017-04-10 08:58:11 GMT <AFaust> See https://wiki.postgresql.org/wiki/Index_Maintenance#Index_size.2Fusage_statistics for a SQL to view index and table sizes...
2017-04-10 08:58:12 GMT <alfbot> Title: Index Maintenance - PostgreSQL wiki (at wiki.postgresql.org)
2017-04-10 09:07:43 GMT <yreg> AFaust, Do you know ZNC ?
2017-04-10 09:08:11 GMT <yreg> as in http://wiki.znc.in/ZNC
2017-04-10 09:08:12 GMT <alfbot> Title: ZNC (at wiki.znc.in)
2017-04-10 09:10:04 GMT <AFaust> yreg: I haven't dealt yet with IRC servers/bouncers...
2017-04-10 09:31:47 GMT <yreg> sounds useful especially with crappy connections
2017-04-10 09:56:12 GMT <fwu> hi all!
2017-04-10 10:21:48 GMT <syed_> Hi I am designing a workflow using activiti kickstart and added the people selection form element. I want an email to be triggered to all the pupil selected.
2017-04-10 10:22:39 GMT <syed_> I could able to send mail to group or an individual but cannot email to multiple users
2017-04-10 10:23:07 GMT <syed_> someone please help
2017-04-10 10:42:10 GMT <fcorti> Hi syed_, I suggest you to raise a question here: https://community.alfresco.com/community/bpm
2017-04-10 10:42:13 GMT <alfbot> Title: Alfresco BPM | Alfresco Community (at community.alfresco.com)
2017-04-10 10:42:22 GMT <fcorti> You probably know it already
2017-04-10 10:42:43 GMT <fcorti> but most of the questions are answered in short
2017-04-10 10:42:56 GMT <fcorti> of course, if here someone else won't reply faster ;à)
2017-04-10 10:46:24 GMT <syed_> Thank you. I have used to_many to send it to defined set of users but I want get the users from the selection and send them mail.
2017-04-10 10:48:27 GMT <twen> hola
2017-04-10 10:48:31 GMT <twen> :)
2017-04-10 10:50:05 GMT <qwebirc67341> Hello, anybody there?
2017-04-10 10:50:58 GMT <twen> that was fast... 45 sec
2017-04-10 11:15:55 GMT <Modestas> AFaust: table sizes: https://pastebin.com/CaxnVuSH
2017-04-10 11:15:56 GMT <alfbot> Title: tablename | indexname | num_row - Pastebin.com (at pastebin.com)
2017-04-10 11:19:08 GMT <AFaust> Wow - you seem to have very few aspects...
2017-04-10 11:20:35 GMT <Modestas> so next step would be?
2017-04-10 11:20:39 GMT <AFaust> Summing up all the sizes your Alfresco database only has <= 500 GiB - far from the 1 TiB you mentioned earlier
2017-04-10 11:21:19 GMT <Modestas> I think that other ±500GB will be in contentStore
2017-04-10 11:21:22 GMT <AFaust> There is little to no data in alf_audit*/alf_prop_* tables
2017-04-10 11:21:40 GMT <AFaust> The content store does not count when we are talking about DB size...
2017-04-10 11:21:55 GMT <AFaust> Because depending on what types of files you have it can be an extreme difference.
2017-04-10 11:22:21 GMT <AFaust> E.g. 500 GiB for a 500 GiB database is way to little. I would expect several TiB worth of content in the content store...
2017-04-10 11:22:28 GMT <AFaust> if those were normal documents
2017-04-10 11:23:14 GMT <Modestas> so you say that those numbers are good?
2017-04-10 11:23:18 GMT <fwu> ppl, is it possible to make a left menu item in the admin console to open a new alfresco page (for instance the data list page of a site)?
2017-04-10 11:23:23 GMT <AFaust> You have ~ 150 million nodes
2017-04-10 11:23:39 GMT <fwu> i already add a new item using a web script, but the url parameter doesnt work for this
2017-04-10 11:23:58 GMT <AFaust> if each is on average just 100 KiB large, it would result in 15 TiB
2017-04-10 11:25:13 GMT <Modestas> not all Nodes are large some are quite small
2017-04-10 11:25:13 GMT <AFaust> fwu: You can add additional tools in the Admin Console by implementing web scripts in proper paths / using name convention. Look at OOTBee Support Tools addon for examples
2017-04-10 11:25:29 GMT <Modestas> but some may be in size of mb also
2017-04-10 11:25:34 GMT <AFaust> Modestas: I meant if they were "real" / "typical" documents...
2017-04-10 11:25:51 GMT <AFaust> I know a lot of your content items are just small JSONs...
2017-04-10 11:26:13 GMT <Modestas> it is good to know that you did not forget :)
2017-04-10 11:26:21 GMT <fwu> AFaust, but with a webscript I was able to add a new item to the menu. However, I dont know how to open a new page in it.
2017-04-10 11:26:38 GMT <AFaust> Modestas: Did you select a count of alf_node entries grouped by the store_id? That would give you the number of items in the archive store...
2017-04-10 11:26:46 GMT <fwu> i set the url in the url tag but Alfresco will try to open it at the right side of the page
2017-04-10 11:27:13 GMT <fwu> i want to open a new page instead of the admin-console page. So I want a simple link in it
2017-04-10 11:27:41 GMT <AFaust> fwu: That is not possible - that is what the navigation menu is for.
2017-04-10 11:28:04 GMT <fwu> what navigation menu? in the header?
2017-04-10 11:28:08 GMT <AFaust> Correct
2017-04-10 11:28:34 GMT <fwu> hmm.. add an item to the admin menu.Well it is a possibility, indeed
2017-04-10 11:28:50 GMT <AFaust> I have one custom who has customised the header to have direct links to the support tools (instead of having to open the tools and then select it), and also added custom, external pages (i.e. load balancer manager page)
2017-04-10 11:29:31 GMT <fwu> ok AFaust. I believe I will do that also.
2017-04-10 11:29:33 GMT <fwu> thank you ;)
2017-04-10 11:30:24 GMT <Modestas> AFaust: index summary https://pastebin.com/baQ03rtX
2017-04-10 11:30:25 GMT <alfbot> Title: relname | rows_in_bytes | num_rows | number_of_indexes | - Pastebin.com (at pastebin.com)
2017-04-10 11:56:27 GMT <Modestas> AFaust: I am trying to write query to count archive alf_node but.. I feel that I do not understand what you meant "Did you select a count of alf_node entries grouped by the store_id? That would give you the number of items in the archive store..." here
2017-04-10 11:56:34 GMT <Modestas> SELECT store_id, count(store_id) FROM alf_node GROUP BY store_id;; store_id | count
2017-04-10 11:56:57 GMT <Modestas> I can group by "id | version | store_id | uuid | transaction_id | type_qname_id | locale_id | acl_id | audit_creator | audit_created | audit_modifier | audit_modified | audit_accessed"
2017-04-10 11:57:27 GMT <Modestas> but no archive
2017-04-10 11:57:49 GMT <AFaust> One of the store_id values referes to the entry in alf_store that stands for the archive store.
2017-04-10 12:00:23 GMT <venkat_> Hi every one
2017-04-10 12:01:58 GMT <venkat_> I have some issue in alfresco 5,2 d while sending the request with soap ui Im getting Mtom not enabled exception for getting repository details
2017-04-10 12:02:37 GMT <fwu> ppl, anyone ever did text extract /recognition in Alfresco. Is there any help/support to do somehting like this: take the text of a identity card image?
2017-04-10 12:04:32 GMT <yreg> fwu there is few projects for integration with tessaract / google vision API out there
2017-04-10 12:04:57 GMT <yreg> venkat_, What soap ?
2017-04-10 12:05:06 GMT <Modestas> AFaust: If you have few minutes please help me with query..
2017-04-10 12:05:11 GMT <yreg> haven't that got removed a long time ago ?
2017-04-10 12:05:30 GMT <yreg> venkat_, are you working on some integration with some scanner ?
2017-04-10 12:05:44 GMT <AFaust> Modestas: SELECT store_id, count(*) FROM alf_node GROUP BY store_id; -- is simple and sufficient
2017-04-10 12:05:48 GMT <venkat_> soap is used for testing webservice binding request
2017-04-10 12:05:57 GMT <venkat_> ya
2017-04-10 12:06:36 GMT <AFaust> yreg: Well, we still have CMIS SOAP via Chemistry...
2017-04-10 12:07:24 GMT <fwu> yreg, doesnt Alfresco comes with an ocr engine already?
2017-04-10 12:07:41 GMT <yreg> fwu, not that I am aware of !
2017-04-10 12:07:51 GMT <venkat_> ok
2017-04-10 12:07:56 GMT <Modestas> if I run this on my test db
2017-04-10 12:08:17 GMT <venkat_> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>Fault occurred while processing.</faultstring> <detail> <cmisFault xmlns:ns2="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/"> <type>runtime</type> <c
2017-04-10 12:08:22 GMT <yreg> AFaust, But there is no link for that in /alfresco main page
2017-04-10 12:08:22 GMT <fwu> ok, then it is just a text extractor
2017-04-10 12:08:35 GMT <yreg> there is links for atom & browser bindings
2017-04-10 12:08:43 GMT <Modestas> I still cant map with archive https://pastebin.com/V7dLnRff
2017-04-10 12:08:44 GMT <fwu> used for search
2017-04-10 12:08:44 GMT <alfbot> Title: alfresco=> SELECT store_id, count(*) FROM alf_node GROUP BY store_id; ; - Pastebin.com (at pastebin.com)
2017-04-10 12:08:58 GMT <Modestas> please note that this is test db
2017-04-10 12:09:30 GMT <AFaust> yreg: Surprise - just because Alfresco does not publish / document something does not mean it isn't there... Come on, you know that ;-)
2017-04-10 12:10:01 GMT <yreg> hehe, true
2017-04-10 12:11:07 GMT <AFaust> Modestas: SImply take a look at alf_store table and you should be able to mentally map the 6 IDs to its entries.
2017-04-10 12:11:46 GMT <AFaust> So in that test DB you have ~1000 items in version store and only 34 in the archive store
2017-04-10 12:12:30 GMT <AFaust> (Note: due to the standard initialisation order, the IDs for the first 6 stores are the same for almost every Alfresco instance)
2017-04-10 12:14:00 GMT <venkat_> can any one sended the mtom request in soap ui for getting repository info in alfresco
2017-04-10 12:15:11 GMT <AFaust> I don't know anybody that still uses atom...
2017-04-10 12:19:31 GMT <Modestas> AFaust: thank you!. understood. also read this: https://blog.dbi-services.com/alfresco-some-useful-database-queries/
2017-04-10 12:19:33 GMT <alfbot> Title: Alfresco: some useful database queries - Blog dbi services (at blog.dbi-services.com)
2017-04-10 12:33:38 GMT <fwu_> back
2017-04-10 13:43:36 GMT <Modestas> AFaust: what does it say to you: https://pastebin.com/JcnWU1B3
2017-04-10 13:43:37 GMT <alfbot> Title: alfresco=> SELECT store_id, count(*) FROM alf_node GROUP BY store_id; store_id - Pastebin.com (at pastebin.com)
2017-04-10 13:44:45 GMT <AFaust> You (almost) only have "live" nodes.... so no option to remove "unused" data
2017-04-10 13:45:16 GMT <AFaust> What is the reason that you want to reduce the DB size anyway?
2017-04-10 13:45:34 GMT <AFaust> Just "in general" or some issue that you think would be helped by this?
2017-04-10 13:51:42 GMT <Modestas> user says that 3 months alfresco runs very good, daily publishing works everything is perfect.. after 3 months alfresco stops working
2017-04-10 13:51:50 GMT <Modestas> everything is lagging
2017-04-10 13:52:20 GMT <Modestas> indexing is not working any more.. postgreSQL and contentStore folders size increases dramatically
2017-04-10 13:53:58 GMT <yreg> Modestas, could it be a faulty logic (rule/ policy / ...) creating large amount of data ?
2017-04-10 13:54:26 GMT <yreg> I wouldn't expect a normal test environment to produce 90+M nodes in 3 months
2017-04-10 13:55:13 GMT <yreg> unless that's one of the points being evaluated/tested
2017-04-10 13:55:32 GMT <Modestas> yreg: in our case uml model contains about 300 000 elements. this produces about 900 000 of NodeRef
2017-04-10 13:55:52 GMT <Modestas> and it depends on uml project size
2017-04-10 13:56:01 GMT <Modestas> we have big client with big models
2017-04-10 13:56:36 GMT <Modestas> and NodeRef (alfresco) is used to review model on the web
2017-04-10 13:57:30 GMT <AFaust> yreg: I also believe the 90+M nodes is not from the test environment - Modestas provided a different query result for that earlier
2017-04-10 13:58:12 GMT <Modestas> 90+M is from real production server
2017-04-10 13:58:21 GMT <Modestas> which stopped working few days ago..
2017-04-10 13:58:29 GMT <AFaust> Modestas: As I always ask - what were your performance analysis tasks + results that have led you to believe the size of the DB is an issue?
2017-04-10 13:58:51 GMT <AFaust> What operations were lagging? What queries were affected?
2017-04-10 13:59:27 GMT <AFaust> What did the query plans reveal?
2017-04-10 13:59:38 GMT <Modestas> user says that contentStore and postgreSQL folders size is too big
2017-04-10 14:00:01 GMT <AFaust> Ok, then why do THEY think that is the case?
2017-04-10 14:00:16 GMT <AFaust> I mean, they have 90+M nodes.... what do they expect it to be?
2017-04-10 14:00:22 GMT <Modestas> the size of db in some cases might require same size of free space to
2017-04-10 14:00:25 GMT <Modestas> do the operation
2017-04-10 14:00:48 GMT <Modestas> in that case alfresco will fail
2017-04-10 14:01:20 GMT <AFaust> Not really correct. DB typically allocates resources incrementally - not in big chunks.
2017-04-10 14:01:44 GMT <AFaust> Only if you do some external copy / dump / backup will you need the same amount of free space
2017-04-10 14:01:47 GMT <praisethemoon> happy birthday yreg \o/
2017-04-10 14:02:25 GMT * AFaust asks yreg why he is just reading about that birthday business now...
2017-04-10 14:04:30 GMT <AFaust> Modestas: I currently have a customer on PostgreSQL with ~100 million nodes and a DB twice the size what your query results have shown. And it is a perfectly ok size for the use case...
2017-04-10 14:04:55 GMT <Modestas> AFaust: what kind of hardware your user is using?
2017-04-10 14:05:02 GMT <AFaust> Good hardware
2017-04-10 14:05:21 GMT <AFaust> I actually don't know the underlying hardware since it is running in a virtualised environment.
2017-04-10 14:05:22 GMT <Modestas> 260gb ram 1tb hdd... ?
2017-04-10 14:06:23 GMT <Modestas> just a raw idea.. would dump and restore reduce the space needed for db?
2017-04-10 14:06:42 GMT <AFaust> Only marginally, depending on fragmentation.
2017-04-10 14:07:04 GMT <AFaust> Again, the space needed is perfectly reasonable.
2017-04-10 14:07:16 GMT <AFaust> You are very likely wasting your time focussing on that aspect.
2017-04-10 14:07:58 GMT <AFaust> Unless you can somehow change your UML model processing in such a way that you can eliminate a lot of these NodeRefs...
2017-04-10 14:12:14 GMT <AFaust> e.g. do the math: with < 500 GiB and 90+M nodes, you are using ~5.900 bytes per node on average. Now the 500 GiB value is just a very rough sum estimate that I came up with in my head going through your size output. That includes all the data (e.g. long string values, potentially in multi-byte unicode), support indices and potential fragmentation...
2017-04-10 14:14:42 GMT <AFaust> Now, unfortunately PostgreSQL does not appear to provide table compression. In MySQL / MariaDB you would be able to use an optional table storage format that supports compression of index, values and/or both.
2017-04-10 14:15:15 GMT <Modestas> We will try to do dump/import
2017-04-10 14:15:18 GMT <AFaust> If you have a lot of similar values, that might help to decrease the size on disk...
2017-04-10 14:15:39 GMT <Modestas> user was doing nightly updates so I think that this might have same fragmentation problems
2017-04-10 14:16:06 GMT <AFaust> Modestas: As I have said in the past - do some SQL query monitoring before jumping to conclusions and premature activities...
2017-04-10 14:16:55 GMT <yreg> praisethemoon, Thank you Soulaymen !
2017-04-10 14:17:07 GMT <Modestas> for today thats all.. tomorrow I think that I will have more information
2017-04-10 14:17:09 GMT <praisethemoon> <3 ^^
2017-04-10 14:17:16 GMT <yreg> AFaust, I do not know, didn't Skype tell you about it ?
2017-04-10 14:17:36 GMT <Modestas> AFaust: if you could say how to analyze and indicate problematical places would be good
2017-04-10 14:17:38 GMT <AFaust> Nope - at least not today it didn't..
2017-04-10 14:18:22 GMT <praisethemoon> yreg, skype didn't tell me :( that's mean
2017-04-10 14:18:33 GMT <praisethemoon> it was linkedin xDD
2017-04-10 14:19:52 GMT <alfbot> resplin: Sent 1 day, 2 hours, and 40 minutes ago: <digcat_> hope all well with you, just a quick query re the mobile client any sign of the android sdk being pushed to maven ? https://mvnrepository.com/artifact/org.alfresco.mobile.android.sdk/alfresco-mobile-android-sdk
2017-04-10 14:20:16 GMT <AFaust> Modestas: Start with basic monitoring of long running queries. pg_stats should be helpful here, which you can enhance with a variety of tools, e.g. http://dalibo.github.io/powa/
2017-04-10 14:20:17 GMT <alfbot> Title: PoWA (at dalibo.github.io)
2017-04-10 14:20:37 GMT <AFaust> Alternatively, you can always do low-level JDBC query logging (for slow queries) via P6Spy
2017-04-10 14:20:43 GMT <AFaust> or alternative tools
2017-04-10 14:20:57 GMT <resplin> digcat: Sorry, I don't know anything about the plans for the Android SDK. If you ask the question at community.alfresco.com, I can prompt someone to answer it.
2017-04-10 14:21:18 GMT <AFaust> Then again there are JVM monitoring tools too (e.g. to exclude the possibility that the performance issue is on the Repository-tier, not the DB)
2017-04-10 14:21:33 GMT <resplin> digcat: Though the main person who would know the answer started a 2 week vacation today.
2017-04-10 14:22:27 GMT <AFaust> jvisualvm if you want something that comes with Java out-of-the-box, JProfiler / YourKit or even DynaTrace if you want something more sophisticated...
2017-04-10 14:25:49 GMT <digcat> hi resplin thank you for that, have created a post for it as requested, is that Samuel whos away ? https://community.alfresco.com/message/812654-android-sdk-version-15
2017-04-10 14:25:51 GMT <alfbot> Title: android sdk version 1.5 | Alfresco Community (at community.alfresco.com)
2017-04-10 14:28:19 GMT <resplin> Yes, Samuel is away.
2017-04-10 14:28:31 GMT <resplin> But I'll ask someone on the mobile team to respond.
2017-04-10 14:28:44 GMT <digcat> thank you :)
2017-04-10 14:29:13 GMT <digcat> what day are you arriving for beecon?
2017-04-10 14:30:40 GMT <resplin> Monday afternoon.
2017-04-10 14:32:37 GMT <digcat> ahh very good
2017-04-10 14:32:57 GMT <yreg> praisethemoon, just checked, for some reason a lot of information on my skype profile are gone, that is wierd, probably due to the use of some client that makes modofications to your profile without asking
2017-04-10 14:33:07 GMT <yreg> I am suspecting Skype for WP
2017-04-10 14:33:56 GMT <praisethemoon> Maybe they are stored locally ..
2017-04-10 14:34:16 GMT <praisethemoon> Since everytime i change computer skype asks me to put a profile pic ..
2017-04-10 14:34:30 GMT <praisethemoon> (i mean every new install)
2017-04-10 14:36:37 GMT <resplin> Every time I log in it asks me for my name. I don't understand why Skype lost it, and refuses to store it.
2017-04-10 14:36:48 GMT <resplin> (My first and last name, not my username.)
2017-04-10 14:39:28 GMT <AFaust> Funny - never had these issues. I even had to be reminded by someone to change my profile at some point because it still contained all the data from when I was studying, after switching equipment 4-5 times...
2017-04-10 14:45:22 GMT <yreg> Well, AFaust you should consider yourself one of the lucky ones
2017-04-10 14:49:54 GMT <resplin> Isn't AFaust a Windows user? I think that might be the underlying reason to his success.
2017-04-10 15:27:29 GMT <yreg> resplin, that would explain it all indeed
2017-04-10 17:08:07 GMT <Sandy_> Hi Everyone, I need to search content in alfresco, suppose we need to search 'alfresco', instead of 'alfresco' i need to search 'lfresco' (or) 'resco' (or) 'sco' etc ,.. is it possible to search like this
2017-04-10 17:10:49 GMT <Sandy_> can anyone help me please
2017-04-10 17:14:24 GMT <Sandy_> Hi Everyone, I need to search content in alfresco, suppose we need to search 'alfresco', instead of 'alfresco' i need to search with 'lfresco' (or) 'resco' (or) 'sco' etc ,.. is it possible to search like this
2017-04-10 17:14:31 GMT <Sandy_> can anyone help me please
2017-04-10 17:16:36 GMT <OLSS> Hello everyone. Quick question: is it possible to merge two or more existing alfresco servers into a single one. Content store + sql metadata.
2017-04-10 17:20:44 GMT <yreg> OLSS, You can merge one into the other using some migration tool, I suppose, but it would definitely depend on a lot of factors
2017-04-10 17:23:22 GMT <OLSS> yreg: i haven't seen any mention of migration tools, other than the basic "migrate one server to a new one" example.
2017-04-10 17:24:02 GMT <yreg> There is few alternatives depending on your repo size, and the existence of meta data .. etc
2017-04-10 17:24:40 GMT <yreg> so you could a custom CMIS app for example to fetch nodes from one instance and feed them to the other
2017-04-10 17:25:01 GMT <yreg> or rely on ACP export/import tools
2017-04-10 17:25:14 GMT <yreg> or rely on share import/export scripts
2017-04-10 17:25:41 GMT <yreg> or buy some software dedicated for such tasks, like Move2Alf (aka Alfred Inflow)
2017-04-10 17:26:17 GMT <OLSS> as for "factors", what do you have in mind. for clarity sake, the data i'm intrested in moving is not "native" alfresco data, it's data of an application that uses alfresco for its backend storage. the metadata is critical, as it contains the audit trails that the application creates.
2017-04-10 17:27:10 GMT <OLSS> but you've given me some useful pointers, i'll look them up and see what i can do with them.
2017-04-10 17:32:19 GMT <OLSS> yreg: gtg, thank you.
2017-04-10 21:32:09 GMT <eswbitto> To override js files would the best approach be to package it into either a jar or amp?
2017-04-10 21:47:59 GMT <resplin> eswbitto: They should be interchangeable.
2017-04-10 21:48:27 GMT <resplin> The AMP allows you to do a bit more than a JAR, but it is an Alfresco specific system, so many people prefer JARs.
2017-04-10 21:51:34 GMT <eswbitto> resplin thanks, I'm just wanting to override one file. Hopefully it works. >.>
2017-04-10 22:19:43 GMT <resplin> Either approach should be fine. The real question is which works better in your build tooling environment.
2017-04-10 22:24:30 GMT <AFaust> eswbitto: There will also always be peopel / 1 person that prefers AMPs for JS files to avoid weird classpath lookup issues where JS files of one JAR can (unknowingly) hide JS files of another...
2017-04-10 22:26:58 GMT <AFaust> Also, if it is a client-side JS file then there really isn't any proper mechanism for overriding it. There only is one for web script JS files.
2017-04-10 22:32:30 GMT <AFaust> Well - unless you count the classpath lookup / hiding feature via the Share resource controller a proper mechanism. Basically any JAR can override a client side JS by packaging in its META-INF/ directory - but which JAR gets precedence is undefined. A second override option (if first does not find an override) is to package the client-side JS simply on the classpath, which also includes JARs - again, without any defined
2017-04-10 22:32:30 GMT <AFaust> precedence between JARs with an override to the same file. Lastly, the fallback will use the physical file in the web app itself.
2017-04-10 22:36:04 GMT <AFaust> And if that does not exist (not relevant for the override use case) the ResourceController can even redirect the request to a different servlet context (default: /resources - which is not mapped)
2017-04-10 22:42:43 GMT <eswbitto> AFaust: That is a lot to soak in. So I'm overriding the activities.js file so that it won't default to Everyone's activities and changing it doesn't seem to do anything. So I'm thinking it comes from somewhere else.
2017-04-10 22:43:20 GMT <AFaust> don't forget to override the *-min.j variant too
2017-04-10 22:43:28 GMT <AFaust> don't forget to override the *-min.js variant too
2017-04-10 22:43:34 GMT <eswbitto> :O
2017-04-10 22:43:53 GMT <eswbitto> I did :D
2017-04-10 22:53:51 GMT <eswbitto> Success1
2017-04-10 22:53:53 GMT <eswbitto> !
The other logs are at http://esplins.org/hash_alfresco