Commit Graph
187 Commits
Author SHA1 Message Date
Deepak Dixit 2970513a57 Fixed: Fixed typo in getServerTimestamp out paramter type.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768290 13f79535-47bb-0310-9956-ffa450edef68
2016-11-06 08:13:41 +00:00
Arun Patidar 948731c898 Implemented: Added CRUD services for OrderContentType, RateType, SequenceValueItem, ProdCatalogInvFacility, StatusValidChange, SubscriptionActivity, SubscriptionAttribute, SubscriptionType, SubscriptionTypeAttr, SupplierRatingType, TaxAuthorityAssocType, TaxAuthorityRateType, TermType, TermTypeAttr, Uom, Addendum entities.
(OFBIZ-8289) (OFBIZ-8307)(OFBIZ-8440)(OFBIZ-8728)(OFBIZ-8775)(OFBIZ-8776)(OFBIZ-8777)(OFBIZ-8778)(OFBIZ-8779)(OFBIZ-8780)(OFBIZ-8781)(OFBIZ-8782)(OFBIZ-8783)(OFBIZ-8784)(OFBIZ-8787)(OFBIZ-8964)

Thanks: Rahul Singh, Chinmay Patidar, Amit Gadaley and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768184 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 10:56:52 +00:00
Arun Patidar 3584666dbc Implemented: Added CRUD services for ProdConfItemContentType, ProductAssocType, UserPrefGroupType, WebPreferenceType, WorkEffortAssocAttribute, WorkEffortAssocType, WorkEffortAssocTypeAttr, WorkEffortBilling, WorkEffortContentType, WorkEffortGoodStandardType, WorkEffortPurposeType, WorkEffortType, WorkEffortTypeAttr, WorkReqFulfType, UomType, UomGroup, ProductPricePurpose, ProductPriceType, ProductStoreGroupRole and ProductStoreGroupRollup entities.
(OFBIZ-8729)(OFBIZ-8730)(OFBIZ-8792)(OFBIZ-8793)(OFBIZ-8794)(OFBIZ-8795)(OFBIZ-8796)(OFBIZ-8797)(OFBIZ-8798)(OFBIZ-8799)(OFBIZ-8800)(OFBIZ-8801)(OFBIZ-8802)(OFBIZ-8803)(OFBIZ-8788)(OFBIZ-8789)(OFBIZ-8767)
(OFBIZ-8768)(OFBIZ-8769)(OFBIZ-8770)

Thanks: Chinmay Patidar, Amit Gadaley and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767965 13f79535-47bb-0310-9956-ffa450edef68
2016-11-03 20:30:52 +00:00
Arun Patidar 47e5f93d78 Implemented: Added CRUD services for PartyClassificationType, PartyContentType, PartyGeoPoint, PartyIcsAvsOverride, PartyIdentificationType, PartyQualType, PartyType, PartyTypeAttr, PaymentAttribute, PaymentBudgetAllocation, PaymentContentType, PaymentGroupType, PaymentMethodType, PaymentType, PaymentTypeAttr, PerfRatingType, PerfReviewItemType, PeriodType, PriorityType and ProdCatalogCategoryType entities.
(OFBIZ-8606)(OFBIZ-8607)(OFBIZ-8608)(OFBIZ-8609)(OFBIZ-8610)(OFBIZ-8611)(OFBIZ-8612)(OFBIZ-8613)(OFBIZ-8614)(OFBIZ-8615)(OFBIZ-8616)(OFBIZ-8647)(OFBIZ-8648)(OFBIZ-8649)(OFBIZ-8650)(OFBIZ-8651)(OFBIZ-8724)
(OFBIZ-8725)(OFBIZ-8726)(OFBIZ-8727)

Thanks: Amit Gadaley and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767953 13f79535-47bb-0310-9956-ffa450edef68
2016-11-03 19:27:07 +00:00
Arun Patidar 462e91ffb6 Implemented: Added CRUD services for CountryAddressFormat, ExampleFeatureApplType, GoodIdentificationType, InventoryItemType, InventoryItemTypeAttr, InvoiceContentType, InvoiceItemTypeAttr, InvoiceItemTypeMap, InvoiceType, NeedType, OrderAdjustmentTypeAttr, SalesOrderItemFact, SegmentGroupType, ShipmentGatewayConfigType, ShipmentGatewayDhl, ShipmentGatewayFedex, ShipmentType, ShippingDocument and ShoppingListType entities.
(OFBIZ-8087) (OFBIZ-8204) (OFBIZ-8245) (OFBIZ-8248) (OFBIZ-8249) (OFBIZ-8257) (OFBIZ-8261) (OFBIZ-8267) (OFBIZ-8270) (OFBIZ-8279) (OFBIZ-8284) (OFBIZ-8437) (OFBIZ-8439) (OFBIZ-8455) (OFBIZ-8460) (OFBIZ-8461)
(OFBIZ-8470) (OFBIZ-8473) (OFBIZ-8478)

