Giter VIP home page Giter VIP logo

fiware-tmforum / business-api-ecosystem Goto Github PK

View Code? Open in Web Editor NEW
38.0 13.0 22.0 28.55 MB

The FIWARE/TMForum Business API Ecosystem allows the monetization of different kind of assets (both digital and physical) during the whole service life cycle, from offering creation to its charging, accounting and revenue settlement and sharing

Home Page: https://business-api-ecosystem.rtfd.io/

License: GNU Affero General Public License v3.0

API Blueprint 100.00%
fiware tmforum monetization

business-api-ecosystem's People

Contributors

aarranz avatar fdelavega avatar jason-fox avatar jivung avatar

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

Watchers

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

business-api-ecosystem's Issues

Market place unstable and degrades after some time

Hi,

firstly, I'll update the issue later with relevant info, so dont crucify me for crappy issue yet.

Problem that we are seeing is that after the setup and operating for some time (> days ) it's not possible to move offerings from one state to another. We tried to promote an offering from Created to Active, but it fails (no error in UI) and offer stays in created state:

image

we are running on K8S, and have the i4Trust plugins in place.

An unexpected error in the RSS API prevented your request to be processed

Hi!
We're trying to deploy the lastest version of the BAE using Docker-Compose.
We've created the file "docker-compose.yml" and configured it with our keys,URLs and oAuth keys.
When we deploy the containers, all of them seem to be running correctly.
We can access the web portal and login with Fiware Global Instance IDM as admin role, but when we try to create a Catalog or Revenue Sharing system we get the following error:
proxy_1 | 2019-03-28 11:50:36.103 - WARN: TMF - 8a011722-f5c2-484c-b00b-5674fdb49f6d - ::ffff:147.156.222.120 - infosistemas - GET: /DSRevenueSharing/rss/models?action=count&providerId=infosistemas - Pre-Validation (DSRevenueSharing): An unexpected error in the RSS API prevented your request to be processed

We must be missing something about Logic Proxy configuration. We tried modifying external ports in etc/config.js without success as it seems this file is being ignored.

Is there any tests we can make in order to check if all services are running properly?

Regards,
Pablo

[MUST] Credits are missing

According to the contribution requirements, credit must be given to developers who contribute to the development of each component. A simple way to do this is to add and maintain a CREDITS file.

The list of previous contributors can be obtained using the following command:

git shortlog -cse
  • MUST Requirement from the TSC

How to create and manage organisation?

Hi,
in the frame of MSO4SC project we are using MarketPlace.

I would like to create and manage Organisation but I cannot find any docs on these topics.
I must have read througth the docs too quickly...

Could you point me to some documents?

Can't create a catalogue nor product

I'm having the following error when creating a new catalogue (when clicking on the create button):

2018-05-14 11:34:15.343  - FATAL: Server - a10cd6fe-d35e-45d3-9d1c-b3b9166ee17a - ::ffff:62.14.219.15 - f8297ebc-4a60-4a43-9d74-cec472bbc01f - POST: /DSProductCatalog/api/catalogManagement/v2/catalog - Unexpected unhandled exception - TypeError: Cannot read property 'enabled' of undefined. Stack trace:
TypeError: Cannot read property 'enabled' of undefined
    at Object.exports.getIndividualURL (/business-ecosystem-logic-proxy/lib/tmfUtils.js:225:21)
    at /business-ecosystem-logic-proxy/lib/tmfUtils.js:191:43
    at Array.some (native)
    at Object.exports.hasPartyRole (/business-ecosystem-logic-proxy/lib/tmfUtils.js:189:42)
    at Object.exports.isOwner (/business-ecosystem-logic-proxy/lib/tmfUtils.js:32:47)
    at createHandler (/business-ecosystem-logic-proxy/controllers/tmf-apis/catalog.js:729:22)
    at /business-ecosystem-logic-proxy/controllers/tmf-apis/catalog.js:818:25
    at /business-ecosystem-logic-proxy/controllers/tmf-apis/catalog.js:704:21
    at Request._callback (/business-ecosystem-logic-proxy/controllers/tmf-apis/catalog.js:71:17)
    at Request.self.callback (/business-ecosystem-logic-proxy/node_modules/request/request.js:186:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/business-ecosystem-logic-proxy/node_modules/request/request.js:1163:10)
2018-05-14 11:34:15.353  - WARN: Server - a10cd6fe-d35e-45d3-9d1c-b3b9166ee17a - ::ffff:62.14.219.15 - f8297ebc-4a60-4a43-9d74-cec472bbc01f - POST: /DSProductCatalog/api/catalogManagement/v2/catalog - Status: 500

Something similar happens trying to create a product:

2018-05-14 13:46:53.939  - FATAL: Server - 7e6dea6f-3b14-446b-9a20-b2a66dbc3da9 - ::ffff:83.59.104.113 - f8297ebc-4a60-4a43-9d74-cec472bbc01f - POST: /DSProductCatalog/api/catalogManagement/v2/productSpecification - Unexpected unhandled exception - TypeError: Cannot read property 'enabled' of undefined. Stack trace:
TypeError: Cannot read property 'enabled' of undefined
    at Object.exports.getIndividualURL (/business-ecosystem-logic-proxy/lib/tmfUtils.js:225:21)
    at /business-ecosystem-logic-proxy/lib/tmfUtils.js:191:43
    at Array.some (native)
    at Object.exports.hasPartyRole (/business-ecosystem-logic-proxy/lib/tmfUtils.js:189:42)
    at Object.exports.isOwner (/business-ecosystem-logic-proxy/lib/tmfUtils.js:32:47)
    at createHandler (/business-ecosystem-logic-proxy/controllers/tmf-apis/catalog.js:729:22)
    at Object.validateCreation (/business-ecosystem-logic-proxy/controllers/tmf-apis/catalog.js:797:17)
    at /business-ecosystem-logic-proxy/node_modules/async/lib/async.js:718:13
    at Immediate.iterate (/business-ecosystem-logic-proxy/node_modules/async/lib/async.js:262:13)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
2018-05-14 13:46:53.944  - WARN: Server - 7e6dea6f-3b14-446b-9a20-b2a66dbc3da9 - ::ffff:83.59.104.113 - f8297ebc-4a60-4a43-9d74-cec472bbc01f - POST: /DSProductCatalog/api/catalogManagement/v2/productSpecification - Status: 500

Keyrock OAuth2 callback redirect could be configurable

