hybris error installing secureportal addon - installation

I am trying to install the "secureportaladdon". While installing it using the command:
ant addoninstall -Daddonnames="secureportaladdon" -DaddonStorefront.yb2bacceleratorstorefront="yb2bacceleratorstorefront"
I am getting the error
BUILD FAILED C:\work\trail\hybris\bin\ext-addon\addonsupport\resources\addonsupport\ant\acc-ant-addons.xml:592: The following error o ccurred while executing this line: C:\work\trail\hybris\bin\ext-addon\addonsupport\resources\addonsupport\ant\acc-ant-addons.xml:508: The following error o ccurred while executing this line: C:\work\trail\hybris\bin\ext-addon\addonsupport\resources\addonsupport\ant\acc-ant-addons.xml:354: Storefront template p arameters are missing. Set at least one storefront parameter (addonStorefront...) in command line : ant addoninstall -Da ddonnames="AddOnName1,AddOnName2" -DaddonStorefront.yacceleratorstorefront="B2CStorefront1,B2CStorefront2" -DaddonStoref ront.yb2bacceleratorstorefront="B2BStorefront1,B2BStorefront2"
Am i missing any template property to be set in the accelerator? Please help.

first of all, did you include < extension name="secureportaladdon" /> in the localextensions.xml file?
If so, instead of the ant command to install the addon you can alternatively add the "secureportaladdon" to < requires-extension > in the extensioninfo.xml file of your storefront.
Now, is "yb2bacceleratorstorefront" the storefront you want to add it to?
You can go to the administration console and check in platform/extensions, see if that extension you want is included and if its the one you want to use. If you have used the accelerator to generate your own storefront you would need to install it in yourgeneratedshopstorefront.

Related

Unable to Install Facebook Duckling on Windows - Stack Exec Fails

I'm trying to setup Facebook Duckling on Windows 10.
When I execute: stack exec duckling-example-exe it produces the following error:
duckling-example-exe.EXE: /etc/zoneinfo/: getDirectoryContents:findFirstFile: does not exist (The system cannot find the path specified.)
I don't understand why I'm getting this error since I followed the recommendation on this GitHub thread which suggests replacing "/usr/share/zoneinfo/" in Duckling/exe/ExampleMain.hs with a link to a folder containing the zoneinfo files. You can see I replaced the path as suggested in the screenshot below:
I also tried adding a double slash as seen below - but it didn't help:
I tried with forward slash instead but this didn't help either:
Moreover, I don't understand where the path: /etc/zoneinfo/ is coming from, if the path is no longer present in ExampleMain.hs? Where is the compiler pulling the path from?
Thanks!
You need to run stack exec duckling-example-exe in the directory where the stack.yaml and project.yaml files of the duckling source code is that you are trying to modify. Otherwise it will use the version of duckling from stackage without your changes.

I can't export a custom report name from html-reporter-extra

This really should be straightforward but I can't get it to work.
It's a simple setup: I have a locally run Jenkins, exported Postman collections that I'm running using newman. I got html-report-extra installed and it's generating a report but I can't get it to export the html file under a different name!
I have a locally installed Jenkins, I'm using a freestyle project and under Build - Execute Windows batch command I have this:
newman run IDMS4.postman_collection.json -e IDMS4.postman_environment.json --reporters cli,htmlextra --reporter-html-export newman/index.html --disable-unicode
This is how my Jenkins job is setup:
Jenkins job setup
Build completes but there is no index.html anywhere. This is the the part that's puzzling me.
In
.jenkins\jobs\Newman runner\htmlreports\HTMLReport
i get the default file format name (project name + timestamp).
In
.jenkins\workspace\Newman runner\newman
I also get project name + timestamp html files.
Why is this outputed to both folders and how can I get this to export just one index.html?
Please try with dot slash. eg: ./newman/index.html.
and also
if you need collection name to be in the report, please use following node module
https://www.npmjs.com/package/jaiman

Ambiguous organization in existing files:{ .... }. The --org command line argument must be specified to recreate project