Thanks: Rohit Koushal, Aman Mishra, Chinmay Patidar and Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767101 13f79535-47bb-0310-9956-ffa450edef68
2016-10-29 09:01:09 +00:00
Arun Patidar 08c804c4cb Implemented: Added CRUD services for SalesOpportunityRole, SalesOpportunityStage, SalesOpportunityTrckCode, SalesOpportunityWorkEffort, SecurityGroup, SettlementTerm, ShipmentGatewayUsps, and ShipmentItemFeature entities.
(OFBIZ-8433) (OFBIZ-8434) (OFBIZ-8435) (OFBIZ-8436) (OFBIZ-8438) (OFBIZ-8441) (OFBIZ-8464) (OFBIZ-8466)

Thanks: Rahul Singh Kushwah, Rishi Solanki for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766092 13f79535-47bb-0310-9956-ffa450edef68
2016-10-21 18:22:00 +00:00
Arun Patidar f5deecf43e Implemented: Added CRUD services for InvoiceItemAttribute, InvoiceTermAttribute, EmploymentAppSourceType, FacilityType, InventoryItemTempRes, EnumerationType, EntityGroup, EntityGroupEntry, EntitySyncIncludeGroup and InventoryItemAttribute entity.
(OFBIZ-8167) (OFBIZ-8168) (OFBIZ-8169) (OFBIZ-8170) (OFBIZ-8171) (OFBIZ-8208)(OFBIZ-8246)(OFBIZ-8247)(OFBIZ-8259)(OFBIZ-8269)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761231 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 13:31:24 +00:00
Arun Patidar e1b55d265d Fixed: Typo from previous commit rev:1761136.
(OFBIZ-8135)

Thanks: Nicolas Malin for reporting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761183 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 10:36:35 +00:00
Arun Patidar b219815591 Implemented: Added CRUD services for Delivery, EmailTemplateSetting and EbayProductListingAttribute entity.
(OFBIZ-8050) (OFBIZ-8057)(OFBIZ-8058)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761169 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 09:48:00 +00:00
Arun Patidar d8562e4821 Implemented: Added CRUD services for Deduction, DataTemplateType and CustomMethodType entity.
(OFBIZ-8035) (OFBIZ-8045)(OFBIZ-8046)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761136 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 07:17:36 +00:00
Arun Patidar 964fcfb87f Implemented: Added CRUD services for CustRequestType, CustRequestTypeAttr and CustomMethod entity.
(OFBIZ-8132) (OFBIZ-8133)(OFBIZ-8134)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761130 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 06:51:07 +00:00
Arun Patidar 9e2544b371 Applied patch for "Added CRUD services for GeoType entity" from issue [OFBIZ-8017]
Thanks Aman Mishra for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1760434 13f79535-47bb-0310-9956-ffa450edef68
2016-09-12 18:49:28 +00:00
Arun Patidar ae684323fc Applied patch for "Added CRUD services for GeoAssocType entity" from issue [OFBIZ-8008]
Thanks Aman Mishra for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1760429 13f79535-47bb-0310-9956-ffa450edef68
2016-09-12 18:31:05 +00:00
Arun Patidar e4c096eb32 Applied patch for "Added CRUD services for CountryTeleCode entity" from issue [OFBIZ-8094]
Thanks Amit Gadaley and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759882 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 18:29:27 +00:00
Arun Patidar 053c3fe492 Applied patch for "Added CRUD services for CountryCode entity" from issue [OFBIZ-8093]
Thanks Amit Gadaley and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759881 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 18:25:16 +00:00
Arun Patidar 7723efa970 Applied patch for "Added CRUD services for CountryCapital entity" from issue [OFBIZ-8092]
Thanks Amit Gadaley and Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759879 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 18:19:04 +00:00
Jacopo Cappellato 1906aa927a Minor enhancements to the way the comments about RMI are worded.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757869 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 15:05:00 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Deepak Dixit 2d23e50680 (OFBIZ-7765) Fix typo, Added mistakenly removed closing comment tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752142 13f79535-47bb-0310-9956-ffa450edef68
2016-07-11 10:30:43 +00:00
Deepak Dixit 96b5ff4f52 (OFBIZ-7765) Removed testBsh service references from code. Thanks Rishi Solanki for pointing out.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752140 13f79535-47bb-0310-9956-ffa450edef68
2016-07-11 10:22:32 +00:00
Jacopo Cappellato 539084a511 OFBIZ-7763 Removed a series of artifacts dependent on the old Beanshell jar that is going to be removed from the project; specifically:
* removed the code that implemented the deprecated "call-bsh" operation in Minilang
* removed the BeanShellContainer (it has been disabled a long time ago)
* removed the BeanShell service engine, no more used


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751947 13f79535-47bb-0310-9956-ffa450edef68
2016-07-08 17:53:59 +00:00
Jacques Le Roux ec66e361e1 A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Jacques Le Roux b021268fa7 Fixes "Comment out RMI related code because of the Java deserialization issue" - https://issues.apache.org/jira/browse/OFBIZ-6942
I decided to comment out as less as possible because once the RMI loaders, the RMI dispatcher and the related test services are off there is no RMI related danger left (test services are not a danger but would fail during tests run). It's then easier for users who need RMI in their projects to have only to uncomment those and not digg everywhere. Because the naming (JNDI) server relies on the rmi loader it will also be commented out.

