Code Monkey home page Code Monkey logo

liferay-dummy-factory's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

liferay-dummy-factory's Issues

Adding Dummy Factory to a page throws No tag "upload-progress" defined in tag library imported with prefix "liferay-ui"

Hi Yasu,

When I'm adding the latest version (7.4.4) of the module to a page on master (liferay-portal@eb99c8776afffd89a16b77f023ba1641e1d852cc ~U112), latest HEAD today) it is generating the following error:

2024-02-13 10:37:13.492 ERROR [http-nio-8080-exec-7][PortletRequestDispatcherImpl:295] Unable to dispatch request: /view.jsp(123,16) PWC6142: No tag "upload-progress" defined in tag library imported with prefix "liferay-ui"
2024-02-13 10:37:13.493 ERROR [http-nio-8080-exec-7][PortletServlet:109] Unable to process portlet com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet: org.apache.jasper.JasperException: /view.jsp(123,16) PWC6142: No tag "upload-progress" defined in tag library imported with prefix "liferay-ui"
javax.portlet.PortletException: org.apache.jasper.JasperException: /view.jsp(123,16) PWC6142: No tag "upload-progress" defined in tag library imported with prefix "liferay-ui"
	at com.liferay.portlet.internal.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:298) ~[portal-impl.jar:?]
	at com.liferay.portlet.internal.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:114) ~[portal-impl.jar:?]
	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:611) ~[portal-kernel.jar:?]
	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:627) ~[portal-kernel.jar:?]
	at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doView(MVCPortlet.java:172) ~[portal-kernel.jar:?]
	at com.liferay.support.tools.portlet.LiferayDummyFactoryPortlet.doView(LiferayDummyFactoryPortlet.java:70)

Thanks for looking into this. ๐Ÿ’™

Regards,
Tibor

Progress bar not updated

I've started to add 100.000 users, progress bar starts with number 1 (1%). After adding 3000 Users it's still 1 instead of 3.

Gradle assemble doesn't generate MANIFEST.MF correctly

When I run gradle clean assemble at the root folder of the repo, the built build/libs/liferay-dummy-factory.jar doesn't contain all the bundle's properties (i.e. Bundle-Name, Bundle-SymbolicName, Import-Package etc).
I'm using the gradle committed in this repo and I've tried with more than one branch: master, 7.1.x, tag/0.16.

In Category / Vocabulary page, changing the site to Global triggers an error on the browser console.

In Category / Vocabulary page, changing the site to Global triggers an error on the browser console.

Step to reproduce

  1. Navigate to Category / Vocabulary
  2. Change Select a site to assign the pages to to Global

combo?browserId=chrome&minifierType=js&languageId=en_US&b=7310&t=1605507047644&/o/frontend-js-aui-web/aui/aui/aui.js&/o/frontend-js-aui-web/liferay/modules.js&/o/frontend-js-aui-web/liferay/aui_sandbox.js&/o/frontend-js-aui-web/aui/attribute-base/attribute-base.js&/o/frontend-js-aui-web/aui/attribute-complex/attribute-complex.js&/o/frontend-js-aui-web/aui/attribute-core/attribute-core.js&/o/frontend-js-aui-web/aui/attribute-observable/attribute-observable.js&/o/frontend-js-aui-web/aui/attribute-extras/attribute-extras.js&/o/frontend-js-aui-web/aui/event-custom-base/event-custom-base.js&/o/frontend-js-aui-web/aui/event-custom-complex/event-custom-complex.js&/o/frontend-js-aui-web/aui/oop/oop.js&/o/frontend-js-aui-web/aui/aui-base-lang/aui-base-lang.js&/o/frontend-js-aui-web/liferay/dependency.js&/o/frontend-js-aui-web/liferay/util.js&/o/frontend-js-web/loader/config.js&/o/frontend-js-web/loader/loader.js&/o/frontend-js-web/liferay/dom_task_runner.js&/o/frontend-js-web/liferay/events.js&/o/frontend-js-web/liferay/lazy_load.js&/o/frontend-js-web/liferay/liferay.js&/o/frontend-js-web/liferay/global.bundle.js&/o/frontend-js-web/liferay/portlet.js&/o/frontend-js-web/liferay/workflow.js:22545 POST http://localhost:8080/api/jsonws/invoke 404

