* Fixed: Price Rules: Price rules configurations are not syncing with eCommerce storefront (OFBIZ-12450)
When adding a Price Rule, whether it be a Product Category, Product, Party, Party Classification, the system doesn't show a price difference.
The price rules work with the Database as they do get changed when saved. But their functionality doesn't work, it won't give a price increase or decrease or restriction.
Modified:
Various data files to enhance demonstration of price rule functionality
* Improved: Price Rule (OFBIZ-12450)
Modified: ProductDemoData.xml
- restructured some price rule data elements
- added additional price rule data elements
When a user with VIEW permissions (e.g. auditor) access the IncomeStatement via following uri, an error is shown.
https://demo-trunk.ofbiz.apache.org/accounting/control/IncomeStatement?organizationPartyId=Company
{code:java}
java.lang.IllegalArgumentException: Error calling service with name getPartyAccountingPreferences: org.apache.ofbiz.service.ServiceAuthException: You haven't the permission for the service getPartyAccountingPreferences, reason : Access refused{code}
Modified AccountingDemoData.xml
added SecurityGroupPermission record
Currently OFBiz is broken and hard to fix. You can't even create an order !
Revert "Improved: visibility of expire button (OFBIZ-12362) (#331)"
This reverts commit e3b125ef4c.
Revert "(OFBIZ-5980) Improvement: PartyRole record(s) expiration/revocation (#330)"
This reverts commit a8ab2be55a.
Revert "Improved: seed data (OFBIZ-12355) (#328)"
This reverts commit b204b867b4.
Revert "Reverted: Have the ability to revoke (expire) roles of a party (OFBIZ-5980)"
This reverts commit 85e066deb3.
Revert "Reverted: damn I did not revert the right push :/"
This reverts commit b867b2a89f.
Revert "(OFBIZ-5980) Improvement: PartyRole record(s) expiration/revocation (#325)"
This reverts commit 8ed2252df8.
Revert "Reverted: Have the ability to revoke (expire) roles of a party (OFBIZ-5980)"
This reverts commit 5b5e03f71b.
Revert "Improved: Have the ability to revoke (expire) roles of a party (OFBIZ-5980)"
This reverts commit 46f7ee91d3.
Revert "Improved: seed data (OFBIZ-12353) (#324)"
This reverts commit fade92bb57.
added/changed/updated:
- added field definition for from and through date to the entity
- added service for expiration
- request-map for expiration
- appropriate forms to work with added entity fields
- added groovy code to check existing when adding PartyRole record and call expiration service if needed
- adding fromDate value to seed, test and demo data
Reverts commit 46f7ee91d3
Reverted on Pierre Smits kindly asking for authoring by pushing a PR, not only a
thanks while committing his patch after testing it locally
Currently it only possible to delete a role. That can lead to potential error
messages, when a particular role is associated with records where the roleTypeId
is used as a foreign key in the entity-model/database and the user tries to
delete that role from the list.
In order to avoid such, it is better to revoke the PartyRole record by setting
an expiration date (end date) on the record.
Thanks: Pierre Smits
The creation of a new company failed with constraint database error due to a missing functional General Ledger data.
To correct this, we separate the demo GlAccount demo data from Accounting demo data to allow it alone when we create the new company.
A second error can appear with the presence of a partyAcctgPreference if the validation isn't realized immediately, so we just add a control of the presence before call service createPartyAcctgPreference.
Thanks to Szabolcs Szekelyi for raise this issue and Jacques Leroux for its look
This prevented to run the stable demo, hence the next, weirdly the trunk had
not this problem. Anyway better safe than sorry... Maybe related to Gradle
version or rather libs loaded?
The reason why the stable (and old) demos were not running is because the
EntitySaxReaderTests did not pass
Pre-amble
Currently, unlike many other entities, the Agreement entity does not have the
statusId field defined. Agreements, like the other entities, should have a
status (values that help determine the phase of the lifespan beyond
the start- and end date of the agreement), such as:
Created
In Progress
Approved
etc.
Flows
Happy flows:
Happy flow a) created ->b) submitted (for review) -> c) reviewed ->
d) approved -> e) in effect -> f) concluded (ended)
Same, with more flow: a) created ->b) submitted (for review) ->
c) reviewed -> d) adjusted -> e) reviewed -> f) approved ->
g) in effect -> h) concluded (ended)
Unhappy flows:
Unhappy flow: a) created ->b) submitted (for review) -> c) reviewed ->
d) cancelled
Same, with more flow: a) created ->b) submitted (for review) ->
c) reviewed -> d) adjusted -> e) reviewed -> f) cancelled
Prematurely ended flows:
Nipped in the bud flow a) created -> b) cancelled
flows from approval (in effect or in execution) till the end-of-times
a) approved -> b) in effect -> c) concluded (ended)
a) approved -> b) in effect -> c) terminated (prematurely ended)
Party Roles
Following Party Roles are involved:
Agreement Creator - the party (person) that creates, edit, updates and
submits the agreement for review
Agreement Reviewer - the party (person) that reviews the agreement on its
merits and impact for the company/organisation
Agreement Approver - the party (person) that, based on law, regulations
and/or business policies approves (or rejects) the
agreement
Agreement Manager - the party (person) that manages the execution of terms
of the agreement after the approval till the end-of-times
Agreement Owner - the Party (party group with roleTypeId INTERNAL_ORGANIZATIO,
and and registered in PartyAcctgPreference) that is
legally bound by the agreement
jleroux: this lacks demo data but can still be useful
Thanks: Pierre Smits
The field govAgencyPartyId in the AddFixedAssetRegistration form shows all
parties through the lookup target-form-name="LookupPartyName function.
This should be limited to those parties that qualify with the constraint.
Thanks: Pierre Smits for report Priya Sharma for the fix
Renames respectively blacklist and whitelist to denylist and allowlist in
several places.
There are still a lot of master word which can be replaced by main, but not in
contexts where slave is also used. I'll discuss that on dev ML again...
Provides the migrateOldOrderBlacklistAndOldOrderBlacklistType service to migrate
records from OrderBlacklist and OrderBlacklistType entities to new OrderDenylist
and OrderDenylistType entities
As explained at
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
this is only an help for the users (ie not a security feature), but an
appreciable one easy to implement.
Here we start with website/WebSiteCMSContent.ftl
Also add some missing file extensions
Handles audio and video formats supported by Tika.
Adds few new audio and video formats in seed data.
AFAIK there are no ways to embed a webshell in an audio or video file. So I did
not sophisticate the validation, just rely on Tika.
I have also fixed bugs in SecuredUpload: in isValidSvgFile and
isValidImageIncludingSvgFile
2020/08/10 the OFBiz security team received a security report by Harshit Shukla
<harshit.shukz@gmail.com>, roughly it was (quoting part of it to simplify):
<<I have identified a Remote Code Execution (RCE) Vulnerability. The reason
behind this RCE is lack of file extension check at
catalog/control/UploadCategoryImage?productCategoryId=CATALOG1_BEST_SELL&pload_file_type=category>>
Using this post-auth RCE in OFBiz demos, Harshit was able to get some AWS
credentials by uploading a webshell (based on [0]).
By security, it was then decided by the Infra and OFBiz security teams to shut
down the demos.
After discussing the elements reported with Mark J Cox (VP of ASF security team)
we in common decided that no CVE was necessary.
This reverts commit 8736162c74.
We have test integration issues to fix
Due to TortoiseGIt, something weird happened, confused me to revert the revert :/
"Description" and "comment" fields are restricted to 255 char.
However after some research I found that all the supported databases support
longer then 255 char
I would expect users to want to write more then 255 char in a comment
(I know I personally can).
A discussion has been started on dev ML:
https://markmail.org/message/7utrgejc2c44i37u
Also adds a note in DATAMODEL_CHANGES.adoc
Thanks: ddev
(OFBIZ-11971)
As we have returnItemTypeId as RET_MISC_ADJ, same should be used in ReturnItemTypeMap and corresponding InvoiceItemTypeMap.
Thanks Amit Gadaley for reporting and providing the patch.
(OFBIZ-11693)
Change release for all asciidoc files, now there area 3 publish site,
one per release
* site/trunk
* site/next currently for the 18.12
* site/stable currently for the 17.12
* Documented: datamodel markdown migration to asciidoc
(OFBIZ-11574)
- DATAMODEL_CHANGE migration to asciidoc and add a included in
developer_manual
- Readme migration to asciidoc
* Documented: theme/README.md change theme/README.adoc but with very
simple content
(OFBIZ-11574)
README.md has been migrated to asciidoc as doc/themes.adoc previously
but remove README.md has been forgot.
In this commit README.md is removed and a new README.adoc is created
with only a brief component definition and link to the theme
documentation (and developer-manual which included theme.adoc)
* Documented: datamodel markdown migration to asciidoc
(OFBIZ-11574)
Added new field parentGlXbrlClassId taking reference from DATAMODEL_CHANGES.md which was added with OFBIZ-10613 and missing in adoc file
Co-authored-by: holivier <holivier@apache.org>
(OFBIZ-11435)
Also, added deprecated since tag in some old entities and fields. This is done as per current policy to deprecate entities/services.
Thanks Pierre for reporting and Jacques for review.
* Improved: Enhance entity "GlXbrlClass" and use
(OFBIZ-10613)
Adding field parent of the GlXbrlClassId
Application of field in appropriate forms
* Improved: Added new field parentGlXbrlClassId into DATAMODEL_CHANGES.md
(OFBIZ-10613)
Co-authored-by: Pawan Verma <pawan.verma@hotwaxsystems.com>
* Improved: Accounting Component - improve seed data
(OFBIZ-11652)
Adding role type records relating to budget entities
* Improved: Accounting Component - improve seed data
(OFBIZ-11652)
Adding role type records relating to budget entities
* Improved: Marketing/SFA demo data
(OFBIZ-11043)
modified: UserLoginSecurityGroup for DemoLeadOwner
modified: UserLoginSecurityGroup for DemoLeadOwner1
modified: roleTypeId for DemoLeadOwnerGroup
modified: PartyRelationship between DemoLeadOwnerGroup and DemoLeadOwner
modified: PartyRelationship between DemoLeadOwnerGroup and DemoLeadOwner1
* Improved: Marketing/SFA demo data
(OFBIZ-11043)
removed: related comments
(OFBIZ-9909)
This will generate the report with positive visits only in both the cases (with/without date filter) while running marketing campaign reports.
Thanks Rubia for reporting and Ankit Joshi for providing the patch.
* Fixed: Specified key was too long; max key length is 767 bytes for ProductPromoCodeEmail entity.
(OFBIZ-5426)
The problem is in the entity model. An email address should not be used in the primary key - mainly because an email address is case-insensitive. A better design would be to use the email address contact mechanism ID in the primary key.
Done Following:
1. Changed Entity Name from ProductPromoCodeEmail to ProductPromoCodeContMech
2. Related Changes for the entity name change
3. Migration service to migrate old data
Thanks, Leon for the report and Adrian Crum, Jacques Le Roux, Ingo Wolfmayr, Deepak Dixit, Pierre Smits and Gil Portenseigne for the discussion and review.
* Improved: Added new line in service definition file and lincence in MigrationServices file.
(OFBIZ-5426)
Thanks, Jacopo for the review.
components
(OFBIZ-4956)
Currently there are some URLs present in application components with
auth="false". So anyone can hit these URLs and access these resources without
authorization.
I think all the URLs should be secure with auth="true"
jleroux: I have also fixed the dataResourceId="GZ-DIG"
Thanks: Amardeep Singh Jhajj for report and initial fix
(OFBIZ-11437)
Alter the parent type and descriptions of existing Incoterm TermTypes to
indicate the version of Incoterms they relate to.
Added new Incoterm TermTypes and descriptions correspoding to the
Incoterms 2020 set.
In r1868022 I added the POS_SALES_CHANNEL was suggested in OFBIZ-10965. Actually
that was wrong. Tt's already in PosTypeData.xml though with a wrong sequenceId
This fixes it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868023 13f79535-47bb-0310-9956-ffa450edef68