[CVE-2016-2170] The infamous Java serialization vulnerability

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1735569 13f79535-47bb-0310-9956-ffa450edef68
2016-03-18 10:38:04 +00:00
Jacques Le Roux 05667aa340 Adds a comments to the testRemoteSoap service to clarify when to use it how it works.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1734241 13f79535-47bb-0310-9956-ffa450edef68
2016-03-09 13:57:39 +00:00
Jacques Le Roux 2c79c094ea "Currently the testRemoteSoap test services does not work." - https://issues.apache.org/jira/browse/OFBIZ-6922
This temporarily replaces the demo-trunk.ofbiz.apache.org domain by ofbiz-vm.apache.org:8080

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1733951 13f79535-47bb-0310-9956-ffa450edef68
2016-03-07 18:14:53 +00:00
Arun Patidar 4f484099a8 [OFBIZ-6909] Applied patch for adding a new fieled 'disabledBy' in UserLogin entity.Thanks Yashwant for reporting issue and patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1731390 13f79535-47bb-0310-9956-ffa450edef68
2016-02-20 12:35:31 +00:00
Jacques Le Roux 0dd553ec96 A modified patch from Harsha Chadhar for "New feature to reclaim a user account - Using Security Questions" https://issues.apache.org/jira/browse/OFBIZ-4983
jleroux: the issue description is quite lengthy so I will summarise it here, please refer to the Jira issue for details.
"When a customer creates an account on eCommerce site, s/he will also need to answer a security question. This security question then can be used by the user to reclaim her/his account in case s/he forgets her/his password. If the user correctly answers the required security question while reclaiming her/his account, her/his password will be sent through email notification. This part would work in the same way as the existing functionality of email password (forget password)."

The description was actually more ambitious (several questions, possibility for users to create own questions) but AFAIK these parts have not been implemented.

Apart updating the patch which did not merge, I got 2 majors issues (and few others I will not report here) I bypassed with workarounds.

Unlike Harsha, and as I reported earlier in the issue, I never got the username (userLoginId) back when using hidden parameters in the request body (not in requestParameters, ie UtilHttp.getParameterMap(request)), nor actually any parameters. This is maybe due to my OS (Windows7 was XP before) or my email client (Outlook Express then, now Thunderbird) or even my SMTP configuration (I used my ISP SMTP server) but most probably because I did it all on my sole machine (localhost). I tried to understand what was happening to request body parameters with http://www.telerik.com/fiddler, but finally gave up because it's even more complicated when https is in the picture. So I decided to rather use parameters in the URL (Query string). It's a bit less safe, though the password is OFBiz encrypted, and should be replaced. But it's safe enough because only the user should receive this message and even if the message is sniffed during its journey it should be hard to decrypt the password!

Harsha used the SecurityExtUiLabels.xml (created by ashish at r1618415) in securityext component but there is already a SecurityextUiLabels.xml in common component. Since I use Windows OFBiz was unable to retrieve the labels from SecurityExtUiLabels.xml since I guess it looked into a SecurityextUiLabels.xml. So I renamed a SecurityExtUiLabels.xml to EmailPassword.xml.










