carbon-appmgt's Issues
"AddToFavorites" option does not work when different tenant browse the super tenant's store
Description:
Steps to reproduce
- Publish some public apps from super tenant
- Login to the carbon UI and create a new tenant
- Login to the tenant store (store/t/{tenant.domain.name}) using above created tenant.
- Now navigate to the super tenant's store.
- Tenant user can see the published app. Click on "Add to Favorites" option in the bottom right corner in the app icon.
- This will give error massage to user and can see following logs in backend.
TID: [] [] [2018-01-25 11:06:13,678] ERROR {org.wso2.carbon.appmgt.impl.dao.AppMDAO} - Unable to get the WebApp ID for: APIIdentifier{providerName='app_mgt', apiName='HospiApp', version='1.0'} {org.wso2.carbon.appmgt.impl.dao.AppMDAO}
TID: [261] [] [2018-01-25 11:06:13,689] [email protected] [261] [AppM]ERROR {JAGGERY.apis.favourite:jag} - org.wso2.carbon.appmgt.api.AppManagementException: Unable to get the WebApp ID for: APIIdentifier{providerName='app_mgt', apiName='HospiApp', version='1.0'} {JAGGERY.apis.favourite:jag}
Same issue exists when removing already favorited app as well.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
1.2.0
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Store APIs error
curl -c cookies -H "Content-Type: application/json" -X POST -d '{"username":"admin","password":"admin"}' http://localhost:9763/store/apis/user/login
return such a error:
[2016-05-09 15:26:29,945] ERROR {JAGGERY.apis.user:jag} - org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassCastException: org.mozilla.javascript.Undefined cannot be cast to java.lang.String (/store/apis/user.jag#29)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at org.jaggeryjs.rhino.store.apis.c0._c_anonymous_1(/store/apis/user.jag:29)
at org.jaggeryjs.rhino.store.apis.c0.call(/store/apis/user.jag)
at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.jaggeryjs.rhino.store.modules.c1._c_anonymous_70(/store/modules/store.js:1145)
at org.jaggeryjs.rhino.store.modules.c1.call(/store/modules/store.js)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at org.jaggeryjs.rhino..\scripts.c0._c_anonymous_17(\scripts\server.js:266)
at org.jaggeryjs.rhino..\scripts.c0.call(\scripts\server.js)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at org.jaggeryjs.rhino.store.modules.c1._c_anonymous_69(/store/modules/store.js:1140)
at org.jaggeryjs.rhino.store.modules.c1.call(/store/modules/store.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.jaggeryjs.rhino.store.apis.c0._c_script_0(/store/apis/user.jag:9)
at org.jaggeryjs.rhino.store.apis.c0.call(/store/apis/user.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.jaggeryjs.rhino.store.apis.c0.call(/store/apis/user.jag)
at org.jaggeryjs.rhino.store.apis.c0.exec(/store/apis/user.jag)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:43)
at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassCastException: org.mozilla.javascript.Undefined cannot be cast to java.lang.String
at org.wso2.carbon.appmgt.hostobjects.APIStoreHostObject.jsFunction_isUserExists(APIStoreHostObject.java:2411)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 66 more
Unable to login to the publisher and store portal user having username with special characters
We observed that username with special characters like ' (apostrophe) was unable to login to the publisher and store portal. And throwing the following exception
Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: The path '/_system/governance/users/TEST2.COM:up'si' contains one or more illegal characters (~!@#;%^*()+={}|<>"',)
at org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:262)
at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:717)
at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:591)
at org.wso2.carbon.registry.core.session.UserRegistry.putInternal(UserRegistry.java:828)
at org.wso2.carbon.registry.core.session.UserRegistry.access$1000(UserRegistry.java:61)
at org.wso2.carbon.registry.core.session.UserRegistry$11.run(UserRegistry.java:804)
at org.wso2.carbon.registry.core.session.UserRegistry$11.run(UserRegistry.java:801)
[Publisher] Document editor doesn't display content of an In-line document
Description:
Document editor in the Publisher doesn't display content of an In-line document in some web browsers.
Suggested Labels:
Bug, Major
Suggested Assignees:
@dinusha-dilrukshi
Affected Product Version:
- v1.0.0 to v1.2.48
OS, DB, other environment details and versions:
- Google Chrome 63.0.3239.132 (64bit, Windows 7)
- Firefox Quantum 58.0.1 (64bit, Windows 7)
Steps to reproduce:
- Create an webapp in the Publisher.
- Click on the created webapp in the webapp listing page and goto webapp overview page.
- Click on the
Documentation
tab and clickAdd New Document
button. - Add a new doc with
Document Type
as How To andDocument Source
as In-line, hitSave New Document
button. - Click
Edit Content
Action link of the created document. This will open-up the editor in a new browser tab. - Add some content in the editor and click
Save and Close
button. - Click on the
Edit Content
Action link again, which will open up the editor. But the previuosly added content is not showing up.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.