Not deploying in latest master

Error on deploy in latest master:

08:56:33,740 ERROR [Framework Event Dispatcher: Equinox Container: d0a2cd32-9897-0017-1c0c-e215f8aa209e][liferay_dummy_factory:97] FrameworkEvent ERROR
org.osgi.framework.BundleException: Could not resolve module: liferay.dummy.factory [648]_  Unresolved requirement: Import-Package: com.liferay.journal.model; version="[1.0.0,2.0.0)"_ [Sanitized]
	at org.eclipse.osgi.container.Module.start(Module.java:429)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

It doesn't create categories, but shows successful message

In Liferay DXP de-32:

  1. Select "Category / Vocabularies" as the data to create
  2. Select "Liferay DXP" as the Site
  3. Select "Topic" as the vocabulary id (it shows "Topic" twice)
  4. Select "None" as the parent category id
  5. Enter 10 for the number of categories to create
  6. Enter "mycategory" as the base category name

After execution, it shows a successful message and the logs shows:

Starting to create 10 categories
Finished creating 10 categories

But in the categories screen, no categories are shown

If you try it again, it gives the error "There is another category named mycategory1 as a child of category 0"

Already tried to reindex all indexes, but still doesn't show the categories in the category screen

Add random content to webcontents

For example based on http://lipsum.com the content could be different to simulate more realistic scenarios. Image and document links and embedded images from external url or from documents and media should be also handled.

Add option to never expire journal content

I was using dummy factory to test Apio by creating a ton of structured journal content. Journal content that was created are not set to "Never Expire" . In Apio, when I'm retrieving a collection of structured content, it will only return "Active" content in the response.

It would be nice to be able to configure this on dummy factory ๐Ÿ˜ธ

At creating a company, the exception below is thrown.

At creating a company, the exception below is thrown.

2020-11-16 05:59:46.821 ERROR [http-nio-8080-exec-6][IncludeTag:128] Current URL /group/control_panel/manage?p_p_id=com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&_com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet_javax.portlet.action=%2Fldf%2Fcompany&_com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet_mode=COMPANY&_com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_support_tools_portlet_LiferayDummyFactoryPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview generates exception: null
java.lang.NullPointerException
at com.liferay.layout.seo.internal.util.FriendlyURLMapperProvider.getFriendlyURLMapper(FriendlyURLMapperProvider.java:54)
at com.liferay.layout.seo.internal.canonical.url.LayoutSEOCanonicalURLProviderImpl._getDefaultCanonicalURL(LayoutSEOCanonicalURLProviderImpl.java:136)
at com.liferay.layout.seo.internal.canonical.url.LayoutSEOCanonicalURLProviderImpl.getCanonicalURL(LayoutSEOCanonicalURLProviderImpl.java:67)
at com.liferay.layout.seo.internal.LayoutSEOLinkManagerImpl.getCanonicalLayoutSEOLink(LayoutSEOLinkManagerImpl.java:63)
at org.apache.jsp.html.common.themes.top_005fhead_jsp._jspService(top_005fhead_jsp.java:1277)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:64)
at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:407)
at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:383)
at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:217)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:88)
at freemarker.ext.jsp.TagTransformModel$TagWriter.endEvaluation(TagTransformModel.java:402)
at freemarker.ext.jsp.TagTransformModel$TagWriter.afterBody(TagTransformModel.java:390)
at freemarker.core.Environment.visitAndTransform(Environment.java:497)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:103)
at freemarker.core.Environment.visit(Environment.java:331)