git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1716915 13f79535-47bb-0310-9956-ffa450edef68
2015-11-27 20:37:15 +00:00
Wei Zhang b675211e74 The <description> tag was not be closed in last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710507 13f79535-47bb-0310-9956-ffa450edef68
2015-10-26 04:12:58 +00:00
Jacques Le Roux 027f037200 A patch from Christian Carlow for "Paginator.getListLimits listSize gets set to viewSize for FindServices.performFindList" https://issues.apache.org/jira/browse/OFBIZ-6422
This patch adds code to Paginator to account for the entryList being instanceOf List and extracts from the context.results object the original listSize.

jleroux, important note from OFBIZ-6423 which depends on OFBIZ-6422: it is necessary to assign a value (true makes sense) to override-list-size attribute so that FormRenderer.renderItemRows sets the lowIndex correctly, because once the results of performFindList are displayed, otherwise pages > 0 are rendered as empty.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710413 13f79535-47bb-0310-9956-ffa450edef68
2015-10-25 05:39:07 +00:00
Shi Jinghai 85ab0e0eff OFBIZ-4154 Use ZXing to generate QR 2d barcode.
1. Add zxing-core-3.2.0.jar to framework/base/lib and .classpath.
2. Add services_qrcode.xml and QRCodeService.java in framework/common/.
3. Add qrcode request in common-controller.xml and QRCodeEvents.java under framework/common/.
4. Add qrcode.properties and QRCodeUiLabels.xml under framework/common/.
5. Add a barcode example page in specialpurpose/example, entry is on page: /example/control/EditExample?exampleId=EX01, the example can be seen on page: /example/control/ExampleReportPdfBarcode?exampleId=EX01

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1696921 13f79535-47bb-0310-9956-ffa450edef68
2015-08-21 10:03:11 +00:00
Deepak Dixit 509727e6a1 Applied patch from jira issue - OFBIZ-6566 -SecurityGroup doesn't get removed from a Party.
Thanks Pierre Smits for reporting the issue and thanks  Neeraj Kumawat for providing the patch for the same.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1696234 13f79535-47bb-0310-9956-ffa450edef68
2015-08-17 10:53:20 +00:00
Jacques Le Roux b0ba66e6d7 Fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687299 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 14:37:03 +00:00
Jacques Le Roux 4d2a942aa4 A patch from Gil Portenseigne for "Add a mean to untie geo associations" https://issues.apache.org/jira/browse/OFBIZ-6528
In the Webtools we can asociate Geos but we have yet no means to untie them

This patch adds a new grid in EditGeoScreen to see/delete GeoAssoc and CommonEntityLabels default-resource-name on GeoAssocType for translation purpose.

jleroux: On Pierre's Smits suggestion Gil also added a clickable link to open the associated Geo and a column to show the geoTypeId of the associated Geo.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687259 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 13:10:00 +00:00
Taher A. Alkhateeb 423d83a51c Provide a fix for OFBIZ-6229 and allow creation of new Geos
Fix the following problems:

- The search screen results take you to the link geos.
  it should go directly to create / edit instead
- You cannot edit a geo because the parameter is not passed across 
  the tabs link and edit / create. The menus should be redefined
  to pass the parameter around
- The primary key is enforced in the service definition when 
  it should be optional to create new geos
- finally, the geoId should not be a lookup field as
  an entity cannot lookup itself

Refs https://issues.apache.org/jira/browse/OFBIZ-6229


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682415 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 10:43:41 +00:00
Nicolas Malin d445d74d19 Apply patch OFBIZ-6209 Error when call updateNote service report by Supachai Chaima-ngua
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1670952 13f79535-47bb-0310-9956-ffa450edef68
2015-04-02 19:04:49 +00:00
Nicolas Malin f6bc517122 (OFBIZ-6047) Convert DataSource, Enumeration and Note entites CRUD service from simple to entity-auto. I remove also some end line space on CommonService.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656125 13f79535-47bb-0310-9956-ffa450edef68
2015-01-30 21:41:34 +00:00
Nicolas Malin 6fd6e8a049 A patch from Anne Jessel to Support filtering on non-std date field names in performFind and prepareFind (OFBIZ-4374).
With the difficulty to test, I create a new test-suite performfindtests with five junit :
 * testPerformFindConditionFieldEquals
 * testPerformFindConditionFieldLike
 * testPerformFindConditionDistinct
 * testPerformFindFilterByDate
 * testPerformFindFilterByDateWithDedicateDateField