In order to make the system "embed-able" by other webs (let's say the biz-ecosystem as a subsystem of a bigger web application) the redirect call of the /auth/fiware/callback request should be configurable, so it could redirect to the parent website instead of the biz-ecosystem. This way the biz-ecosystem could be embedded as follows:
Parent web calls /login; the biz-ecosystem logs in and redirects to parent web again, where the biz-ecosystem will be present as an iframe.

The redirect path could be set (not required) in config.js and also through docker-compose.

Apart from that, the Sign In button could add target="_top" to allow user sign in inside an iframe.

[SHOULD] Double tag FIWARE Release

Yes I know the existing version numbers currently align, but could you please add an additional tags to indicate which version aligns with which FIWARE release- you can see a similar examples here:

IoT Agent JSON

  • dd79474 - FIWARE 7.5.1, FIWARE_7.5, -FIWARE_7.4

[SHOULD] Every GE should have tutorial information

At the moment Business API has a information in the Academy and fulfils the minimum Training section requirements. This is a placeholder to ensure a simple Business API hello world gets added to the Step-by-Step tutorials at some point

  • Presence of a tutorial is a SHOULD requirement

Notification URL and other doubts

Hi!
I'm building a web app using Fiware, and I have deployed an instance of Business-API-Ecosystem.
I am using version 5.4.1.
I have some questions about how this GE works..

  • In previous versions of the WStore, there was a "Notification_Url" which could be set to receive notifications of purchases made in the store. Is there something similar in this new Ecosystem?? In that case, who is notified? Seller or Store Admin?
  • What if a "Seller" user doesn´t have a Paypal account associated with their Fiware Account email? How are they paid?
  • Is there a way to authorize users of fiware to have "Seller" role via API, without going to FI-Ware Web Portal?
  • If I have already an authorized user in my web app(using fiware IDM), could this user create Products specifications and offerings via API without having to log-in at Business-Api instance??? (Suposing that this user is admin in both my app and Business-Api instance). In previous version of Wstore i had to modify middleware...

Thanks for your attention. I’m looking forward to your reply.

Extension for data sources offering

I would like to have additional metadata for the data sources published. That they could link to the corresponding data model in the smart data models program.
It can be easily drilled down from the official data models list.
It could be point out to the schema (json schema describing the attributes), example, or to the written spec, example.

Acquire dataset from CKAN + BIZ

Hi,
I have two users, one with "Seller" role and another one with "Provider" role.
Seller user has been created a dataset, publish and offering of the dataset and it works correctly.
Provider user use CKAN to acquire dataset for that, he click on "acquire" button that appear on the right side of dataset name. It redirect correctly to Biz Ecosystem Marketplace and he can checkout and pay for it (Free in this case).
Until now it seems that everything works well but when he wants to see the acquired dataset he CAN'T. The status in CKAN is the same the dataset contains "acquire" button.
You can see in this figure:

I think that in Postgres it should be fill some record in "package_allowed_users" when I put it manually it works.

Please someone can help me with this,
Thank you
Urtza
ckan

Inventory productSpecification not shown when calling /DSProductInventory/api/productInventory/v2/product

In version 5.4.1, when calling http API /DSProductInventory/api/productInventory/v2/product, response doesn't show the field 'productSpecification' inside each offering. Example response at the bottom.

I think this is a bug, how I could fix it?

I know there is a new version, but I can't update at this moment and I'd like to fix it on 5.4.1.

Example:

[
    {
        "id": 112,
        "href": "http://localhost:8080/DSProductInventory/api/productInventory/v2/product/112",
        "name": " oid=227",
        "status": "Active",
        "startDate": "2018-04-26T09:51:27Z",
        "orderDate": null,
        "terminationDate": null,
        "productOffering": {
            "id": "351",
            "href": "http://193.144.35.147:8000/DSProductCatalog/api/catalogManagement/v2/catalog/165/productOffering/351:(0.1)"
        },
        "productCharacteristic": [
            {
                "name": "BLUEPRINT_PATH",
                "value": "https://github.com/MSO4SC/resources/blob/master/blueprint-examples/single-singularity-job.tar.gz?raw=true"
            }
        ],
        "productRelationship": [],
        "billingAccount": [
            {
                "id": "109",
                "href": "http://193.144.35.147:8000/DSBillingManagement/api/billingManagement/v2/billingAccount/109"
            }
        ],
        "relatedParty": [
            {
                "id": "jcarnerodev",
                "role": "Customer",
                "href": "http://193.144.35.147:8000/DSPartyManagement/api/partyManagement/v2/individual/jcarnerodev"
            },
            {
                "id": "jcarnero",
                "role": "Seller",
                "href": "http://193.144.35.147:8000/DSPartyManagement/api/partyManagement/v2/individual/jcarnero"
            }
        ],
        "realizingResource": [],
        "realizingService": [],
        "productPrice": [],
        "agreement": []
    }
]

Cannot complete a purchase

Hi all,
I am working with the BAE version 6.4.0 (have adapted the docker compose file to retrieve the v6.4.0 version of each docker build). Whenever I try to purchase a digital asset (whether for free or with a price plan) I got an error "Your order could not be processed". I past the output of tcpdump listening on the charging backend:

`POST /charging/api/orderManagement/orders HTTP/1.1
content-type: application/json
accept: application/json
Authorization: Bearer B80xgVLgHNq2W0aPjkpAxpUjLxtWYf
X-Nick-Name: buyer
X-Email: [email protected]
X-Display-Name: buyer
X-Roles:
X-Actor: buyer
host: charging.docker:8006
content-length: 1558
Connection: close

{"id":364,"href":"http://127.0.0.1:8004/DSProductOrdering/api/productOrdering/v2/productOrder/364","priority":"4","category":"uncategorized","state":"Acknowledged","orderDate":"2018-03-13T17:42:57Z","completionDate":null,"requestedStartDate":"2018-03-13T17:43:14Z","requestedCompletionDate":"2018-03-13T17:43:14Z","expectedCompletionDate":null,"notificationContact":"[email protected]","note":[],"relatedParty":[{"id":"buyer","href":"http://127.0.0.1:8004/DSPartyManagement/api/partyManagement/v2/individual/buyer","role":"Customer"},{"id":"dan","href":"http://127.0.0.1:8004/DSPartyManagement/api/partyManagement/v2/individual/dan","role":"Seller"}],"orderItem":[{"id":"0","action":"add","state":"Acknowledged","billingAccount":[{"id":"1","href":"http://127.0.0.1:8004/DSBillingManagement/api/billingManagement/v2/billingAccount/1"}],"productOffering":{"id":"57","href":"http://127.0.0.1:8004/DSProductCatalog/api/catalogManagement/v2/catalog/1/productOffering/57"},"product":{"startDate":null,"orderDate":null,"terminationDate":null,"productCharacteristic":[{"name":"Asset type","value":"Basic Service"},{"name":"Media type","value":"mu"},{"name":"Location","value":"http://www.u.com"}],"productRelationship":[],"billingAccount":[],"relatedParty":[{"id":"buyer","role":"Customer","href":"http://127.0.0.1:8004/DSPartyManagement/api/partyManagement/v2/individual/buyer"},{"id":"dan","role":"Seller","href":"http://127.0.0.1:8004/DSPartyManagement/api/partyManagement/v2/individual/dan"}],"realizingResource":[],"realizingService":[],"productPrice":[],"agreement":[]}}]}

17:43:15.308531 IP 31455b529bae.8006 > compose_proxy_1.main.48696: Flags [P.], seq 1:259, ack 1897, win 256, options [nop,nop,TS val 22055198 ecr 22055171], length 258
E..6A.@[email protected].....
.P...P..HTTP/1.1 500 INTERNAL SERVER ERROR
Date: Tue, 13 Mar 2018 17:43:15 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Length: 65
Connection: close
Content-Type: application/json; charset=utf-8

{"result": "error", "error": "Your order could not be processed"}`

Do you have experienced a similar issue before?

The server has failed validating the product specification

Hi!
I'm trying to create a Product Specification in my new deployed BAE and I am getting the following error:

{"error":"The server has failed validating the product specification"}

I am trying to create the Specification via Web Portal and via API Rest, and both methods throw the same error.
My installed version of the BAE is 6.4.0, deployed in a Virtual Machine at FIWARE Cloud.

I don't know if it could be a configuration problem or a bug..

Failed to retrieve charge periods AND Failed to retrieve currency codes starting business-ecosystem-logic-proxy

Hi,
When I start business-ecosystem-logic-proxy appears this error.

root@CkanServer:/home/user1/Business-API-Ecosystem/business-ecosystem-logic-proxy# node server
(node:9281) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
Subscribed to inventory hub!
2018-09-27 12:24:20.538  - INFO: Server - Business Ecosystem Logic Proxy starting on port 81
2018-09-27 12:24:20.547  - INFO: Server - URL DATA:{"path":"charging","host":"localhost","port":"8006","appSsl":false}
2018-09-27 12:24:21.674  - **ERROR: Server - Failed to retrieve currency codes**

I don't know if it is mandatory or not for BIZ Ecosystem. I can't find the urls that in server.js (function onlistening() appear. These are the following:

pathname: '/'+ urldata.path + '/api/assetManagement/chargePeriods/',
pathname: '/'+ urldata.path + '/api/assetManagement/currencyCodes/',

I take a look in /home/user1/Business-API-Ecosystem/business-ecosystem-charging-backend/src/wstore/urls.py (DJANGO) and I have the followings:

urlpatterns = patterns('',
    # API
    url(r'^charging/api/assetManagement/assets/?$', offering_views.AssetCollection(permitted_methods=('GET',))),
    url(r'^charging/api/assetManagement/assets/uploadJob/?$', offering_views.UploadCollection(permitted_methods=('POST',))),
    url(r'^charging/api/assetManagement/assets/validateJob/?$', offering_views.ValidateCollection(permitted_methods=('POST',))),
    url(r'^charging/api/assetManagement/assets/offeringJob/?$', offering_views.ValidateOfferingCollection(permitted_methods=('POST',))),
    url(r'^charging/api/assetManagement/assets/(?P<asset_id>\w+)/?$', offering_views.AssetEntry(permitted_methods=('GET',))),
    url(r'^charging/api/assetManagement/assets/(?P<asset_id>\w+)/upgradeJob/?$', offering_views.UpgradeCollection(permitted_methods=('POST',))),
    url(r'^charging/api/assetManagement/assets/product/(?P<product_id>\w+)/?$', offering_views.AssetEntryFromProduct(permitted_methods=('GET',))),
    url(r'^charging/api/assetManagement/assetTypes/?$', plugins_views.PluginCollection(permitted_methods=('GET', ))),
    url(r'^charging/api/assetManagement/assetTypes/(?P<plugin_id>[\w -]+)/?$', plugins_views.PluginEntry(permitted_methods=('GET',))),

    url(r'^charging/api/orderManagement/orders/?$', ordering_views.OrderingCollection(permitted_methods=('POST',))),
    url(r'^charging/api/orderManagement/orders/accept/?$', charging_views.PayPalConfirmation(permitted_methods=('POST',))),
    url(r'^charging/api/orderManagement/orders/cancel/?$', charging_views.PayPalCancellation(permitted_methods=('POST',))),
    url(r'^charging/api/orderManagement/orders/refund/?$', charging_views.PayPalRefund(permitted_methods=('POST',))),
    url(r'^charging/api/orderManagement/products/?$', ordering_views.InventoryCollection(permitted_methods=('POST',))),
    url(r'^charging/api/orderManagement/products/renewJob/?$', ordering_views.RenovationCollection(permitted_methods=('POST',))),
    url(r'^charging/api/orderManagement/accounting/?$', accounting_views.ServiceRecordCollection(permitted_methods=('POST',))),
    url(r'^charging/api/orderManagement/accounting/refresh/?$', accounting_views.SDRRefreshCollection(permitted_methods=('POST',))),
    url(r'^charging/api/reportManagement/created/?$', reports_views.ReportReceiver(permitted_methods=('POST',)))
)

Please someone can help with this.
Thanks.

The user making the request and the specified owner are not the same user

Hi All,
in my current installation of business api Ecosystem, i have this error when i try to create a catalog:
"The user making the request and the specified owner are not the same user".
In the screen attached i have seen that MKPL try a REST call in POST to send data, but the status code is "403 forbidden" and response {"error":"The user making the request and the specified owner are not the same user"}

Does anyone know the reason of the problem?

thank you
Francesco

error-bae

Can't make docker image run properly

Hi,

I'm having some trouble trying to make the new docker image work, either single or compose versions. Running both examples I'm getting the errors below.

I tried with my own config, and just running the examples provided without changing anything, but the same issues occurs. Maybe is there some bug in the examples? What are the minimal changes in configuration I must do to have a working biz in docker?

....

apis_1      | ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
apis_1      | mysql: [Warning] Using a password on the command line interface can be insecure.
charging_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.7. Set the 'ServerName' directive globally to suppress this message
apis_1      | ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
apis_1      | mysql: [Warning] Using a password on the command line interface can be insecure.
apis_1      | ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
apis_1      | mysql: [Warning] Using a password on the command line interface can be insecure.
apis_1      | ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
apis_1      | mysql: [Warning] Using a password on the command line interface can be insecure.
apis_1      | ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
apis_1      | mysql: [Warning] Using a password on the command line interface can be insecure.
apis_1      | ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
apis_1      | mysql: [Warning] Using a password on the command line interface can be insecure.
charging_1  |    ...done.
apis_1      | ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
apis_1      | mysql: [Warning] Using a password on the command line interface can be insecure.
apis_1      | ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
apis_1      | Deploying APIs

....

rss_1       | remote failure: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error
 creating bean with name 'bmCurrencyLoader': Invocation of init method failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCE
xception: Could not open connection. Please see server.log for more details.
rss_1       | Command deploy failed.
rss_1       | RSS deployed

....

apis_1      |
apis_1      |
apis_1      |   RAN: /glassfish4/glassfish/bin/asadmin deploy --force false --contextroot DSProductCatalog --name DSProductCatalog DSProductCatalog.war
apis_1      |
apis_1      |   STDOUT:
apis_1      | Command deploy failed.
apis_1      |
apis_1      |
apis_1      |   STDERR:
apis_1      | remote failure: Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
apis_1      | Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: The connection could not be allocated: Could not create connection to database server.
apis_1      | Error Code: 0. Please see server.log for more details.
apis_1      |
apis_1      | API DSPRODUCTCATALOG2 could not be deployed
apis_1      |
apis_1      |
apis_1      |   RAN: /glassfish4/glassfish/bin/asadmin deploy --force false --contextroot DSProductOrdering --name DSProductOrdering DSProductOrdering.war
apis_1      |
apis_1      |   STDOUT:
apis_1      | Command deploy failed.
apis_1      |
apis_1      |
apis_1      |   STDERR:
apis_1      | remote failure: Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
apis_1      | Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: The connection could not be allocated: Could not create connection to database server.
apis_1      | Error Code: 0. Please see server.log for more details.
apis_1      |
apis_1      | API DSPRODUCTORDERING could not be deployed
apis_1      |
apis_1      |
apis_1      |   RAN: /glassfish4/glassfish/bin/asadmin deploy --force false --contextroot DSProductInventory --name DSProductInventory DSProductInventory.war
apis_1      |
apis_1      |   STDOUT:
apis_1      | Command deploy failed.
apis_1      |
apis_1      |
apis_1      |   STDERR:
apis_1      | remote failure: Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
apis_1      | Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: The connection could not be allocated: Could not create connection to database server.
apis_1      | Error Code: 0. Please see server.log for more details.
apis_1      |
apis_1      | API DSPRODUCTINVENTORY could not be deployed
apis_1      |
apis_1      |
apis_1      |   RAN: /glassfish4/glassfish/bin/asadmin deploy --force false --contextroot DSPartyManagement --name DSPartyManagement DSPartyManagement.war
apis_1      |
apis_1      |   STDOUT:
apis_1      | Command deploy failed.
apis_1      |
apis_1      |
apis_1      |   STDERR:
apis_1      | remote failure: Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
apis_1      | Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: The connection could not be allocated: Could not create connection to database server.
apis_1      | Error Code: 0. Please see server.log for more details.
apis_1      |
apis_1      | API DSPARTYMANAGEMENT could not be deployed
apis_1      |
apis_1      |
apis_1      |   RAN: /glassfish4/glassfish/bin/asadmin deploy --force false --contextroot DSBillingManagement --name DSBillingManagement DSBillingManagement.war
apis_1      |
apis_1      |   STDOUT:
apis_1      | Command deploy failed.
apis_1      |
apis_1      |
apis_1      |   STDERR:
apis_1      | remote failure: Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
apis_1      | Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: The connection could not be allocated: Could not create connection to database server.
apis_1      | Error Code: 0. Please see server.log for more details.
apis_1      |
apis_1      | API DSBILLINGMANAGEMENT could not be deployed
apis_1      |
apis_1      |
apis_1      |   RAN: /glassfish4/glassfish/bin/asadmin deploy --force false --contextroot DSCustomerManagement --name DSCustomerManagement DSCustomerManagement.war
apis_1      |
apis_1      |   STDOUT:
apis_1      | Command deploy failed.
apis_1      |
apis_1      |
apis_1      |   STDERR:
apis_1      | remote failure: Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
apis_1      | Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: The connection could not be allocated: Could not create connection to database server.
apis_1      | Error Code: 0. Please see server.log for more details.
apis_1      |
proxy_1     | --2018-05-04 14:09:14--  http://apis.docker:8080/DSProductInventory
proxy_1     | Resolving apis.docker (apis.docker)... 172.18.0.5
proxy_1     | Connecting to apis.docker (apis.docker)|172.18.0.5|:8080... connected.
proxy_1     | HTTP request sent, awaiting response... 404 Not Found
proxy_1     | 2018-05-04 14:09:14 ERROR 404: Not Found.
proxy_1     |
proxy_1     | Glassfish APIs not deployed yet, retrying in 5 seconds...
apis_1      | API DSCUSTOMER could not be deployed
apis_1      |
apis_1      |
apis_1      |   RAN: /glassfish4/glassfish/bin/asadmin deploy --force false --contextroot DSUsageManagement --name DSUsageManagement DSUsageManagement.war
apis_1      |
apis_1      |   STDOUT:
apis_1      | Command deploy failed.
apis_1      |
apis_1      |
apis_1      |   STDERR:
apis_1      | remote failure: Error occurred during deployment: Exception while preparing the app : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
apis_1      | Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: The connection could not be allocated: Could not create connection to database server.
apis_1      | Error Code: 0. Please see server.log for more details.
apis_1      |
apis_1      | API DSUSAGEMANAGEMENT could not be deployed
apis_1      | 194.504135847

....

proxy_1     | Creating indexes...
proxy_1     | Error:  undefined
proxy_1     | The default theme is configured and debug mode is active, nothing to do
proxy_1     | (node:199) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-
client
mongo_1     | 2018-05-04T14:10:27.567+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.6:41018 #3 (1 connection now open)
mongo_1     | 2018-05-04T14:10:27.670+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.6:41022 #4 (2 connections now open)
proxy_1     | Error reading inventory hubs: 404
proxy_1     | 2018-05-04 14:10:28.026  - INFO: Server - Business Ecosystem Logic Proxy starting on port 8000
mongo_1     | 2018-05-04T14:10:28.694+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.7:32866 #5 (3 connections now open)
mongo_1     | 2018-05-04T14:10:28.698+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.7:32868 #6 (4 connections now open)
mongo_1     | 2018-05-04T14:10:28.730+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.7:32872 #7 (5 connections now open)
mongo_1     | 2018-05-04T14:10:28.734+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.7:32874 #8 (6 connections now open)
proxy_1     | 2018-05-04 14:10:28.765  - ERROR: Server - Failed to retrieve currency codes

Create an "admin" user

I have create an application in IDM when I have authorize a user with two roles:
-Seller
-Provider

I am not be able to access "Administration" section of the web portal.
How can I do this?

I have to create an organization or what are the steps to do this?,
is it possible to create an user with two roles?

Thanks in advance
Urtza

Cannot Open the Revenue Sharing Section

I have installed the Business API Ecosystem, configured it and run the server. I have a user with all three roles, (provider, purchaser and seller). I can create catalogs, product specifications etc. However, I cannot create Product offering, as we need to have at least one Revenue Sharing model saved beforehand.

However, upon clicking the Revenue Sharing section, an error is displayed :
"An unexpected error in the RSS API prevented your request to be processed"

A sample output from the server is :

2016-11-13 02:50:11.460 - INFO: TMF - 61193f61-7f76-47b2-b0db-33f4383eab18 - ::ffff:79.194.126.95 - sameerstg - GET: /DSRevenueSharing/rss/models?providerId=sameerstg - Validating RSS provider
2016-11-13 02:50:11.575 - WARN: TMF - 61193f61-7f76-47b2-b0db-33f4383eab18 - ::ffff:79.194.126.95 - sameerstg - GET: /DSRevenueSharing/rss/models?providerId=sameerstg - Pre-Validation (DSRevenueSharing): An unexpected error in the RSS API prevented your request to be processed
2016-11-13 02:50:11.577 - WARN: Server - 61193f61-7f76-47b2-b0db-33f4383eab18 - ::ffff:79.194.126.95 - sameerstg - GET: /DSRevenueSharing/rss/models?providerId=sameerstg - Status: 500

I assume this means that it has trouble accessing the database, but the RSS database is created in mysql, and I have saved the database.properties file in the default location.

Thank you for looking through the issue.
Sameer

The offering could not be published: Store: Resource matching query does not exist.

Hi,
I am trying to publish a CKAN dataset from CKAN to BIZ Ecosystem and I get this error:

The offering could not be published:

Store: Resource matching query does not exist.

It happens using a "donostia dataset1" name of dataset, if I use other it works well. I have tried to remove information from ckan_default Postgres database and from mongo database and I can't resolve it.
Please someone can help me with that?
Thanks in advance
Urtza

Mismatch in update view of telephone business addresses

When I create a telephone business address and select the "update" button, the update form screen doesn't display the current telephone number, but if I update the phone number and click again it appears as text in the expected way (and even if I create new telephone business addresses they act as expected too!)

image

image

Redeploy fiware-rss/target/DSRevenueSharing.war Fails

Hello @ALL,
please help trying to deploy the last release (v7.6.0) but it fails on:
cd business-ecosystem-rss
Redeploy fiware-rss/target/DSRevenueSharing.war
...
...
`asadmin deploy --force true --contextroot DSRevenueSharing --name DSRevenueSharing fiware-rss/target/DSRevenueSharing.war

STDOUT:
Command deploy failed.

STDERR:
remote failure: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cdrsManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private es.upm.fiware.rss.service.UserManager es.upm.fiware.rss.service.CdrsManager.userManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.fact... (754 more, please see e.stderr)`

Elasticsearch ERROR while deploying docker-compose file

Hello, i am trying to run the latest version of docker-compose.yml file in a VM with Ubuntu 20.04.2 LTS and i have two problems:

Problem 1:
charging_1 | --2021-03-11 12:14:33-- http://apis.docker:8080/DSProductInventory
charging_1 | Resolving apis.docker (apis.docker)... 172.22.0.8
charging_1 | Connecting to apis.docker (apis.docker)|172.22.0.8|:8080... connected.
charging_1 | HTTP request sent, awaiting response... 404 Not Found
charging_1 | 2021-03-11 12:14:33 ERROR 404: Not Found.
charging_1 |
charging_1 | Inventory API not ready retrying in 5 seconds...
proxy_1 | --2021-03-11 12:14:34-- http://apis.docker:8080/DSProductInventory
proxy_1 | Resolving apis.docker (apis.docker)... 172.22.0.8
proxy_1 | Connecting to apis.docker (apis.docker)|172.22.0.8|:8080... connected.
proxy_1 | HTTP request sent, awaiting response... 404 Not Found
proxy_1 | 2021-03-11 12:14:34 ERROR 404: Not Found.
proxy_1 |
proxy_1 | Glassfish APIs not deployed yet, retrying in 5 seconds...

repeats N times until

rss_1 | Application deployed with name DSRevenueSharing.
rss_1 | Command deploy executed successfully.
rss_1 | RSS deployed
charging_1 | --2021-03-11 12:15:03-- http://apis.docker:8080/DSProductInventory
charging_1 | Resolving apis.docker (apis.docker)... 172.22.0.8
charging_1 | Connecting to apis.docker (apis.docker)|172.22.0.8|:8080... connected.
charging_1 | HTTP request sent, awaiting response... 301 Moved Permanently
charging_1 | Location: http://apis.docker:8080/DSProductInventory/ [following]
charging_1 | --2021-03-11 12:15:03-- http://apis.docker:8080/DSProductInventory/
charging_1 | Reusing existing connection to apis.docker:8080.
proxy_1 | --2021-03-11 12:15:04-- http://apis.docker:8080/DSProductInventory
proxy_1 | Resolving apis.docker (apis.docker)... 172.22.0.8
proxy_1 | Connecting to apis.docker (apis.docker)|172.22.0.8|:8080... connected.
proxy_1 | HTTP request sent, awaiting response... 301 Moved Permanently
proxy_1 | Location: http://apis.docker:8080/DSProductInventory/ [following]
proxy_1 | --2021-03-11 12:15:04-- http://apis.docker:8080/DSProductInventory/
proxy_1 | Reusing existing connection to apis.docker:8080.

Do I need to add any files or anything for the path to work?

Problem 2:
proxy_1 | Elasticsearch ERROR: 2021-03-11T12:15:07Z
proxy_1 | Error: Request error, retrying
proxy_1 | HEAD http://elastic.docker:9200/ => getaddrinfo ENOTFOUND elastic.docker elastic.docker:9200
proxy_1 | at Log.error (/business-ecosystem-logic-proxy/node_modules/elasticsearch/src/lib/log.js:239:56)
proxy_1 | at checkRespForFailure (/business-ecosystem-logic-proxy/node_modules/elasticsearch/src/lib/transport.js:298:18)
proxy_1 | at HttpConnector. (/business-ecosystem-logic-proxy/node_modules/elasticsearch/src/lib/connectors/http.js:171:7)
proxy_1 | at ClientRequest.wrapper (/business-ecosystem-logic-proxy/node_modules/lodash/lodash.js:4929:19)
proxy_1 | at emitOne (events.js:116:13)
proxy_1 | at ClientRequest.emit (events.js:211:7)
proxy_1 | at Socket.socketErrorListener (_http_client.js:387:9)
proxy_1 | at emitOne (events.js:116:13)
proxy_1 | at Socket.emit (events.js:211:7)
proxy_1 | at emitErrorNT (internal/streams/destroy.js:66:8)
proxy_1 |
proxy_1 | Elasticsearch WARNING: 2021-03-11T12:15:07Z
proxy_1 | Unable to revive connection: http://elastic.docker:9200/
proxy_1 |
proxy_1 | Elasticsearch WARNING: 2021-03-11T12:15:07Z
proxy_1 | No living connections
elasticsearch

Can't reach the Elasticsearch container through http://elastic.docker:9200/.

Organization roles are ignored

Users roles are ignored when assigned through an organization:

An user that is a member of an organization which is authorised in a certain application with seller role, appears in the web interface as no seller. However if you authorise the user directly in the application with the seller role, this user appears as a seller in the biz web interface.

CKAN_dataset plugin problem in "on_post_product_spec_validation" method

Good morning,
I am trying to do a Product Specification using as Digital Asset, CKAN Dataset.
For that I have to load CKAN-Dataset plugin. I install the latest one because it has support with IDM 7.
This plugin support Umbrella too but for me it is not necessary.
When I was creating a Product Specification I found an error or an understanding for me ;-) in ckan_dataset.py file in "on_post_product_spec_validation" method.
In this pluging there is a setting.py file where you can put variables like:
AUTH_METHOD = 'idm'
Looking into ckan_dataset.py nobody call to this method,

def _get_api_client(self, url):
        # Return API Client (Umbrella or keystone) depending on the authorization mechanism
        return self._clients[AUTH_METHOD](url)


After in on_post_product_spec_validation method it puts:

  def on_post_product_spec_validation(self, provider, asset):
        
	  
	# Read CKAN dataset resources in order to determine the broker URLs
        token = User.objects.get(username=provider.name).userprofile.access_token
        dataset_info = self._get_dataset_info(asset.get_url(), token)['result']
	print ("on_post_product_spec_validation")
        for resource in dataset_info['resources']:
            # If the CKAN resource is a URL, save it in order to enable activation and accounting
            if 'url' in resource and len(resource['url']) > 0:

                # Validate that the service exists and is secured with API Umbrella
                **app_id = self._check_dataset_api(resource['url'], provider.name)**

                if 'resources' not in asset.meta_info:
                    asset.meta_info['resources'] = []

                asset.meta_info['resources'].append({
                    'url': resource['url'],
                    'app_id': app_id
                })

                # Check that the provided role is valid for the given API service
                self._check_role(app_id, asset.meta_info['role'], resource['url'])

        asset.save()

And in check_dataset_api(resource['url'], provider.name) method in third line appear reference to umbrella client to get an app_id and the funcion return app_id
If I have not got Umbrella the code returns error.
:

def _check_dataset_api(self, url, provider_name):
      parsed_url = urlparse(url)
      server = '{}://{}'.format(parsed_url.scheme, parsed_url.netloc)

      **umbrella_client = UmbrellaClient(server)
      app_id = umbrella_client.validate_service(parsed_url.path)

      if app_id is None:
          # Raise an error since this plugin only supports FIWARE IDM role authorization
          raise PluginError('The dataset resource {} is not configured to support idm authentication'.format(url))**

      # Check if the provided app_id is valid for the included keystone instance
      keystone_client = self._get_keystone_client(url)
      keystone_client.check_ownership(app_id, provider_name)

      return app_id

If I haven't got Umbrella where I get the app id?

I thinks so that in def_check_dataset_api should be a call to def _get_api_client(self, url): and depending on that follow.

Please, I have amn European Project review in 22th October and I would like to show all of this working properly.
I have IDM KeyRock v7.01 and Biz 6.4.1 versions.
Someone can help me with this.?
Thanks
Urtza

Can't operate with products after changing IDM to HTTPS!

Hi, after changing IDM to https, "old" products and offerings can not be updated nor operated with them (If we create a new product everything works as expected). We also changed marketplace from port 8004 to port 80, but I guess that is not related to it. We are using latest docker develop images.

This is a critical problem for us right now!!

marketplace_bug
marketplace_bug2
marketplace_bug3
marketplace_bug4

How to assign the seller role?

How do I assign the seller role to a user of an BAE application? I've read the docs put can't find it anywhere. I've looked in both the BAE and the IdM but I can't find the Seller role, only provider and purchaser.

I'm running a private BAE with docker and using the online lab IdM.

I can't complete my order

Hi,
I'm using the last release of Business-API-Ecosystem but I can't checkout because of the following error:
"There was an error at the time of retrieving the Billing Address".

Thanks for your attention. I’m looking forward to your reply.

issue_640
issue_640_2

The server has failed validating the product specification

I am trying to publish an offer in CKAN using BAE Publisher plugin.
For that previously I have to create catalogs, categories, product specification and at latst offer in BAE.
The error appear when I create product specification.
The problem appear when I am using a digital product. For that I have installed CKAN dataset plugin.
If I don't use a digital product Product Specification is created correctly.
Please someone can't help me.
Thanks in advance
Urtza

Can't sign in: Invalid request: only one authentication method is allowed

During the sign-in process, after authorising my user in the IDM, the proxy fails to finish properly with the exception below.

I'm using docker compose, v6.4.0 version of the proxy. IDM is version 7.0.0

biz         | FATAL: Server - a206762f-3016-481a-b231-c75155dda968 - ::ffff:10.38.0.1 - Anonymous - GET: /auth/fiware/callback?code=0c7ab0efe58c911bc17a3dd8e19a37b4a59b2c9c&state=eyJjYW1lX2Zyb21fcGF0aCI6Ii8ifQ - Unexpected unhandled exception - InternalOAuthError: failed to fetch user profile. Stack trace:
biz         | InternalOAuthError: failed to fetch user profile (status: 400 data: {"statusCode":400,"status":400,"code":400,"message":"Invalid request: only one authentication method is allowed","name":"invalid_request"})
biz         |     at /business-ecosystem-logic-proxy/node_modules/passport-fiware-oauth/lib/passport-fiware-oauth/oauth2.js:89:19
biz         |     at passBackControl (/business-ecosystem-logic-proxy/node_modules/oauth/lib/oauth2.js:132:9)
biz         |     at IncomingMessage.<anonymous> (/business-ecosystem-logic-proxy/node_modules/oauth/lib/oauth2.js:157:7)
biz         |     at emitNone (events.js:91:20)
biz         |     at IncomingMessage.emit (events.js:185:7)
biz         |     at endReadableNT (_stream_readable.js:974:12)
biz         |     at _combinedTickCallback (internal/process/next_tick.js:74:11)
biz         |     at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Can't sign in: Invalid request: only one authentication method is allowed

Hi @fdelavega,
I have the same problem as emetrepes.

FATAL: Server - 04a4d6fc-f264-4887-a29a-b384191d1f78 - ::1 - Anonymous - GET: /auth/fiware/callback?code=a76b0fafeaaf7b7578f1bd45e973502fb1bf8269&state=eyJjYW1lX2Zyb21fcGF0aCI6Ii8ifQ - Unexpected unhandled exception - InternalOAuthError: failed to fetch user profile. Stack trace:
InternalOAuthError: failed to fetch user profile (status: 400 data: "Invalid request: only one authentication method is allowed")
    at /home/user1/Business-API-Ecosystem/business-ecosystem-logic-proxy/node_modules/passport-fiware-oauth/lib/passport-fiware-oauth/oauth2.js:106:19
    at passBackControl (/home/user1/Business-API-Ecosystem/business-ecosystem-logic-proxy/node_modules/oauth/lib/oauth2.js:139:9)
    at IncomingMessage.<anonymous> (/home/user1/Business-API-Ecosystem/business-ecosystem-logic-proxy/node_modules/oauth/lib/oauth2.js:164:7)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)

