Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Nataly Tsarkevich
    @NafanyaVictorovna
    @danielcolgrove I haven't that file, only Config class in the included framework's library
    Phillip Verheyden
    @phillipuniverse

    @NafanyaVictorovna sure enough, that logging configuration file is not included in our base. You can add those lines into a file as documented in the Spring Boot docs.

    Your specific question was about hibernate.show_sql. The reason this gets clobbered is a we have a class called JPAPropertiesPersistenceUnitPostProcessor. This allows us to override some persistence.xml values from the Spring Environment (properties files).

    Sooooo, in your case, you are trying to set hibernate.show_sql. Instead, you can set blPU.hibernate.show_sql in your Spring properties files (application.yml, runtime-properties/development.properties, etc). You can see that it's overridden in the DemoSite project here to be false.

    You might want to review the JPAPropertiesPersistenceUnitPostProcessor to see the other properties that can be set via environment properties instead of persistence.xml.

    Nataly Tsarkevich
    @NafanyaVictorovna
    @phillipuniverse
    Thank you, for your advices. I found all that files, and yes, I see that line in the common-shared.properties file in the core module and found that property, chaned and it works as I expected! Thank you
    Phillip Verheyden
    @phillipuniverse
    great!
    Vojko Kercan
    @Dhimahi_gitlab
    Hi. I am trying to find a product roadmap for BroadLeaf Commerce. Specifically, I am interested if BroadLeaf Commerce v4 will continue to receive security patches and if so, until when? Does anybody have or know where to find this information? Contacted BroadLeaf, but no reply yet.
    linuxidefix
    @linuxidefix
    Hi ! Does anybody have org.broadleafcommerce.common.i18n.domain.Translation in the column BLC_ADMIN_SECTION.Ceiling_entity ? SELECT count(*) FROM BLC_ADMIN_SECTION where CEILING_ENTITY like 'org.broadleafcommerce.common.i18n.domain.Translation%' ;
    linuxidefix
    @linuxidefix
    Ok, respondind to myself : entity is not there by default. That causes a NPE. Hopefully this has been fixed by Broadleaf :-) https://github.com/BroadleafCommerce/BroadleafCommerce/commit/a58199f0c39e59fc656117a62267d2746e38a330#diff-49c9a8f83589dfb81af884d8a51a7b41
    ancileddu
    @ancileddu
    good morning!
    ancileddu
    @ancileddu

    I have a problem with adding a FacetSearch on BroadLeaf. I need to add an additional filter on product research that is not based on the solr index but goes straight on the db. It is a filter on product availability (AVAILABLE / NOT AVAILABLE). Has such a thing ever been implemented? Alternatively, it was decided to act on the field of the quantityAvailable index and re-index every few hours. In this case, however, trying to define the ranges in this way:

    0 TO 1
    1 TO *

    but only 1 TO * is displayed, even if there are actually products with availability 0. A possible problem is that we had to set the field availability to double and not int in the scheme because, with int it generated a cast error since in the range the values ​​are numeric and therefore, for example, 0.0000. Do you have a possible idea on how to solve this problem? My field in schema is this:

    <field name="it_quantityAvailable_i" type="double" indexed="true" stored="true"/>

    linuxidefix
    @linuxidefix
    @ancileddu Not sure too understand all correctly. To do that on my side, I decided to create a property (int) available 0/1 , and index/re-index periodically. When I do search, I modify the broadleaf request to solr to exclude automatically non-available items. I used a filterQuery. org.broadleafcommerce.core.search.service.solr.AbstractSolrSearchServiceExtensionHandler#modifySolrQuery(org.apache.solr.client.solrj.SolrQuery, java.lang.String, java.util.List<org.broadleafcommerce.core.search.domain.SearchFacetDTO>, org.broadleafcommerce.core.search.domain.SearchCriteria, java.lang.String)
    query.addFilterQuery(IS_STOCK_AVAILABLE_PROPERTY_NAME+"_i:(\"1\")");
    But I dont see how to do this without doing a request to Solr and doint tricky stuff
    linuxidefix
    @linuxidefix
    ( You could do JS script to remove/display out of stock items, but should also update search results accordingly)
    xbitlabs
    @xbitlabs
    In the Demo site admin product list, drag the scroll bar to the bottom of the list, click the last day record to enter the edit page, and then click the return arrow of the edit page to return to the product list page. At this time, the page will load indefinitely
    xbitlabs
    @xbitlabs
    未命名-1.jpg
    Andrei Miclaus
    @frostyandy2k
    Hi guys, new to Broadleaf and wondering if it supports Java > 8. I got lots of weird errors when using Java 11 and 12
    danielcolgrove
    @danielcolgrove
    @frostyandy2k The supported version of Java is closely tied to the version of Spring. Broadleaf version 6.0.x is using Spring Framework 5.0.8.RELEASE which supports JDK 8-10 (we continue to recommend Java 8). JDK 11 is not supported until Spring Framework 5.1 which we will be upgrading in our 6.1.0-GA release. I don't have a release date for 6.1.0-GA yet but will be before year end.
    Andrei Miclaus
    @frostyandy2k
    Hi @danielcolgrove Thanks for the response!
    Shamseer PC
    @shamseerpc
    Hi guys. i am getting this error when i import project into my eclipse workspace
    image.png
    Tanner Donovan
    @ttdonovan
    New to Broadleaf here wanting to evaluate it for a future replatfrom should I be looking at 6.1.x branch?
    Also interested in possibly creating a Docker setup that builds the demo store - ran into a similar issue as @frostyandy2k and think there should be an easiler way to intorduce new users
    Tanner Donovan
    @ttdonovan
    As a newcommer i think someone needs to take some time and do a git branch clean-up looks like lots of stale branches and unclear where to start. Example the 7.0.x branch is three years old, not sure what’s going on there...
    Jay Aisenbrey
    @cja769

    @shamseerpc For all intents and purposes that error can be ignored. It's the m2e plugin not recognizing one of the goals that's used in the jrebel plugin but it is actually valid

    @ttdonovan 6.0.x is the branch to start with. 6.1.x is in early stages of development and is unstable at the moment. I understand the confusion. As we don't have a master branch it can be confusing as to what the latest is but usually the default branch we have set it to is the current branch.

    As for docker, we've dabbled with it for our demo before however when we went to Spring Boot in 5.2 we left it as is since it's two commands (minus the cd so 3 I suppose)

    ~/path-to-project > mvn clean install
    ~/path-to-project > cd site
    ~/path-to-project/site > mvn spring-boot:run

    to run api or admin simply go to those instead. Like Daniel said, we recommend Java 8 however 6.0.x was developed to work with up to JDK 10

    Tanner Donovan
    @ttdonovan
    i’m not a java developer by trade - it all seems complex go get up and running… I was able to get the admin up the other data but not the demo site
    i think i had attempted to download the community zip not run anything form the github repo
    i can try again - but looking at the gitrepo i see no “admin”, “site” or “api” (this may be where my lack of understanding java development come into play)
    Jay Aisenbrey
    @cja769
    Tanner Donovan
    @ttdonovan
    Jay Aisenbrey
    @cja769
    Ah I see. Sorry for the confusion. In the README.md in BroadleafCommerce we point to getting started but it's easy to miss. Here's the docs for getting started locally https://www.broadleafcommerce.com/docs/core/current/getting-started/running-locally
    Tanner Donovan
    @ttdonovan
    That might have been what i was looking at the other day - but had issues where i think the app was trying to load https and not http
    Jay Aisenbrey
    @cja769
    https://github.com/BroadleafCommerce/BroadleafCommerce is the core framework however it's not a web application. It's a dependency for a web application such as https://github.com/BroadleafCommerce/DemoSite which is our demo application to show the community out of box features
    Tanner Donovan
    @ttdonovan
    i dont think those intructions are complete to they might expect a person to have further insight in running java applications
    Jay Aisenbrey
    @cja769
    Correct all of site/admin/api run on HTTP and HTTPS but all requests by default redirect to HTTPS. Looking at the README for DemoSite it looks like the ports are wrong. To hit site go to 8080 and to hit admin go to 8081. They'll redirect to 8443 and 8444 respectively
    Tanner Donovan
    @ttdonovan
    couple of things: 1) if i wanted help become a contributor where whould i start? is there a need for better developer setup documentation? 2) do all projects start out as the demosite? what if i wanted a greenfield project how would i start?
    running mvn clean install on demo site now
    Tanner Donovan
    @ttdonovan
    admin works - https://localhost:8444/admin/login with site - https://localhost:8443/ getting browser message “to many redirects"
    Jay Aisenbrey
    @cja769
    1) We have a contribution doc here https://github.com/BroadleafCommerce/BroadleafCommerce/blob/master/CONTRIBUTING.md. There's very rarely case where you would contribute to BroadleafCommerce/DemoSite however the steps would be similar. Effectively create an issue, make your changes in a fork, and request a pull request
    2) Typically starting with DemoSite is the easiest since it already has the boiler plate for setting up a web application however it's also just as possible to start with a brand new project. For an example of a non Java web mvc example we have a react demo here https://github.com/BroadleafCommerce/ReactStarter. With that project we start up a REST api with the broadleaf dependencies and then the React project hits that API to do various things. As for how to start a greenfield project it depends on what you want to build on. If it's a Java application then you would add Broadleaf dependencies directly to your application. If it's not then you would need to do something like our React demo
    Tanner Donovan
    @ttdonovan

    2019-10-24 15:28:14.542 ERROR 32763 --- [nio-8443-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception

    java.lang.NullPointerException: null
    at org.broadleafcommerce.common.web.BroadleafThemeProcessor.process(BroadleafThemeProcessor.java:55) ~[broadleaf-common-6.0.7-SNAPSHOT.jar:na]

    2019-10-24 15:28:14.674 INFO 32763 --- [nio-8443-exec-5] .p.w.s.s.SessionFixationProtectionFilter : Session has been terminated. ActiveID did not match expected value.

    those are errors i’m seeing in the demo site logs
    Tanner Donovan
    @ttdonovan
    Null pointer errors with https://localhost:8445/api/v1/swagger-ui.html as well
    Jay Aisenbrey
    @cja769
    I just started up site and saw that as well. There was a recent change made that caused the exception. If you checkout the 6.0.5-GA tag the bug wasn't introduced yet https://github.com/BroadleafCommerce/DemoSite/tree/broadleaf-6.0.5-GA. Sorry for the inconvenience. I'll push a fix for that shortly
    Tanner Donovan
    @ttdonovan
    No worries - it was stuff like this that made me think maybe a docker image might be helpful or
    setting up travis-ci or circle-ci?
    just something that could build the sites and curl an end-point
    Jay Aisenbrey
    @cja769
    That's a great idea. Unfortunately this bug flew under the radar because it only affects our community version
    Tanner Donovan
    @ttdonovan
    is the coummunity demo site not used a base test for enterpise edition?
    or again maybe my lack of understanding on how java apps are configured and ran
    Jay Aisenbrey
    @cja769
    It is not. We have a separate private repository for our enterprise demo site that we provide to our enterprise customers. It targets the same BroadleafCommerce/BroadleafCommerce repository however it also has some of our Enterprise modules such as MultiTenant-SingleSchema and OMS
    Both applications are ran the same, there's just different dependencies