I also improve TestNodeMember with two fields extendFromDate and extendThruDate to realize filter on it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655499 13f79535-47bb-0310-9956-ffa450edef68
2015-01-28 23:25:40 +00:00
Jacopo Cappellato 373e0aba28 Moved the "bi" component from the framework to the specialpurpose folder; moved all the dependencies (client code) on the "bi" component from applications components to the "bi" component itself.
Now the "bi" component contains all the dimensions/facts/star schemas and all the logic to populate them and can be easily enabled/disabled.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642027 13f79535-47bb-0310-9956-ffa450edef68
2014-11-27 06:14:06 +00:00
Ashish Vijaywargiya 66e20b8d44 Applied patch from jira issue - OFBIZ-5551 - Cannot delete the record When Server Timezone and Application timeZone are different.
Thanks  SenthilMurugan for reporting the issue and thanks Deepak for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639892 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:22:21 +00:00
Jacopo Cappellato d8c412302f OFBIZ-5287: Upgrade to Log4j2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618831 13f79535-47bb-0310-9956-ffa450edef68
2014-08-19 10:36:01 +00:00
Jacques Le Roux a1fb475c88 A patch from Pierre Smits for "Service to check UomConversionDated is missing" https://issues.apache.org/jira/browse/OFBIZ-5638
While there is a service to check the existence of a record in UomConversion the equivalent to check the existence of a record in UomConversionDated (mainly used for foreign exchange rates) is lacking.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1595768 13f79535-47bb-0310-9956-ffa450edef68
2014-05-19 07:19:30 +00:00
Adrian Crum 405e24943d Fixed a C&P error in the updateGeo service definition.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542264 13f79535-47bb-0310-9956-ffa450edef68
2013-11-15 13:34:06 +00:00
Jacques Le Roux 7adfe90d71 Fixes <<Services allow arbitrary HTML for parameters with allow-html set to "safe">> https://issues.apache.org/jira/browse/OFBIZ-5254
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".

This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 12:12:43 +00:00
Adrian Crum 5b675f5a79 Some code simplification in the new URL generation classes.
Also loosened things up a bit in the OfbizUrlBuilder class: allow object construction with partial information - required by some services. I don't like this approach because it makes it possible to create nonsensical URLs, but it is a necessary evil to keep the existing code working.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535444 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 17:12:46 +00:00
Jacques Le Roux c386f6ab30 Set different ports for testing in a CI environment (e.g. Jenkins) https://issues.apache.org/jira/browse/OFBIZ-4794
*What's for?*
Finally, OOTB the port offset is interesting in 2 cases:
# To eventually run Sonar on OFBiz sources https://issues.apache.org/jira/browse/INFRA-3590
# To simultaneously run the demos without having to change much things, just one parameter (this will need to have the same commited in R13.07... to be discussed...)

Of course, It can be used for other purposes outside of the ASF context...

*How it's done?*
Basically, I just added a portoffset integer parameter to 3 ant targets (of course this JVM param can also be used in a Java call from command line): start, start-pos, start-both,

The portoffset parameter is set to zero by default in ClassLoaderContainer.java. 
If a value is passed, it's then grabed by Config.java and passed to ClassLoaderContainer.java, where it's set to this value.

 The portoffset is then used to change in one shoot all the default ports values defined (in config or hardcoded), and the admin port value
This is done in following classes:
CatalinaContainer
NamingServiceContainer
ServiceEngine through ServiceLocation
RmiServiceContainer
XMLRPCClientEngine
XmlRpcTests

To avoid hardcoding locations in services definitions, I also created 2 service-locations: main-http and main-soap

