Re: Searching with locale on Multi Language blog

2013-07-29 Thread Glen Mazza
Oh, um, never mind on one point -- I was complaining below about having URLs like http://www.jroller.com/gmazza/en/entry/myblogentry and http://www.jroller.com/gmazza/entry/myblogentry splitting Google Analytics results, I just realized *I* can turn off the multiple languages option myself, and

Re: Searching with locale on Multi Language blog

2013-07-29 Thread Glen Mazza
Thanks for offering to help -- note you can also use Google Custom Search Engine for your blog: https://www.google.com/cse/ if you feel it would be too much effort getting Roller the way you would like it. Incidentally, even if we support multiple languages in Roller, do you think we should st

Re: Searching with locale on Multi Language blog

2013-07-29 Thread Maciej Rumianowski
Hi Glen. 2013/7/29 Glen Mazza > Hi Maciej! Thanks again for your help! I just updated Roller to Lucene > 4.4.0 to make sure you have the latest and greatest tools available. Great, I saw that ;) > > > On 07/29/2013 09:43 AM, Maciej Rumianowski wrote: > >> Hi *, >> >> I have analyzed how sear

Re: Container-Managed Authentication and Roller

2013-07-29 Thread Dave
On Mon, Jul 29, 2013 at 4:19 AM, Glen Mazza wrote: > OK, cool, any out-of-date conversation pieces we can remove, great. > > Question, though, when I go to Oracle blogs (https://blogs.oracle.com/) > and click on the login button, I'm taken to a single sign on page: > https://login.oracle.com/**my

Re: Container-Managed Authentication and Roller

2013-07-29 Thread Glen Mazza
No prob, just curious, and as it's a security-related matter they probably shouldn't publicly disclose that anyway. Glen On 07/29/2013 11:10 AM, Dave wrote: On Mon, Jul 29, 2013 at 4:19 AM, Glen Mazza wrote: OK, cool, any out-of-date conversation pieces we can remove, great. Question, thou

Re: Searching with locale on Multi Language blog

2013-07-29 Thread Glen Mazza
Hi Maciej! Thanks again for your help! I just updated Roller to Lucene 4.4.0 to make sure you have the latest and greatest tools available. On 07/29/2013 09:43 AM, Maciej Rumianowski wrote: Hi *, I have analyzed how searching works with "I publish my weblog in multiple languages" set to tru

Searching with locale on Multi Language blog

2013-07-29 Thread Maciej Rumianowski
Hi *, I have analyzed how searching works with "I publish my weblog in multiple languages" set to true. Main problem is that search results have links to Entry page with no locale or the same locale as on Search Page ( http://localhost:8083/roller/test/en/search?q=post). This makes links broken if

Re: media file folder delete

2013-07-29 Thread Glen Mazza
This page: http://docs.oracle.com/javaee/6/api/javax/persistence/FlushModeType.html says "If |FlushModeType.COMMIT| is set, the effect of updates made to entities in the persistence context upon queries is unspecified", which is different from the definition of COMMIT below (where it *only* occ

Re: media file folder delete

2013-07-29 Thread Greg Huber
Glen, I think its only on the named queries as if I delete a weblog entry it updates correctly, and uses a dynamic query. EntityManager em = getEntityManager(false); Query q = em.createNamedQuery(queryName); // Never flush for queries. Roller code assumes this behavior q.setFlushMode(FlushModeTyp

Re: media file folder delete

2013-07-29 Thread Glen Mazza
OK, we can switch to Hibernate for the time being, and it works fine there, it's as simple a matter as commenting-out the EclipseLink dependency and uncommenting the Hibernate one in the app/pom.xml and doing an mvn clean install to get a new WAR. Still, I'd like to fix this EclipseLink issue,

Re: media file folder delete

2013-07-29 Thread Glen Mazza
I'm getting the same results as you, except "delete" doesn't even visually remove the new folder (even though it says it does); when I restart Tomcat, then the folder disappears--presumably the flush/commit happens at that point. If you have a query tool like SquirrelSQL query the DB during th

Re: media file folder delete

2013-07-29 Thread Glen Mazza
Oh, there is one hiccup as a result of moving from OpenJPA to either EclipseLink or Hibernate, it's this highlighted matter: https://github.com/gmazza/blog-samples/blob/master/jpa_and_junit/src/main/java/SampleRun.java#L44-46, I don't know if this would be related to your issue. (Still have to

Re: media file folder delete

2013-07-29 Thread Greg Huber
>From google: "By default, the database flush mode is set to AUTO. This means that the Entity-Manager performs a flush operation automatically as needed. In general, this occurs at the end of a transaction for transaction-scoped EntityManagers and when the persistence context is closed for applic

Re: media file folder delete

2013-07-29 Thread Greg Huber
Glen, This is the backoffice (struts) so it does not use the cache. This used to work prior to eclipselink, maybe there is some setting we need to update on the EntityManager. This is pretty basic stuff.. Cheers Greg On 29 July 2013 12:25, Glen Mazza wrote: > OK, I'll check, but wha

Re: media file folder delete

2013-07-29 Thread Glen Mazza
OK, I'll check, but what happens if you go to the Roller maintenance tab and click on "Flush blog" (that will normally empty out the cache) -- problem solved then? Note I had to bring back your changes after the move to fewer modules, I might have missed something. Glen On 07/29/2013 07:20

media file folder delete

2013-07-29 Thread Greg Huber
Glen, Can you test whether you can delete a media file folder? ie add a folder and then try and delete it. For me it seems to delete it OK but when you refresh the media file folder view it is still there. If I then shut down tomcat and restart it is gone. It seems something to do with its cac

Re: Container-Managed Authentication and Roller

2013-07-29 Thread Glen Mazza
OK, cool, any out-of-date conversation pieces we can remove, great. Question, though, when I go to Oracle blogs (https://blogs.oracle.com/) and click on the login button, I'm taken to a single sign on page: https://login.oracle.com/mysso/signon.jsp. Is CMA required for this SSO functionality

Re: Running trunk on JBoss EAP 6

2013-07-29 Thread Maciej Rumianowski
It Works! :) Thanks. 2013/7/28 Glen Mazza > Thanks for bringing this to our attention, I just fixed it (some POM > adjustments needed.) All my recent testing has been against an already > created database so I wasn't aware of this problem. > > > Glen > > On 07/27/2013 04:17 PM, Maciej Rumiano