- Jan 10, 2019
-
-
Matt Spinler authored
Use 400, which is a client error, for errors when deciphering method call arguments as opposed to a server error, 500. The robot testcases expect this and it also makes sense since the client must have passed in a bad argument. Only the error that results from a method call failing will be 500. Resolves openbmc/bmcweb#25 Change-Id: I9504905992fee3bc0119ff7cae8512eba899daa4 Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
James Feist authored
sed replacing filesystem should not have happened in this file. Change-Id: I3411d655b563edd52cd980bd56277f16fa6f7ac5 Signed-off-by:
James Feist <james.feist@linux.intel.com>
-
Cheng C Yang authored
When using Legacy Boot Mode in Intel platforms, HTML5 SOL console will be disconnected when host start. When host start, BIOS will send some non UTF-8 data to SOL console, then SOL console will be disconnected. Changing to binary format can make WSS protocol work correctly with non UTF-8 data. Change-Id: I9a440220f16eb07d800dc291897ab3106cd40c32 Signed-off-by:
Cheng C Yang <cheng.c.yang@linux.intel.com>
-
Andrew Geissler authored
Resolves openbmc/bmcweb#12 Testing: Verified this with system booted against redfish/v1/Systems/motherboard: "PowerState": "On", "Status": { "State": "Enabled" }, and this with system powered off: "PowerState": "Off", "Status": { "State": "Disabled" }, Change-Id: I0acbf0992d730e4a5189d9af962370277f59eaaa Signed-off-by:
Andrew Geissler <geissonator@yahoo.com>
-
- Jan 09, 2019
-
-
Vernon Mauery authored
With the obmc-console-server binding to the correct socket, this is not needed. Abstract unix sockets start with the nul-charater, but are not nul terminated. In fact, the nul-character has no meaning in the path. According to the man page unix(7), abstract: an abstract socket address is distinguished (from a pathname socket) by the fact that sun_path[0] is a null byte ('\0'). The socket's address in this namespace is given by the additional bytes in sun_path that are covered by the specified length of the address structure. (Null bytes in the name have no special significance.) This means that when calling bind/connect, the size of the sockaddr structure is not sizeof(sockaddr_un), it is sizeof(sockaddr_un) - sizeof(sun_path) + (path_len) Change-Id: I2b19d0b9aa8e8ded9162890503c46cad95a6c7b6 Signed-off-by:
Vernon Mauery <vernon.mauery@linux.intel.com>
-
- Jan 08, 2019
-
-
James Feist authored
Splice it into standard for gcc8 Change-Id: I584206dd737c9d90cf93bfa8541980fdd8f6d39b Signed-off-by:
James Feist <james.feist@linux.intel.com>
-
- Jan 07, 2019
-
-
Rapkiewicz, Pawel authored
Update Schema versions for: * ComputerSystem * Processor * Memory Tests: * Service Validator did not have any regression Change-Id: I3fb900b464013588ac0b08c0157404c8ababddb2 Signed-off-by:
Rapkiewicz, Pawel <pawel.rapkiewicz@intel.com> Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
Ed Tanous authored
Redfish schema 2018.2 was released on September 20th, 2018. While there aren't any plans to utilize any of the new services, it makes sense to keep up to date with the latest static data. This commit was largely done automatically using the update_schemas.py script. Change-Id: Ieaa9f1ab2a47244ef201cfe9a064744d7d156745 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
- Jan 04, 2019
-
-
Ed Tanous authored
The ethernet interface previous hardcoded error handling patterns for the interfaces shown. This commit moves it to the generic ReadJson mechanisms for error handling Change-Id: I710188c808ee62c5797059d7ee8f9876bf872a11 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
Ed Tanous authored
Technically, if multiple dump files existed, we could get a double end() called loading each file. Avoid that by returning. Tested By: Downloading a file from dump, using the /dump url. File downloads correctly. Change-Id: Icd71a2fbbe365557daa1a7e24c5563f3749a748d Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
- Jan 03, 2019
-
-
Ed Tanous authored
The Redfish UI isn't presented properly with the latest security changes because the MIME type wasn't explicitly set. This resolves it, by adding an MIME type to redfish. Change-Id: Ic1b0c0bd6fb2b8b6b4d9393127e3e606ad7cb655 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
- Jan 02, 2019
-
-
AppaRao Puli authored
Added RoleCollection by retriving information from dbus user object and Role properties support. Test: Tested RoleCollection and Role redfish URI's by cross validaing with dbus user object properties. Change-Id: I519972f645c7a4d0486e64ae5a403a3009aa26f5 Signed-off-by:
AppaRao Puli <apparao.puli@linux.intel.com>
-
- Dec 29, 2018
-
-
AppaRao Puli authored
Getting and Setting AccountService properties like MinPasswordLengh, AccountLockoutThreshold, AccountLockoutDuration. Test: Tried get and set of redfish requests on above specified properties and cross validated with dbus calls. Change-Id: I68f110b706109a1083f38158c09e9e13032ec401 Signed-off-by:
AppaRao Puli <apparao.puli@linux.intel.com>
-
AppaRao Puli authored
Adding boolean support in json_utils. Test: Validated by sending redfish POST/PATCH request with boolean value in data. Change-Id: Iddc7daebb3507a468cbb2187806908f821bd6da7 Signed-off-by:
AppaRao Puli <apparao.puli@linux.intel.com>
-
- Dec 27, 2018
-
-
AppaRao Puli authored
Fixes the below issues in rest actions - Fetching dbus signature from xml arg elements. - Double iterator increament, while reading array of strings 'as'. Test: Verified rest API's with actions(POST). Change-Id: I52ca938bae54c882da2f9f445ea0b4e605a5f8c3 Signed-off-by:
AppaRao Puli <apparao.puli@linux.intel.com>
-
- Dec 21, 2018
-
-
Ed Tanous authored
Somehow we got the content type wrong on javascript files, which became apparent when the content security patches were coming out. This patchset corrects the string. Tested By: Opened webui in chrome, and inspected the javascript files. content type was correct. Change-Id: I9ba706d5b919bf4c6365d01853c978b1616913d4 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
- Dec 19, 2018
-
-
James Feist authored
Add support of reading floating point numbers. Tested-by: Successfully unpacked doubles Change-Id: I9cf5e33dbb99367a53013be28b8f905eae2e4518 Signed-off-by:
James Feist <james.feist@linux.intel.com>
-
James Feist authored
Add std::array support to readJson. Change-Id: I32bb28908f195fd3443556c40b71eaabd105db25 Signed-off-by:
James Feist <james.feist@linux.intel.com>
-
Ed Tanous authored
Related to patchset here. This patchset implements the bmc side of redirecting the users URL after login correctly. https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-webui/+/15925 Change-Id: Idf42f4cecd29fb0c6088721eb5e10fb39e1168e7 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
- Dec 18, 2018
-
-
Ed Tanous authored
Because we should always be posting the correct mime type on all of our pages, add a "nosniff" flag, to improve our protection against injection attacks. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options Change-Id: I4a311948e5e157b4071effddff577c73b65d7af1 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
Ed Tanous authored
When in cross site scripting mode, delete should be allowed, along with PATCH, PUT, and POST, to delete values. Change-Id: If59594b6a01794c843c0290249bd397b9e305a3e Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
Ed Tanous authored
UUID got broken with a botched commit here: 0f74e643 This should resolve #10 Change-Id: Ic9ff631b56ab02525fadab1ef8013904d36d71c8 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
Ed Tanous authored
In certain cases, redfish wants to unpack specialized types that might be more complex than just simple structs. This commit adds the ability to unpack a nlohman json object directly, and moves the ethernet schema over to the new api Change-Id: Ib3c25e6c4d8f0a163647092adfb454355d329170 Signed-off-by:
Ed Tanous <ed.tanous@intel.com> Signed-off-by:
James Feist <james.feist@linux.intel.com>
-
Gunnar Mills authored
SessionService had the wrong @odata.id. Redfish-Service-Validator found this. Change-Id: Idf67b46b69b6ad770062ea3146996d100c424eea Signed-off-by:
Gunnar Mills <gmills@us.ibm.com>
-
- Dec 14, 2018
-
-
Gunnar Mills authored
This commit makes Memory Size an optional parameter. On X86 platforms, MemorySizeInKB is coming from the MDR daemon. For other platforms it is undefined. Still some work to do here, but this commit fixes the internal error in /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId} on non-X86 systems. Resolves: openbmc/bmcweb#19 curl -k -H "X-Auth-Token: $bmc_token" -X GET \ https://${bmc}/redfish/v1/Systems/motherboard/Memory/dimm9 { "@odata.context": "/redfish/v1/$metadata#Memory.Memory", "@odata.id": "/redfish/v1/Systems/motherboard/Memory/dimm9", "@odata.type": "#Memory.v1_2_0.Memory", "Id": "dimm9", "Name": "DIMM Slot", "Status": { "Health": "OK", "State": "Enabled" } } Change-Id: Ib2b558ba2299674edab0132a21dc6109e4b81732 Signed-off-by:
Gunnar Mills <gmills@us.ibm.com>
-
- Dec 13, 2018
-
-
Matt Spinler authored
Add support for the DELETE verb. This verb will cause the Delete method on the xyz.openbmc_project.Object.Delete interface to be called on the specified object path. An error will be returned if that interface/method doesn't exist on that path. The code is similar to the method handling code, except it doesn't need to parse any argument JSON, and it is looking only at a specific interface. It does share the code path that introspects the object to find a method and call it. Tested: Used it to delete error logs. Change-Id: Ica90b0d80049e6bc59fe2b8456948696054f4a8b Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
Matt Spinler authored
This handler is used for setting a D-Bus property. Return failures as a JSON response. Change-Id: Ie18abbc78d77d23d3194d76b60d42e877ac54bec Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
Matt Spinler authored
Add the full JSON error response for the case when the URL looks like it should correspond to a D-Bus operation, but doesn't. Change-Id: I63a2c05fd8ab3adcdd81d407f9359ebb0279cdc3 Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
Matt Spinler authored
This route calls D-Bus methods. Return any errors encountered in JSON. Change-Id: I84c6f4abb7092d86ecbc157c95d6343a0b27b7d0 Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
Matt Spinler authored
The only way list can fail is if the GetSubTreePaths call fails, and that will only happen if the path isn't a valid D-Bus object. In that case, return the standard REST error JSON response for org.freedesktop.DBus.Error.FileNotFound. Change-Id: I538d3132552590e51f9ede80762aee00c59cb3e9 Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
Matt Spinler authored
For the failure cases, return the error messages in JSON, the same as the python REST server does. Change-Id: I150fec3ade738d1bd5425a3ea7cceb6c5539f9f6 Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
Matt Spinler authored
The only way enumerate can fail is if the GetSubTree call fails, and that will only happen if the path isn't a valid D-Bus object. In that case, return the standard REST error JSON response for org.freedesktop.DBus.Error.FileNotFound. Change-Id: Ie68761c3ee67aa337761567b8a76bd9c9ebddc19 Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
Matt Spinler authored
If there are no ObjectManager instances covering a path that came back from the GetSubTree call, the only other way to get that path's properties is by directly reading them. So, after all of the GetManagedObjects calls are done, on any of the paths that were in the GetSubTree results but not in the enumerate results, make a GetAll call to get the properties and add them to the output. The code knows when all of the asynchronous GetManagedObjects calls are done because it is called from the destructor of the InProgressEnumerateData struct which is passed to all of the other asio ops via a shared pointer. Tested: Run on paths that weren't in object managers, such as the physical LED objects. Change-Id: I5a62b9a0ee27a68127e6f216625ce93c9ac58d08 Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
Matt Spinler authored
Make a call to GetObject for the target path to get its connection names and interfaces to add to the GetSubTree results data before looking for object managers in the GetSubTree data. This is the only way that the code can find an object manager interface on the target path. Tested: /enumerate works better Change-Id: I341b2f46ee7a20793b5f2db15bf4b57b0cbc6d01 Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
-
- Dec 11, 2018
-
-
James Feist authored
Add autoconf and autoconf-archive as out of tree builds have to build autotools projects. Change-Id: I8daea46e0bf7d9dff493e7360e05b9043a399771 Signed-off-by:
James Feist <james.feist@linux.intel.com>
-
Ed Tanous authored
Somehow, in a patchset merge, SSL got inverted with not SSL, so SSL mode enabled an SSL socket, and non SSL mode enabled an SSL socket. THis should resolve it. Change-Id: Ia3ebc0bf6ce341a66756dc192d66894b2e9121a7 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
- Dec 10, 2018
-
-
Ed Tanous authored
This change is largely a sed replace, and gets us closer to standards compliance. Change-Id: Ie60437eff43de830ef19389344a55430dabd9d16 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
Ed Tanous authored
Inline strings make this patchset easier to read, and idenfity where we're adding headers. Also, in the cases where we're using common keys, passing it by boost::beast::http::field helps us avoid some dict lookups. These performance improvements are largely hypothetical, as it would be unlikely we'd ever measure a real difference. Change-Id: Ic931c4454a5f40c0d206bb4df09058f8f61fc0e2 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
Ed Tanous authored
Fixes #18 This commit makes CPU core count an optional parameter. Previously it was used to determine if a slot was populated, which was a bad idea in the first place. This just makes the implementation a little less bad. The best implementation would likely be to implement the state interface in all the processor daemons to tell if the processor is present or not. Because the processor not being present isn't very common, this is likely low priority. Change-Id: I42e49ef5ae7d6184d7f854069fd9a18c7c606dd3 Signed-off-by:
Ed Tanous <ed.tanous@intel.com>
-
AppaRao Puli authored
- Updated code to get "UserPrivilege" from DBUS - Updated Links->Role in AccountManager. - Added code for "RenameUser". - Added code to update Privilege over dbus. UnitTest: - Tested All methods(Get,Post,Delete,Patch) on AccountCollections and ManageAccount over redfish using postman tool. Change-Id: Ib9d8713908bad28d8d411f113af0d72d6c0fc40b Signed-off-by:
AppaRao Puli <apparao.puli@linux.intel.com>
-