*To summarize:* these changes will be used to run "ant start" with a portoffset value which will take care of all ports values, including admin port. For running R12.04 demo as stable we will still need to create a patch for the last time. R13.07 could have a similar patch applied since it's not yet released...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1533839 13f79535-47bb-0310-9956-ffa450edef68
2013-10-19 22:07:35 +00:00
Jacques Le Roux 0ef1ff543e Reverts revisions: 1525909 + 1526533 + 1526560, OFBIZ-4794 is not yet ready
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526583 13f79535-47bb-0310-9956-ffa450edef68
2013-09-26 15:44:40 +00:00
Adrian Crum 6c40bc0c3b Reorganized some Geo-related service definitions. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526292 13f79535-47bb-0310-9956-ffa450edef68
2013-09-25 20:35:58 +00:00
Adrian Crum 7df7c9952f Fixed a warning caused by a framework dependency on the Party component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526276 13f79535-47bb-0310-9956-ffa450edef68
2013-09-25 19:57:13 +00:00
Jacques Le Roux c86a579cf8 Set different ports for testing in a CI environment (e.g. Jenkins) https://issues.apache.org/jira/browse/OFBIZ-4794
*What's for?*
OOTB the port offset is interesting in at least 3 cases:
# To simultaneously run tests on the same Buildbot machine. This is related to http://mail-archives.apache.org/mod_mbox/www-builds/201209.mbox/%3C002101cd991b$0a16de50$1e449af0$@16degrees.com.au%3E
# To simultaneously run the demos without having to change much things, just one parameter
# To eventually run Sonar on OFBiz sources https://issues.apache.org/jira/browse/INFRA-3590

*How it's done?*
Basically, I just added a portoffset integer parameter to some ant targets (of course this JVM param can also be used in a Java call from command line):
* in trunk and R13.07: start, start-batch, start-debug, start-pos, start-both, run-tests and run-test
* in R12.04 and R11.04: run-tests, run-test. I did not set start targets because anyway it would miss the admin port offset, withouh much changes. So can't be used to demonstrate. We will continue to use the current paches for those.

The portoffset parameter is set to zero by default in ClassLoaderContainer.java. 
If a value is passed, it's then grabed by Config.java and passed to ClassLoaderContainer.java, where it's set to this value.

 The portoffset is then used to change in one shoot all the default ports values defined (in config or hardcoded), and the admin port value in R13.07 and trunk.
This is done in following classes:
CatalinaContainer
NamingServiceContainer
ServiceEngine through ServiceLocation
RmiServiceContainer
XMLRPCClientEngine
XmlRpcTests

To avoid hardcoding locations in services definitions, I also had to create some service-locations: main-local-soap and main-remote-soap 

*What are the constraints?*
* For demos: the offset should not be applied to trunk because <service-location name="main-remote-soap" location="http://demo-trunk.ofbiz.apache.org:8080/webtools/control/SOAPService"/> is used for tests by trunk *and all releases*. It's useless to apply to trunk anyway,  offsetting port in releases is enough.
* I did not take into account the Ideal payment harcoded port values in IdealPaymentServiceTest.java. Weirdly I did not cross error during tests, though it seems there are tests using an harcoded port in url.

*What is the status?*
Locally (on Win XP)  I ran many tests combinations with <<ant load-demo run-tests>>.  
Applying the portoffset on a sole running test instance has no effects. I have still some fails (no errors) but those are not related to my changes, they appear also without.
But when I run a combination of any releases/trunk but with R11.04, I get a time out error with testSOAPSimpleService, that I can't explain so far. 
If I run the trunk alone with the portoffset no errors occur. Same if I run a release with portoffset and only testSOAPSimpleService in trunk (w/ or w/o portoffset)

*To summarize:* these changes will be used to run Buildot tests instances simultaneously . And, for coming releases, to run demos without having to create patches. Simply running ant start with a portoffset value which will take care of all ports values, including admin port. For running R12.04 demo as stable we will still need to create a patch for the last time.

*What I will to do for now:* commit the patches and test if I cross the same issue on Buildbot. If it's the same (99% chances it will) I will revert and will continue to locally try to find the reason . I believe this issue is unrelated to the changes I implemened.  And it's just because it's now possible to simultaneously run tests that it appears. 

BTW I just noticed that when you run R11.04 with R12.04, R12.04 takes almost all the CPU (XP is not very, while when running any combinations w/o R11.04 the CPU load is shared. 
Also there are far less tests in R11.04, which coul be the reason when I run it with another test run instance there are no issues.  Because R11.04 tests finish before the other instance gets to run testSOAPSimpleService.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1525909 13f79535-47bb-0310-9956-ffa450edef68
2013-09-24 14:47:30 +00:00
Jacques Le Roux 107a6762b6 No functional change.
When I reverted r1311214 for "set different ports for testing in a CI environment (e.g. Jenkins)" https://issues.apache.org/jira/browse/OFBIZ-4794 I did not notice Jacopo's also changed some ports value at r1324614
This reverts r1324614 to have things consistent. I don't backport (only R12.04 is concerned) because as long as catalina/ofbiz-component.xml is consistent (port =+ 1) things are working

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502121 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 05:38:47 +00:00