I have install KeyRock using git clone and the version that I have is:

{
	"keyrock": {
		"version": "7.0.1",
		"release_date": "2018-06-25",
		"uptime": "",
		"git_hash": "https://github.com/ging/fiware-idm/releases/tag/7.0.1",
		"doc": "https://fiware-idm.readthedocs.io/en/7.0.1/",
		"api": {
			"version": "v1",
			"link": ""
		}
	}
}

I have downloaded Biz-Ecosystem from git and installed using script.
git clone https://github.com/FIWARE-TMForum/Business-API-Ecosystem.git

Do you know how can I solve my problem?

Thanks
Urtza

[SHOULD] run tests on CI

There are currently no Unit Tests run on CI on push.

Please either add a test step to the existing travis script or expose test results in some other manner.

  • running tests on CI is a SHOULD requirement from TSC
  • Adding a Unit test badge/link is a MUST requirement from TSC

Business addresses not being properly deleted

When I create a business address of any kind and press the "delete" icon in Actions the PATCH response given is the same as the POST response of creation.

POST:

{
    "id": "idm_user",
    "href": "http://apis.docker:8080/DSPartyManagement/api/partyManagement/v2/individual/idm_user",
    "gender": "",
    "placeOfBirth": "",
    "countryOfBirth": "",
    "nationality": "",
    "maritalStatus": "",
    "birthDate": null,
    "title": "",
    "givenName": "idm",
    "familyName": "idm",
    "disability": [],
    "characteristic": [],
    "otherName": [],
    "individualIdentification": [],
    "externalReference": [],
    "relatedParty": [],
    "contactMedium": [
        {
            "type": "Email",
            "medium": {
                "emailAddress": "[email protected]"
            },
            "preferred": "false"
        }
    ]
}