While trying to run my existing flutter app on windows, got the following exeption - "Exception: No Windows desktop project configured. See https://flutter.dev/desktop#add-desktop-support-to-an-existing-flutter-app to learn about adding Windows support to a project".
After i entered the given url and trying to run the command: "flutter create --platforms=window,macos,linux ." it says: "Ambiguous organization in existing files: {il.co.project.pos, com.example}. The --org command line argument must be specified to recreate project."
Here trying to run on windows
Here trying to run the create command
choose the package name:
package_name = com.xxx
flutter create --org com.xxx .
run flutter create --org your_package_name project_name
You can try this command in your projects root folder
flutter create --platforms=windows --org=com.example.org_name .
You Probably re-use the code for new project and changed the package name that's why its causing conflict with your project
use
flutter create --org package_name .
For those wondering, you will also get this error by having a parent directory name using dashes like: this-will-fail should be: thiswillfail
After that run: flutter create --org=com.project.web .
if you run inside terminal for web if you want for iOS then simple change web on iOS like flutter create --platforms=web. if then show error like this kind of error Ambiguous organization in existing files: {com.ecobuy, com.eco_buy}. The --org command line argument must be specified to recreate project.
then simply write below line
flutter create --platforms=web --org=com.example.org_name

go-swagger restapi/configure_todo_list.go - api.TodoGetHandler undefined error

I am a newbie in go and go-swagger. I am following steps in Simple Server tutorial in goswagger.io.
I am using Ubuntu 18.04, swagger v0.25.0 and go 1.15.6.
Following the same steps, there are a few differences of the files generated. For instance, goswagger.io's has find_todos_okbody.go and get_okbody.go in models but mine does not. Why is that so?
Link to screenshot of my generated files vs
Link to screenshot of generated files by swagger.io
Starting the server as written in the tutorial go install ./cmd/todo-list-server/ gives me the following error. Can anyone please help with this?
# my_folder/swagger-todo-list/restapi
restapi/configure_todo_list.go:41:8: api.TodosGetHandler undefined (type *operations.TodoListAPI has no field or method TodosGetHandler)
restapi/configure_todo_list.go:42:6: api.TodosGetHandler undefined (type *operations.TodoListAPI has no field or method TodosGetHandler)
The first step in goswagger.io todo-list is swagger init spec .... Which directory should I run this command in? I ran it in a newly created folder in my home directory. However, from the page, it shows the path to be ~/go/src/github.com/go-swagger/go-swagger/examples/tutorials/todo-list. I am not sure whether I should use go get ..., git clone ... or create those folders. Can someone advise me?
Thanks.
This is likely the documentation lagging behind the version of the code that you are running. As long as it compiles, the specific files the tool generates isn't so crucial.
This is a compilation error. When you do go install foo it will try to build the foo package as an executable and then move that to your GOPATH/bin directory. It seems that the generated code in restapi/configure_todo_list.go isn't correct for the operations code generated.
All you need to run this tutorial yourself is an empty directory and the swagger tool (not its source code). You run the commands from the root of this empty project. In order not to run into GOPATH problems I would initialise a module with go mod init todo-list-example before doing anything else.
Note that while the todo-list example code exists inside the go-swagger source, it's there just for documenting example usage and output.
What I would advice for #2 is to make sure you're using a properly released version of go-swagger, rather than installing from the latest commit (which happens when you just do a go get), as I have found that to be occasionally unstable.
Next, re-generate the entire server, but make sure you also regenerate restapi/configure_todo_list.go by passing --regenerate-configureapi to your swagger generate call. This file isn't always refreshed because you're meant to modify it to configure your app, and if you changed versions of the tool it may be different and incompatible.
If after that you still get the compilation error, it may be worth submitting a bug report at https://github.com/go-swagger/go-swagger/issues.
Thanks #EzequielMuns. The errors in #2 went away after I ran go get - u -f ./... as stated in
...
For this generation to compile you need to have some packages in your GOPATH:
* github.com/go-openapi/runtime
* github.com/jessevdk/go-flags
You can get these now with: go get -u -f ./...
I think it's an error of swagger code generation. You can do as folloing to fix this:
delete file configure_todo_list.go;
regenerate code.
# swagger generate server -A todo-list -f ./swagger.yml
Then, you can run command go install ./cmd/todo-list-server/, it will succeed.

Generating config file for symmetric-encryption

I'm trying to use symmetric-encryption ina Ruby project but I'm having a hard time to generate the configuration file.
I have tried to use the symmetric-encryption --generate command as stated in the configuration guide but it is not working.
symmetric-encryption: No such file or directory.
I have also tried to install the binstub and run bin/symmetric-encryption --generate --app-name my_app --environments "development,test,preprod,acceptance,production" but I get
Unknown switches '--generate, --app-name, --environments'
Any ideas how to generate the file or where I can get a sample?
Thanks

Resources