No Journal content folder exists with ID

No Journal content folder exists with ID error when adding journal content. A work around exists by simply editing the ID in the DOM before submitting with a folder ID that exists.

Add Message Boards support

Add support to Message Boards:

  • Create Categories and Sub-Categories
  • Create Posts
  • Create responses to Posts

Randam user name creation

Not only number name, but also random name user creation will be useful for presales to create dummy users in the portal.

Log time it takes to complete task

Log the time it takes to complete the creation task. Useful for measuring performance.
If not possible, log timestamp at the start and end of the process.

Get an error 'Dummy Factory is temporarily unavailable.' when going to Dummy Factory

  1. Start up the master server
  2. Deploy Dummy Factory for 7.4.
  3. Go to Control Panel > Marketplace > Click Dummy Factory

Actual behavior: Get an error 'Dummy Factory is temporarily unavailable.' and error throws on the console:

2024-01-05 05:13:26.671 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:212] Processing liferay.dummy.factory-7.4.3.jar
2024-01-05 05:15:05.840 ERROR [http-nio-8080-exec-5][PortletRequestDispatcherImpl:295] Unable to dispatch request: /view.jsp(123,16) PWC6142: No tag "upload-progress" defined in tag library imported with prefix "liferay-ui"
2024-01-05 05:15:05.842 ERROR [http-nio-8080-exec-5][PortletServlet:109] Unable to process portlet com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet: org.apache.jasper.JasperException: /view.jsp(123,16) PWC6142: No tag "upload-progress" defined in tag library imported with prefix "liferay-ui"
javax.portlet.PortletException: org.apache.jasper.JasperException: /view.jsp(123,16) PWC6142: No tag "upload-progress" defined in tag library imported with prefix "liferay-ui"```

Unresolved requirement when deploying in latest master

Hello, I'm seeing this error when deploying the jar file in the bundle on the latest liferay master. Does it only work with published versions?

2020-07-10 00:07:35.591 ERROR [fileinstall-/Documents/master/bundles/osgi/modules][LogService:93] Error while starting bundle: file:/Documents/master/bundles/osgi/modules/liferay.dummy.factory-7.3.0.jar
org.osgi.framework.BundleException: Could not resolve module: liferay.dummy.factory [1083]
  Unresolved requirement: Import-Package: com.liferay.dynamic.data.mapping.model; version="[3.1.0,4.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:444)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1297)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1270)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:524)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:369)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:320)

Thanks!

Dummy Content's create, Fetch links doesn't work

steps to reproduce

  1. Navigate to Web Content Article
  2. Select Select create contents type
  3. Input Amount of links in the generated contents
  4. Press Fetch links

combo?browserId=chrome&minifierType=js&languageId=en_US&b=7310&t=1605502757996&/o/frontend-js-jquery-web/jquery/jquery.min.js&/o/frontend-js-jquery-web/jquery/init.js&/o/frontend-js-jquery-web/jquery/ajax.js&/o/frontend-js-jquery-web/jquery/bootstrap.bundle.min.js&/o/frontend-js-jquery-web/jquery/collapsible_search.js&/o/frontend-js-jquery-web/jquery/fm.js&/o/frontend-js-jquery-web/jquery/form.js&/o/frontend-js-jquery-web/jquery/popper.min.js&/o/frontend-js-jquery-web/jquery/side_navigation.js:2 POST http://localhost:8080/group/control_panel/manage?p_p_id=com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet&p_p_lifecycle=2&p_p_state=maximized&p_p_mode=view&p_p_resource_id=%2Fldf%2Fimage%2Flist&p_p_cacheability=cacheLevelPage&_com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_support_tools_portlet_LiferayDummyFactoryPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview&_com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet_mode=WCM&_com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet_mvcRenderCommandName=%2Fldf%2Fcommon&_com_liferay_support_tools_portlet_LiferayDummyFactoryPortlet_formDate=1605510025030 500

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.