PATCH (after pressing delete):

{
    "id": "idm_user",
    "href": "http://apis.docker:8080/DSPartyManagement/api/partyManagement/v2/individual/idm_user",
    "gender": "",
    "placeOfBirth": "",
    "countryOfBirth": "",
    "nationality": "",
    "maritalStatus": "",
    "birthDate": null,
    "title": "",
    "givenName": "idm",
    "familyName": "idm",
    "disability": [],
    "characteristic": [],
    "otherName": [],
    "individualIdentification": [],
    "externalReference": [],
    "relatedParty": [],
    "contactMedium": [
        {
            "type": "Email",
            "medium": {
                "emailAddress": "[email protected]"
            },
            "preferred": "false"
        }
    ]
}

But if I create multiple business addresses I can delete all but the last one I try to delete, and if I try to delete all and then post one the one I posted replaces the last one "deleted".

Internal Server Error: /charging/api/orderManagement/orders

Hi all,
I am working with the last BAE version
We got error trying to check out the product to complete the purchase. We got error "The server has failed processing your order".
Here the log of the charging backend

INFO [2024-01-19 10:07:22,627]: (charging_engine) Resolving charging of type initial for order Order object (65aa9e3a45f4f0f6c02a3e08)
INFO [2024-01-19 10:07:22,627]: (charging_engine) Resolving initial charges for order 526
DEBUG [2024-01-19 10:07:22,627]: (charging_engine) Processing contract 0
DEBUG [2024-01-19 10:07:22,627]: (price_resolver) Calculating price with {'single_payment': [{'value': '200.00', 'unit': 'one time', 'tax_rate': '20.00', 'duty_free': '166.67'}], 'alteration': {'type': 'discount', 'value': 5.0, 'period': 'one time', 'condition': {'operation': 'ge', 'value': '200'}}}
DEBUG [2024-01-19 10:07:22,627]: (price_resolver) Processing alteration: {alteration}
DEBUG [2024-01-19 10:07:22,628]: (price_resolver) Processed alteration OK
DEBUG [2024-01-19 10:07:22,628]: (price_resolver) Calculated price with {'single_payment': [{'value': '200.00', 'unit': 'one time', 'tax_rate': '20.00', 'duty_free': '166.67'}], 'alteration': {'type': 'discount', 'value': 5.0, 'period': 'one time', 'condition': {'operation': 'ge', 'value': '200'}}}:
Price: 190.00 | Duty_free: 158.34
DEBUG [2024-01-19 10:07:22,632]: (charging_engine) Transaction for item 0 appended
INFO [2024-01-19 10:07:22,632]: (charging_engine) Starting charging process
DEBUG [2024-01-19 10:07:22,632]: (rollback) Rolling back model creation: Order object (65aa9e3a45f4f0f6c02a3e08)
DEBUG [2024-01-19 10:07:22,634]: (http) Building response for POST /charging/api/orderManagement/orders
ERROR [2024-01-19 10:07:22,670]: (log) Internal Server Error: /charging/api/orderManagement/orders
Internal Server Error: /charging/api/orderManagement/orders

