Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035887Retail ModulesStoreServerpublic2017-04-28 12:142017-08-01 10:19
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedno change required 
5
 
RR17Q2.2 
mtaal
No
0035887: Missing setAdminMode in MultiServerJSONSymmetricDSStarter
A missing setAdminMode in the MultiServerJSONSymmetricDSStarter class results in this exception being logged:

ERROR org.openbravo.mobile.core.process.JSONRowConverter - Error in JSON process: Entity OBMOBC_SERVER_DEFINITION is not directly readable, only id and identifier properties are readable, property OBMOBC_SERVER_DEFINITION.mobileServerKey is neither of these.
org.openbravo.base.exception.OBSecurityException: Entity OBMOBC_SERVER_DEFINITION is not directly readable, only id and identifier properties are readable, property OBMOBC_SERVER_DEFINITION.mobileServerKey is neither of these.
        at org.openbravo.base.structure.BaseOBObject.checkDerivedReadable(BaseOBObject.java:295)
        at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:255)
        at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:232)
        at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:213)
        at org.openbravo.mobile.core.MobileServerDefinition.getMobileServerKey(MobileServerDefinition.java:233)
        at org.openbravo.retail.storeserver.synchronization.MultiServerJSONSymmetricDSStarter.doAction(MultiServerJSONSymmetricDSStarter.java:61)

I have not been able to reproduce it locally, but it was reproduced in a test in BUT. As it makes total sense to wrap the method in an adminMode block, it is better just to add it to be safe.
In BUT's test environment:

- Create an order. This error will be logged:

ERROR org.openbravo.mobile.core.process.JSONRowConverter - Error in JSON process: Entity OBMOBC_SERVER_DEFINITION is not directly readable, only id and identifier properties are readable, property OBMOBC_SERVER_DEFINITION.mobileServerKey is neither of these.
org.openbravo.base.exception.OBSecurityException: Entity OBMOBC_SERVER_DEFINITION is not directly readable, only id and identifier properties are readable, property OBMOBC_SERVER_DEFINITION.mobileServerKey is neither of these.
        at org.openbravo.base.structure.BaseOBObject.checkDerivedReadable(BaseOBObject.java:295)
        at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:255)
        at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:232)
        at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:213)
        at org.openbravo.mobile.core.MobileServerDefinition.getMobileServerKey(MobileServerDefinition.java:233)
        at org.openbravo.retail.storeserver.synchronization.MultiServerJSONSymmetricDSStarter.doAction(MultiServerJSONSymmetricDSStarter.java:61)
No tags attached.
blocks defect 0035878 closed AugustoMauch Missing setAdminMode in MultiServerJSONSymmetricDSStarter 
Issue History
2017-05-01 17:28mtaalTypedefect => backport
2017-05-01 17:28mtaalTarget Version => RR17Q2.1
2017-06-16 14:13AugustoMauchTarget VersionRR17Q2.1 => RR17Q2.2
2017-08-01 10:19AugustoMauchNote Added: 0098291
2017-08-01 10:19AugustoMauchStatusscheduled => closed
2017-08-01 10:19AugustoMauchResolutionopen => no change required

Notes
(0098291)
AugustoMauch   
2017-08-01 10:19   
No need to backport it, BUT will get the changeset as part of the https://code.openbravo.com/erp/pmods-branches/org.openbravo.replication.symmetricds-but [^] branch