History log of /openbmc/phosphor-webui/app/common/services/apiInterceptor.js (Results 1 – 13 of 13)
Revision Date Author Comments
# eaa40dd3 17-Jul-2019 Yoshie Muranaka <yoshiemuranaka@gmail.com>

Add 403 $location redirect to http interceptor service

This is a temporary solution to redirect any 403 responses to
a dedicated 403 'Unauthorized' page. This could occur on inital
n

Add 403 $location redirect to http interceptor service

This is a temporary solution to redirect any 403 responses to
a dedicated 403 'Unauthorized' page. This could occur on inital
navigation to a page or while attempting an operation.

Once permission role mapping is defined, the code should be updated
to handle 403 responses in context of user attempted actions.

Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: Ia207f2bcdd87fb20888fe6a1588d0ccd310e484c

show more ...


# 4ddda586 04-Sep-2018 Gunnar Mills <gmills@us.ibm.com>

Move to clang-format-6.0

The docker image moved from clang-format-5.0 to clang-format-6.0.

Change-Id: I3c615d7df1f21569531b4dc2cb0bc4f425cb43f8
Signed-off-by: Gunnar Mills <gmil

Move to clang-format-6.0

The docker image moved from clang-format-5.0 to clang-format-6.0.

Change-Id: I3c615d7df1f21569531b4dc2cb0bc4f425cb43f8
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...


# d27bb135 24-May-2018 Andrew Geissler <geissonator@yahoo.com>

Format code using clang-format-5.0

Once merged, this repository will have CI enforce
the coding guidelines in the .clang-format file.

Change-Id: I96a05972665f9c67625c6850c3da25e

Format code using clang-format-5.0

Once merged, this repository will have CI enforce
the coding guidelines in the .clang-format file.

Change-Id: I96a05972665f9c67625c6850c3da25edc540be06
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# ba5e3f34 24-May-2018 Andrew Geissler <geissonator@yahoo.com>

Run js-beautify and fixjsstyle on code

Found this pointer on stackoverflow:
https://stackoverflow.com/a/31660434/5508494

End goal is to get the code formatted well enough that

Run js-beautify and fixjsstyle on code

Found this pointer on stackoverflow:
https://stackoverflow.com/a/31660434/5508494

End goal is to get the code formatted well enough that
clang format will run correctly against it.

Change-Id: I80053e78d253d8eee49233e42d55e5807ae8fdc8
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# 18f72665 15-May-2018 Andrew Geissler <geissonator@yahoo.com>

Do not override http timeout if caller has set it

The apiInterceptor code was blindly overriding the http
timeout. This caused issues for functions like code update
image uploads whi

Do not override http timeout if caller has set it

The apiInterceptor code was blindly overriding the http
timeout. This caused issues for functions like code update
image uploads which can require more then the default 20
seconds.

During the course of investigating this defect, it was questioned
why the interceptor code was needed at all since the default
was set in the httpsRequest base. Some web searching found
https://stackoverflow.com/questions/15015416/how-to-set-a-global-http-timeout-in-angularjs
which discusses why this does not work.

Testing: Verified requested timeout used during image upload
and default used otherwise.

Resolves openbmc/openbmc#3182

Change-Id: I9b58a328cf7ef7d224b3c4704d9d40edcc2b4d80
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


# 96d62bcf 28-Apr-2018 Gunnar Mills <gmills@us.ibm.com>

Remove the version from each file

Already have a Web UI version, no need to track the version
of each file. These have not been getting updated.

Change-Id: I1cd3a2c2d67b24ded5ed

Remove the version from each file

Already have a Web UI version, no need to track the version
of each file. These have not been getting updated.

Change-Id: I1cd3a2c2d67b24ded5edcca9dbfd3f6806d93ed4
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...


# 32581cf4 16-Mar-2018 Gunnar Mills <gmills@us.ibm.com>

Verify the old Password

Call a special login function, that does not use the current
session and ignores the intercept which would log out the
user on a bad old password.
This sp

Verify the old Password

Call a special login function, that does not use the current
session and ignores the intercept which would log out the
user on a bad old password.
This special login function, testPassword(), calls /login with
the old password, a success verifies the password is correct.

Tested: Changed the user password on a Witherspoon and
verified an incorrect old password does not change the password.
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Change-Id: I65f6a6aa6dbc5d849e962b6c24a09e3ac0f6cf58

show more ...


# bbcf670a 06-Oct-2017 Ed Tanous <ed.tanous@intel.com>

Modernize web GUI and make it installable on BMC

1. Move from gulp server to webpack. This allows the proper
compression to allow the webui to be embedded in the BMC.
2. Update js p

Modernize web GUI and make it installable on BMC

1. Move from gulp server to webpack. This allows the proper
compression to allow the webui to be embedded in the BMC.
2. Update js paths to use requires, not hardcoded paths. This was
required to make the packaging work correctly.
3. Add babel config to do translation.
4. Update angularjs directive calls to use the angular 1.6 syntax for
promises intead of success and fail.

https://docs.angularjs.org/guide/migration#migrate1.5to1.6-ng-services-$http

5. As a consequence of using NPM/webpack, the versions of angular and
associated modules that were checked in have been updated.

Change-Id: Icb71e2eedb0d9a8943fc914f9dc4be11d0983c00
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


# 1221c0ca 27-Jul-2017 Iftekharul Islam <iislam@us.ibm.com>

Changed connection timeout from 10 to 20 sec

Change-Id: I112a32bbf076f538439ea0fb5881297eb52486f5
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>


# c1535926 19-Jun-2017 Iftekharul Islam <iislam@us.ibm.com>

fix problems reported by sonar scanner

Change-Id: Ic351745aed9d670c51a33a21c5c0b5cde77a0e0e
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>


# cd789508 19-Apr-2017 Iftekharul Islam <iislam@us.ibm.com>

Change navigation structure

Change-Id: I12c819293ce1eda188dc9f257ae9370f1b73cb18
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>


# f3f7a5f0 27-Mar-2017 Iftekharul Islam <iislam@us.ibm.com>

Added timeout for BMC reboot

Change-Id: I376c3578c68535259e4527941b0995394e3d0734
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>


# 99d199f3 24-Mar-2017 Iftekharul Islam <iislam@us.ibm.com>

Major update to code structure

* Split files into independent files based on functionality.
* Switch to bower/gulp for build.

Change-Id: Ibc775dd9b7f6a0a49f63c22162b7582e7

Major update to code structure

* Split files into independent files based on functionality.
* Switch to bower/gulp for build.

Change-Id: Ibc775dd9b7f6a0a49f63c22162b7582e781e2d9c
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>

show more ...