Do you have experienced a similar issue before?
Thanks
Best Regard
Marialuisa

Purchase is stucked

The following purchase is in status "In progress", but in the button is "Delivered". "Reject" seems to do nothing. The user never received the product in its inventory.

marketplace_bug

The offering X has not been previously registered

When trying to checkout and order, we are now receiving this error message: The offering X has not been previously registered. -> MSO4SC/MSOPortal#126

Any hint on what could be happening? This was working a couple of weeks ago, no modifications on the setup (using develop version & docker compose).

The proxy log (charging, apis or database containers doesn't show any error):

2018-07-06 09:15:56.161  - INFO: TMF - 424efdd7-f4d3-4324-a8c9-a92e953b628b - ::ffff:79.156.187.115 - 21b177ff-a8a6-480b-881c-df26f411b7f1 - POST: /DSProductOrdering/api/productOrdering/v2/productOrder - Pre-Validation (DSProductOrdering): OK
2018-07-06 09:15:56.568  - INFO: Server - 81ef0a53-68ee-4051-993e-abe0ea784727 - ::ffff:172.18.0.7 - Anonymous - GET: /DSProductCatalog/api/catalogManagement/v2/catalog/4/productOffering/7 - request without authentication
2018-07-06 09:15:56.572  - INFO: TMF - 81ef0a53-68ee-4051-993e-abe0ea784727 - ::ffff:172.18.0.7 - Anonymous - GET: /DSProductCatalog/api/catalogManagement/v2/catalog/4/productOffering/7 - Pre-Validation (DSProductCatalog): OK
2018-07-06 09:15:56.620  - INFO: TMF - 81ef0a53-68ee-4051-993e-abe0ea784727 - ::ffff:172.18.0.7 - Anonymous - GET: /DSProductCatalog/api/catalogManagement/v2/catalog/4/productOffering/7 - Post-Validation (DSProductCatalog): OK
2018-07-06 09:15:56.626  - INFO: Server - 81ef0a53-68ee-4051-993e-abe0ea784727 - ::ffff:172.18.0.7 - Anonymous - GET: /DSProductCatalog/api/catalogManagement/v2/catalog/4/productOffering/7 - Status: 200
2018-07-06 09:15:56.793  - WARN: TMF - 424efdd7-f4d3-4324-a8c9-a92e953b628b - ::ffff:79.156.187.115 - 21b177ff-a8a6-480b-881c-df26f411b7f1 - POST: /DSProductOrdering/api/productOrdering/v2/productOrder - Post-Validation (DSProductOrdering): The offering 7 has not been previously registered
2018-07-06 09:15:56.798  - WARN: Server - 424efdd7-f4d3-4324-a8c9-a92e953b628b - ::ffff:79.156.187.115 - 21b177ff-a8a6-480b-881c-df26f411b7f1 - POST: /DSProductOrdering/api/productOrdering/v2/productOrder - Status: 400

Fiware BAE with IdM docker installations

I'm having troubles trying to authenticate an user through OAuth2 with a local IdM. It works with the IdM on FIWARE lab, but when I get to the callbackURL I get an error message on localhost:8004 stating

"There was an unexpected error that prevented the system from fulfilling the request. The error will be handled by the administrators. Sorry for the inconvenience."

This is the error message in the terminal:
proxy_1 | 2018-09-18 08:29:56.017 - FATAL: Server - 3c97b417-1c23-439d-b6a4-1561f11fd5be - ::ffff:172.20.0.1 - Anonymous - GET: /auth/fiware/callback?code=233a1e1c144b4ff2d068c07f76a67a69115b14ea&state=eyJjYW1lX2Zyb21fcGF0aCI6Ii8ifQ - Unexpected unhandled exception - InternalOAuthError: Failed to obtain access token. Stack trace:
proxy_1 | Error: connect ECONNREFUSED 127.0.0.1:3000
proxy_1 | at Strategy.OAuth2Strategy._createOAuthError (/business-ecosystem-logic-proxy/node_modules/passport-oauth2/lib/strategy.js:379:17)
proxy_1 | at /business-ecosystem-logic-proxy/node_modules/passport-oauth2/lib/strategy.js:166:45
proxy_1 | at /business-ecosystem-logic-proxy/node_modules/oauth/lib/oauth2.js:191:18
proxy_1 | at ClientRequest. (/business-ecosystem-logic-proxy/node_modules/oauth/lib/oauth2.js:162:5)
proxy_1 | at emitOne (events.js:96:13)
proxy_1 | at ClientRequest.emit (events.js:188:7)
proxy_1 | at Socket.socketErrorListener (_http_client.js:310:9)
proxy_1 | at emitOne (events.js:96:13)
proxy_1 | at Socket.emit (events.js:188:7)
proxy_1 | at emitErrorNT (net.js:1276:8)

This is my configuration in the config.js-file:
config.oauth2 = {
'server': 'http://localhost:3000',
'clientID': '158f286e-21c5-4d9c-8063-516f50530271',
'clientSecret': '1ee417d6-c0ce-4906-859c-adbed5cc00d0',
'callbackURL': 'http://localhost:8004/auth/fiware/callback',
'roles': {
'admin': 'provider',
'customer': 'customer',
'seller': 'seller',
'orgAdmin': 'orgAdmin'
}
};

I have not changed any configurations in the IdM.

Why do I get this error message?

Logout functionality does not work properly

When I logged using oauth (IDM keyrock) the first time sign in process redirects to IDM. After If I want Sign Out the req.logout function doesn't work properly.
It does not destroy the session and after when I sing in again automatically restore the user from session.

It is correct? the application is being working well?, for my understood when I sign out, I forgot session and I have to introduce my credentials again.
I am looking into bussiness-logic-proxy folder in some js files (auth.js, authenticator.js, authenticate.js, strategy.js, server.js, ....) related with this but It is impossible to discover when the error is.

Please someone can help me.
Thanks
Urtza

Apps arent loaded yet

Hi,
I following up the installation guide, using both installation scripts and finally I get an error when I exectute :

root@ge2:/home/FIWARE/Business-API-Ecosystem/business-ecosystem-charging-backend/src# ./manage.py crontab add

Traceback (most recent call last): File "./manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 308, in execute settings.INSTALLED_APPS File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 56, in __getattr__ self._setup(name) File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 110, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/home/FIWARE/Business-API-Ecosystem/business-ecosystem-charging-backend/src/settings.py", line 155, in <module> from django.contrib.sites import models as site_app File "/usr/local/lib/python2.7/dist-packages/django/contrib/sites/models.py", line 84, in <module> class Site(models.Model): File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 110, in __new__ app_config = apps.get_containing_app_config(module) File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 247, in get_containing_app_config self.check_apps_ready() File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 125, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

Machine details:

root@ge2:/home/FIWARE/Business-API-Ecosystem/business-ecosystem-charging-backend/src# uname -a Linux ge2.cloudlab.atos.net 4.4.0-98-generic #121-Ubuntu SMP Tue Oct 10 14:24:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Thanks in advance

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.